[Question] How to retrieve metadata of document using spring AI? #4173 #678
Replies: 1 comment
-
When you follow the ETL pipeline, https://docs.spring.io/spring-ai/reference/api/etl-pipeline.html you first extract the data with a DocumentReader, this extract depend of the class you use include the file name in every document in the metadata. After you have Transform the Documents you load all documents in the VectorStore. So they have already all metadata related with the filename. Then after this, when you retrieve the document from the vector store you will have this information in the metadata of the Document. |
Beta Was this translation helpful? Give feedback.
-
https://github.com/orgs/qdrant/discussions/4173
How to retrieve metadata of document using Qdrant and springAI? ?Basically need to show metadata like filename, chunkname etc. Following code snippet describes starting point for retrieving based on query. How to modify this to get metadata of documents too i.e. we need metadata for RAG QnA application which will be pdf names which were provided as context.
Application code - https://github.com/vineetaparodkar/rag-with-openai-spring-ai.git
Beta Was this translation helpful? Give feedback.
All reactions