Files
qdrant/lib
qdrant-cloud-bot ba2bcbdee3 test(model_testing): add basic Query API coverage (#9511)
* test(model_testing): add basic Query API coverage

Add an Op::Query variant that exercises the unified Query API with a
plain Nearest scoring query (ScoringQuery::Vector(QueryEnum::Nearest)),
routed through collection.query. Verification mirrors the existing
Search op: exact dense / multi-dense scans must return exactly the
top-k, sparse and approximate paths are an upper bound, and every
returned id must exist in the model with the queried vector populated
and matching the optional num filter.

Co-authored-by: Cursor <cursoragent@cursor.com>

* test(model_testing): unify Search/Query invariant check

Extract the shared candidate set, strict-vs-upper-bound decision,
per-result membership checks, and the rich diagnostic probes
(retrieve/count/scroll/retry) into helpers reused by both apply_search
and apply_query. apply_query now gets the same strict top-k check plus
failure diagnostics it previously lacked.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-18 16:25:16 +02:00
..
2026-04-21 00:20:02 +02:00
2026-06-12 22:24:23 +02:00
2026-04-24 11:44:21 +02:00