I'm currently using LlamaIndex with Qdrant as the vector database.
When adding metadata to nodes via LlamaIndex like this:
document.metadata = {
"source_id": source_id,
"document_name": document_name
}
and retrieving it with:
retriever = index.as_retriever(...)
retrieved_nodes = retriever.retrieve(query)
I can access the added metadata through
retrieved_nodes[0].metadata
.
However, when I add metadata using Qdrant's Python SDK (
https://qdrant.tech/documentation/concepts/payload/#:~:text=%7D-,You%20don%E2%80%99t%20need%20to%20know%20the%20ids%20of%20the%20points%20you%20want%20to%20modify.%20The%20alternative%20is%20to%20use%20filters.,-http), the metadata isn't returned by LlamaIndex's retrieval process, even though it's visible on the Qdrant UI.
What does LlamaIndex do differently that allows the metadata to be returned upon retrieval?