feat: add pre-filtering support#331
Conversation
f8b5d7b to
06be300
Compare
Codecov Report
@@ Coverage Diff @@
## main #331 +/- ##
==========================================
- Coverage 86.21% 86.20% -0.01%
==========================================
Files 134 134
Lines 6324 6366 +42
==========================================
+ Hits 5452 5488 +36
- Misses 872 878 +6
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
|
@alaeddine-13 do you mean by |
yes exactly, because applying a filter when the query is a condition or when the query is text does not really make sense |
…ai/docarray into feat-add-annlite-filtering
…ai/docarray into feat-add-annlite-filtering
…ai/docarray into feat-add-annlite-filtering
|
📝 Docs are deployed on https://ft-feat-add-annlite-filtering--jina-docs.netlify.app 🎉 |
This PR support for pre-filtering in storage backends
closes: #263
TODOs:
modify the interface of
findand add parameterfilter, by default None. Handle the following cases:use pre-filtering in _find:
define the schema of tags in config for both annlite, weaivate and qdrant:
columnswhich is part ofQdrantConfig,AnnliteConfig,ElasticSearchConfig,SqliteConfigmodify set_doc_by_id and make sure to include tags specified in the schema definition
Documentation for
Tests that leverage pre-filtering for