I've looked through previous questions around metadata searching, but can't seem to find a decent source to help me get what I need. I'm currently splitting my searching through a direct chromadb search, and a llamaindex search. If the user only want's the actual chunk source, then I use chromadb directly. If they want an interpretation through an LLM narrator, then I pass it to llamaindex.
I can constrain which specific source files are searched with chromadb using the following
In this case, resourceArray simply holds the original file names for the content that was ingested.
I can't work out how to do this with llamaindex. I've see this source example, but can't work out how to use a list filter along the same lines as chromadb.
Our metadata filtering stuff has been updated slightly
There are added operators, including GT, LT, IN, NIN, etc.
I don't think the "value" can be a list though. I think chroma is the only one supporting this syntax π€ I remember seeing a PR related to this, so maybe it works? I haven't tried yet