mirror of
https://github.com/qdrant/qdrant.git
synced 2026-08-02 08:00:55 -05:00
* 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>