Langchain elastic search error when retrieving using RetrievalQA #17722
Replies: 3 comments
-
🤖 Hey @raghuldeva, great to see you back diving into the depths of LangChain! 🚀 Based on the information you've provided and the context from the LangChain repository, it seems like the issue might be related to the version of Elasticsearch you're using or the format of your Elasticsearch index. Firstly, LangChain v0.1.7 supports Elasticsearch version 8.10.0 as per the pyproject.toml file in the repository. You're currently using Elasticsearch version 8.12.0, which might be causing compatibility issues. I would recommend downgrading to version 8.10.0 and see if the issue persists. Secondly, the error message If you're still facing issues after trying these suggestions, could you please provide more details about the retrieval strategy you're using and the format of your Elasticsearch index? This will help in diagnosing the issue further. Sources
|
Beta Was this translation helpful? Give feedback.
-
Hi @raghuldeva , could you mention some details ?
|
Beta Was this translation helpful? Give feedback.
-
Hello, I know this is a bit old, but for anyone else running into this error, here's a possible fix: I had to change the For some reason, it wasn't working with Hope that helps ! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
I'm trying to use langchain elasticsearch to retrieve context from document stored in index in elastic search using the above code .
the error I'm getting is
elasticsearch.BadRequestError: BadRequestError(400, 'parsing_exception', 'Unknown key for a START_OBJECT in [knn].')
System Info
langchain == 0.1.7
langchain-community == 0.0.20
elasticsearch == 8.12.0
python == 3.11.4
Beta Was this translation helpful? Give feedback.
All reactions