raglite icon indicating copy to clipboard operation
raglite copied to clipboard

Metadata filtering before similarity search

Open Nurfen opened this issue 1 year ago • 4 comments

Hi, First of all very cool repository! Thanks for open sourcing it!

As far as i can tell, it is not possible now to do metadata filtering before running the similarity search ( e.g. in a multi tenant system) Is this something that is on the roadmap? Or do you suggest to always use a different db for each tenant?

Nurfen avatar Jul 04 '25 08:07 Nurfen

Hi @Nurfen, metadata filtering is one of the top features we'd like to implement. There's no ETA yet though, but we'll keep you posted!

lsorber avatar Jul 07 '25 06:07 lsorber

Ok great! Thanks for the reply :)

PascalIxor avatar Jul 09 '25 08:07 PascalIxor

could this be already implemented?

I was skimming the code and found _apply_metadata_filter and https://github.com/superlinear-ai/raglite/pull/160 introduced it.

jokester avatar Oct 31 '25 03:10 jokester

Indeed, this is supported, we just had forgotten to include it in the readme. This has been done now with #168

see: https://github.com/superlinear-ai/raglite?tab=readme-ov-file#2-inserting-documents

emilradix avatar Dec 15 '25 08:12 emilradix