Hi there,
I’m playing around with RAG and vector stores and looking into the meta data.
The to be achieved goal
My primary goal is that i need the source (and further metadata) of a information from the vector store - simplified for this example the file name.
In my first try (upper workflow) i couldn’t get it to work.
Luckily i’ve found the 2 posts mentioned below in the questions, leading me to the lower workflow solution which returns the filename and all of the meta data.
My questions:
-
I don’t understand the difference between the Vector Store Tool and the Vector Store Node itself. Why is the lower workflow returning the meta data and the tool doesn’t?
I’ve found the solution in the thread Get metadata from Vector Store Tool.
Especially the question here is: What are the pro’s and con’s for using the second approach? -
I found another solution with RAG setup with Contextual Summaries, Sparse Vectors and Reranking and was thinking, that this could also help, storing additional information (like the filename) in the vectorized data. This topic might be too new to be widely adopted yet. I can’t get it to work currently due to my poor dev raspberry having issues running qdrant properly… -.-
Big thanks here already to @Jim_Le for sharing his insights in these 2 posts.
My workflow
Information on your n8n setup
- n8n version: 1.72.1
- Database (default: SQLite): Postgres
- n8n EXECUTIONS_PROCESS setting (default: own, main): Own
- Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
- Operating system: Raspbian