Replies: 2 comments 2 replies
-
I found a similar issue that might help you resolve the problem with your Qdrant retriever. In the issue Qdrant from LangChain failed, the suggested solution involves using a specific payload structure for Qdrant: {
"content_payload_key": "page content from the document",
"metadata_payload_key": {
"meta 1": "something",
"meta 2": "something",
etc
}
} This structure is different from other vector stores like Pinecone and Chroma, but it reflects the structure of the Document in LangChain [1]. Additionally, ensure that your Qdrant client and collection are properly initialized and accessible. If the problem persists, you might want to check if there are any specific errors or logs that could provide more insight into why some collections are not working. |
Beta Was this translation helpful? Give feedback.
-
Now it's work, but I don't understand why. Thanks :D |
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
Qdrant retriever is not working with some collection, some collection still work:
@lru_cache()
def as_retriever(self) -> BaseRetriever:
if self.collection_name != "":
return self.vectorStore.as_retriever(
search_type="similarity",
search_kwargs=dict(k=self.top_k)
).with_config(
run_name="as_retriever"
)
else:
raise NotImplementedError(
f"No retriever for collection {self.collection_name}"
)
System Info
langchain==0.2.16
langchain-community==0.2.17
langchain-core==0.2.41
langchain-google-genai==1.0.10
langchain-google-vertexai==1.0.10
langchain-openai==0.1.25
langchain-qdrant==0.1.1
langchain-text-splitters==0.2.0
Ubuntu
python3.11 -m uvicorn main:app --host 0.0.0.0 --port
Beta Was this translation helpful? Give feedback.
All reactions