-
Notifications
You must be signed in to change notification settings - Fork 16.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refine Chain Error #1724
Comments
Hi, I think this because the refine chain use the default Prompt Template DEFAULT_REFINE_PROMPT = PromptTemplate( |
I've had a similar issue using chain_type: refine and openAI with Pinecone. My error was related to context being empty. What I've found so far is this error happens only when the vector search in pinecone returns empty, making the context empty. I believe the default value of context needs to be changed to avoid this issue. If Pinecone returns some vectors, I don't have this issue. I have not tried to create my own template. I need to research a little bit more on this. ValueError Traceback (most recent call last) File ~\AppData\Roaming\Python\Python311\site-packages\langchain\chains\base.py:140, in Chain.call(self, inputs, return_only_outputs, callbacks) File ~\AppData\Roaming\Python\Python311\site-packages\langchain\chains\base.py:134, in Chain.call(self, inputs, return_only_outputs, callbacks) ValueError: Missing some input keys: {'context'} |
same issue |
I am using FewShot learning template
Could you please let me know where I might be going wrong? |
Hi, @reletreby! I'm Dosu, and I'm helping the LangChain team manage their backlog. I wanted to let you know that we are marking this issue as stale. From what I understand, the issue you reported is about a Before we close this issue, we wanted to check with you if it is still relevant to the latest version of the LangChain repository. If it is, please let us know by commenting on this issue. Otherwise, feel free to close the issue yourself or it will be automatically closed in 7 days. Thank you for your contribution to the LangChain repository! |
Gives
ValueError: Missing some input keys: {'existing_answer'}
Not sure what's going wrong. I suppose for
refine
chain the first call should not be looking forexisting_answer
, right?The text was updated successfully, but these errors were encountered: