Pass context/metadata to VectorStore search #154
-
Hi, really enjoying this library! Is there a way to pass more context to a vector store when doing a similarity search? I am using Pinecone and want to filter the data being searched using their metadata filters feature (e.g. user permissions). Right now I have my own implementation of UserMessage which i set some metadata on, and I have overridden Am I missing something or is there just not a nicer way to do that yet? Cheers, Rob |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
Can you share the snippet of the code performing the QUERY request with this hybrid approach? |
Beta Was this translation helpful? Give feedback.
A built-in solution could be to accept an additional configuration "filters" when vector store instance is created, like this:
With this implementation you have two ways to pass the filt…