Skip to content

Does qdrant support prefiltering on the fields in the payload before doing the vector embedding match? #322

Answered by generall
dingusagar asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @dingusagar, thanks for the great question! The short answer: we do filtering during the vector search.
More detailed answer: it depends.

For different search scenario Qdrant query planner prefers different strategies of searching. In case if filter query is restrictive - it became much faster to just retrieve vectors by filtering conditions and then re-score them by similarity.

In more complicated scenario - it perform search using vector index. But unlike other implementations we do not calculate the filtering condition for all the documents in advance - we check conditions dynamically during the traversal of HNSW graph. That allow us to limit the number of condition checks by the or…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@dingusagar
Comment options

@Yevgnen
Comment options

@dingusagar
Comment options

@generall
Comment options

@failable
Comment options

Answer selected by dingusagar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #319 on February 18, 2022 09:32.