Find answers from the community

Updated 9 months ago

Hey everyone! 😊 I'm currently using

Hey everyone! 😊 I'm currently using LlamaIndex to answer questions from my documents, but I'd like to refine my searches to a specific subset of documents that I can define at each prompt. The tricky part is that I want to maintain the VectorStore with all my documents, as the specific subset of documents I need to search in can change with every prompt.

For a concrete example, imagine I have 5 folders, each containing various PDFs. For one query, I might need to search exclusively within folder 1. Then, for the next query, my search should be limited to folders 3 and 5.

Does anyone have tips on how to dynamically restrict searches to a specified group of documents in LlamaIndex, while still keeping the entire VectorStore intact for flexibility? Any advice or examples would be super helpful!

Thanks in advance! πŸ™Œ
h
A
2 comments
search llama-index MetadataFilter
thank you i will check πŸ™‚
Add a reply
Sign up and join the conversation on Discord