Replies: 3 comments 2 replies
-
🤖 Hello @thekie, Nice to meet you! I'm Dosu, a bot here to help you solve bugs, answer questions, and guide you on your journey to becoming a contributor. While we wait for a human maintainer, I'm here to assist you with any inquiries you might have. I'm taking a look at your issue regarding the |
Beta Was this translation helpful? Give feedback.
-
I misunderstood the implementation. It turns out the metadata must be one field in the |
Beta Was this translation helpful? Give feedback.
-
🤖 Yes, your implementation is correct. In the LangChain framework, the Here is the relevant code from the class Qdrant(VectorStore):
METADATA_KEY = "metadata"
def __init__(self, client, collection_name, embeddings, metadata_payload_key=None):
super().__init__(client, collection_name, embeddings)
self.metadata_payload_key = metadata_payload_key or self.METADATA_KEY As you can see, the So, in your case, setting Please note that this is based on the current implementation of the LangChain framework and may change in future versions. Always refer to the latest documentation or source code for the most accurate information. You can find the source code for the Regarding your question about the default value of Sources
|
Beta Was this translation helpful? Give feedback.
-
Checked other resources
Commit to Help
Example Code
Description
Hello,
I m currently implementing RAG using Qdrant as a.
I had an issue, where I didn't get the attached as metadata in my Documents. I dug a little deeper and saw that the
METADATA_KEY
is set tometadata
by default. The QdrantPointStruct
Object returned by thesearch
method returns the metadata in an attribute namedpayload
.langchain/libs/community/langchain_community/vectorstores/qdrant.py
Line 85 in 53b8c86
I was able to work around this issue by handing over the correct
metadata_payload_key
to the Qdrant vector store instance like this:But I am wondering if the default value should be changed?
I would file a bug, or create a PR, but I was not sure if this is by design, or indeed a mistake.
Any guidance is appreciated.
Thank you.
System Info
System Information
Package Information
Packages not installed (Not Necessarily a Problem)
The following packages were not found:
Beta Was this translation helpful? Give feedback.
All reactions