Metadata filter Search

I have a Qdrant vector database, and I have some collections created and 3 metadata in each one of the inserted Chunks, how can I add a prompt in the system, that when searching in the RAG takes into account the metadata values, it only takes into account the content of the page when searching, not the metadata.

What is not clear to me is… how do I assign the metadata filter variable from the user’s chat prompt? I mean, if the user in the chat asks for information about apples, I want the search in the Qdrant vector database to be performed only in the chunks that have the metadata “apples” and if the user asks for information about strawberries, I want the search to be performed in the chunks that have the metadata “strawberries”. Because what I don’t want is that the vector database has all the data in the same collection without distinction and errors occur in the response. Thank you very much for your help.

Thanks

  • n8n version: 1.74
  • Database (default: SQLite): Qdrant
  • n8n EXECUTIONS_PROCESS : main
  • Running n8n via Docker
  • Operating system: Windows

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

I’m having a similar question. Anyone who could help?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.