Commit Graph
667 Commits
Author SHA1 Message Date
e6f0d08e16 fix(local): skip bool group-by keys to match server GroupId semantics (#1414)
* fix(local): skip bool group-by keys to match server GroupId semantics

* fix: do not hard code types, move tests to test group search

---------

Co-authored-by: feiiiiii5 <feiiiiii5@users.noreply.github.com>
Co-authored-by: George Panchuk <george.panchuk@qdrant.tech>
2026-09-16 00:27:11 +07:00
Madan KumarandGeorge Panchuk f7530a25d0 fix(local): honor nested json-path keys in delete_payload (#1407)
* fix(local): honor nested json-path keys in delete_payload

In local mode delete_payload only removed top-level dict keys, so a key
given as a json path (`a.b`, `location[0].name`, `location[].name`) never
matched and the delete was a silent no-op. The server deletes nested keys
via dot notation and preserves the rest of the payload, so local mode
diverged from it.

set_payload and filters already resolve these paths through
parse_json_path; delete_payload was the one payload operation ignoring
them. Add a delete_value_by_key helper next to set_value_by_key that walks
the same JsonPathItem path and removes the leaf (a missing path is a
no-op, siblings are preserved), and use it from delete_payload.

* fix(local): match server semantics for indexed payload deletion

delete_value_by_key deleted terminal array elements by index and
honored Python-style negative indices, but the server does neither:
it treats a terminal array-index delete as a no-op (not idempotent)
and addresses elements with an unsigned index, so a negative index
cannot be represented. Both cases diverged from the server this path
exists to mirror.

Make a terminal array index a no-op and require a non-negative,
in-range index for nested traversal. Add local and congruence
coverage for terminal and negative indices.

* fix: update json path parser, do not apply partial updates in delete by key, add tests

* fix: remove new redundant top level directory

---------

Co-authored-by: George Panchuk <george.panchuk@qdrant.tech>
2026-09-16 00:27:05 +07:00
Nazrul AnsariandGeorge e4e44a7331 fix: slice index error message reports an off-by-one upper bound (#1412)
* fix: slice index error message reports an off-by-one upper bound

The guard accepts `0 <= index < total`, so the largest valid index is
`total - 1`, but the message advertises the range as `0..{total}`. With
`total=4`, rejecting `index=4` reports "Slice index must be in 0..4, got 4",
naming the rejected value as though it were allowed.

Report `0..{total - 1}` instead.

* fix slice error message in local mode

---------

Co-authored-by: George <george.panchuk@qdrant.tech>
2026-09-16 00:26:57 +07:00
George f212c4afeb fix: do not accept empty vectors and multivectors in local mode (#1405)
* fix: do not accept empty vectors and multivectors in local mode

* fix: do not modify points if vector does not pass validation
2026-09-16 00:26:52 +07:00
GeorgeandClaude Opus 5 c8bf20dede fix(local): match core's MMR tie-breaking (#1402)
* fix(local): match core's MMR tie-breaking

Local mode ordered MMR results differently from core whenever two
candidates tied exactly, on relevance or on MMR score. The MMR score
itself was already correct; the selection rules around it were not:

* the first point was seeded from `candidate_ids[0]`, i.e. whatever
  `search` happened to return first, instead of the most relevant
  candidate;
* `np.argmax` picked the *first* maximum, while core's `max_by_key`
  returns the *last* one on ties;
* pending candidates were kept in an order-preserving list, while core
  holds them in an `IndexSet` and drops the selected one with
  `swap_remove`, which moves the last candidate into the freed slot and
  therefore changes the order candidates are visited in - and so which
  one wins a tie.

Reproduce the three rules in `_mmr`. The divergence was spotted on a
MAX_SIM multivector field with DOT, but it is specific to neither:
plain dense vectors and EUCLID diverge the same way once an exact tie
is constructed.

The added congruence tests keep relevance scores distinct on purpose:
core orders equally relevant candidates by search order, which is not
stable, so only ties in the MMR score can be asserted on.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* refactor: move utils from collection, move tests

* tests: update comments

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-09-16 00:26:47 +07:00
George e242b3daf1 fix: accept a bare point id as a prefetch query in local mode (#1401) 2026-09-16 00:26:36 +07:00
George 24f549719d fix: fix missing multivector placeholder in local mode (#1399)
* fix: fix missing multivector placeholder in local mode

* fix: do not use deleted vectors in recommend, etc

* fix: fix mypy complaints in point id vector resolution

* fix: regen async
2026-09-16 00:26:32 +07:00
Madan kumarandGeorge Panchuk cc7c4ba6a3 Fix score-orientation handling for recommend/discovery/context/feedback queries in local mode (#1379)
Recommend, discovery, context and relevance-feedback queries score points
from the internal core distance, which is oriented so that a higher score
is always better regardless of the collection's distance metric. The raw
distance order therefore does not describe how their scores should be
sorted or thresholded.

Two places got this wrong on Euclid/Manhattan collections in local mode:

- Result ordering already special-cased the recommend/discovery/context
  family, but omitted NaiveFeedbackQuery, so relevance-feedback queries
  returned the farthest points first instead of the nearest.

- score_threshold filtering keyed off the raw distance order for every
  query type, so for the whole higher-is-better family it compared in the
  wrong direction and dropped all results (or applied no filtering) instead
  of removing the low-scoring points.

Derive a single higher_score_is_better flag from the query type and use it
for both the ordering and the threshold, and add NaiveFeedbackQuery to the
family. Adds regression tests covering both the ordering and the threshold
on Euclid and Manhattan.

---------
Co-authored-by: George Panchuk <george.panchuk@qdrant.tech>
2026-09-16 00:26:27 +07:00
hylinandGeorge Panchuk e37b9ea25e fix(local): apply score_threshold strictly to match server semantics (#1387)
* fix(local): apply score_threshold strictly to match server semantics

The Qdrant server keeps only points whose score is *better* than
score_threshold (strict inequality): a point whose score equals the
threshold is excluded. Local mode used non-strict comparisons, so such
boundary points were incorrectly kept for Cosine/Dot/Euclid/Manhattan.

Fusion and formula post-filters remain inclusive, matching observed
server behavior for those paths.

Includes parametrized regression tests covering all four distance metrics.

* tests: update tests

* tests: update tests to include other query points ways

---------

Co-authored-by: George Panchuk <george.panchuk@qdrant.tech>
2026-09-16 00:26:23 +07:00
Madan kumarandGeorge Panchuk 3ea381504d Fix TypeError when sorting heterogeneous facet values / mixed-type point ids in local mode (#1377)
* Fix TypeError sorting heterogeneous facet values and mixed-type point ids in local mode

facet() broke a count tie with the raw facet value and _search_distance_matrix
sorted samples by raw point id; both raise TypeError when the values span
types (e.g. int vs str, or int vs UUID id). Route point-id sorting through the
existing _universal_id helper, and give facet values a dedicated type-safe key
that also keeps equal-count ties deterministic across colliding types (e.g. the
string "" and the int 0). Adds regression tests for both.

* fix: narrow down the fix to search matrix only

---------

Co-authored-by: George Panchuk <george.panchuk@qdrant.tech>
2026-09-16 00:26:18 +07:00
Silu PandaandGeorge Panchuk 69a6ee2299 fix(local): keep facet bool and int values distinct (#1389)
* fix(local): keep facet bool and int values distinct

* fix: refactor facet type fix, update tests

---------

Co-authored-by: George Panchuk <george.panchuk@qdrant.tech>
2026-09-16 00:26:12 +07:00
Nazrul AnsariandGeorge Panchuk 693c6a3766 fix: local mode accepts min_should min_count values the server rejects (#1369)
* fix: local mode accepts min_should min_count values the server rejects

Local mode evaluates min_should as `matches >= min_count`. Any value at
or below zero is therefore trivially true for every point, so the filter
returns the entire collection instead of being refused.

The server refuses these outright: 422 Unprocessable Entity for 0, and
400 Bad Request for negatives. So a query that a developer tests against
local mode passes there and fails in production - and until it fails, it
silently returns everything, which for a filter is the worst direction
to be wrong in.

    flt = Filter(min_should=MinShould(conditions=[...], min_count=0))
    client.scroll("collection", scroll_filter=flt)
    # local mode: every point in the collection
    # server:     422 Unprocessable Entity

Validation runs once in calculate_payload_mask, before the scan, and
recurses into nested filters since a bad min_count inside a nested must
clause is just as invalid. Raises ValueError with the same shape as the
existing limit validation in qdrant_local.py.

Known limitation, called out rather than hidden: an empty collection
short-circuits in LocalCollection.scroll before any filter code runs, so
an invalid filter against an empty collection is still accepted. Fixing
that means validating in each entry point, which is where #1339 is
already working - happy to move it there instead if preferred.

Verified against Qdrant 1.19.0 in Docker. Full local suite: 87 passed.

* fix: validate filters reached through a NestedCondition

* fix: update filter validation, update tests

---------

Co-authored-by: George Panchuk <george.panchuk@qdrant.tech>
2026-09-16 00:26:05 +07:00
George 613b88e944 fix: fix local single prefetch (#1397) 2026-09-16 00:26:01 +07:00
George 69fe253455 fix: fix is_integer usage in local mode formula api (#1398) 2026-09-16 00:25:52 +07:00
Edward YiandGeorge Panchuk 33f5f9c402 fix: apply root filters after local fusion (#1373)
* fix: apply root filters after local fusion

* fix: filter prefetch sources before fusion to match server scores

* fix: push the root filter into prefetch search

* fix: fix local mode filters in prefetch, update tests

---------

Co-authored-by: George Panchuk <george.panchuk@qdrant.tech>
2026-09-16 00:25:47 +07:00
de3c4328ef fix: local mode text/phrase and is-null semantics diverge from server — CI congruence failures investigated (#1394)
* fix: mirror server token-aware text/phrase matching on unindexed fields

qdrant/qdrant#10341 (dev) changed MatchText and MatchPhrase on fields
without a text index from a substring scan to token-aware matching via
the default word tokenizer: every query token must appear as a whole
document token (text, order-independent; consecutive for phrase), empty
queries match nothing. Local mode still substring-scanned, so congruence
tests randomly failed whenever the filter generator drew a MatchText
whose word is a substring of another fixture word ("fly" in "butterfly",
"ant" in "elephant"). MatchTextAny keeps substring semantics, matching
the server.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01R25zh9xS78xMHgPcoFaUdw

* fix: match null elements inside arrays in local IsNull condition

qdrant/qdrant#10101 (dev) made the unindexed IsNull check inspect array
elements: a value like [null, 1] now satisfies IsNull (one level deep).
Local mode only matched values that were null themselves. This was the
second divergence behind the congruence CI failures, previously masked
by the MatchText one because pytest runs with -x.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01R25zh9xS78xMHgPcoFaUdw

* fix: close local client before reopening storage in persistence tests

The persistence tests released the storage lock with `del local_client`,
relying on garbage collection timing; when the lock outlived the del,
reopening the same directory raised "Storage folder is already accessed
by another instance". test_query.py was already fixed to call close()
(90913f8); apply the same fix to the remaining five persistence tests.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01R25zh9xS78xMHgPcoFaUdw

* fix: bound remote group hits by exact local hits instead of equality

Server-side grouping is best-effort within a request budget (qdrant
lib/shard/src/grouping/driver.rs): once the budget is spent, a group may
be filled with worse points than its true best, or stay below
group_size. Local mode groups exhaustively, so asserting exact per-rank
score equality of deep group hits randomly failed when the fill budget
missed a group member (test_query_group, local 0.6926 vs remote 0.6798
at rank 4). Compare one-sided instead: at any rank the remote hit may be
worse than the exact local one, never better; the top hit stays strict.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01R25zh9xS78xMHgPcoFaUdw

* test: move local text-match and is-null tests to their conventional homes

The two new test files sat at the tests/ root. Local-mode behavior belongs in
qdrant_client/local/tests, and filter corner cases in
tests/congruence_tests/test_complex_filters.py.

- the check_match assertions mirroring the server's unindexed_text_match_test.rs
  move into qdrant_client/local/tests/test_payload_filters.py, next to the other
  filter unit tests
- the client-level cases become congruence tests in test_complex_filters.py, so
  they compare local against a real server instead of asserting local behavior
  alone: text/phrase/text-any matching on an unindexed field, and IsNull over
  arrays holding a null

Both congruence tests fail against the pre-fix payload_filters and pass with it,
against qdrant 1.19.1-dev.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* tests: add non-consecutive case for match filter

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: George Panchuk <george.panchuk@qdrant.tech>
2026-09-16 00:25:42 +07:00
Arav 8acb48dcee Fix in-place mutation of inputs in cosine_similarity (#1357)
* Fix in-place mutation of inputs in cosine_similarity

cosine_similarity normalized its `query` and `vectors` arguments in place
via `/=`, which (1) mutated caller-owned arrays as a side effect and
(2) raised UFuncTypeError on integer-dtype inputs, unlike the dot,
euclidean, and manhattan distance functions. Switch to out-of-place
division so the inputs are left untouched. Computed results are unchanged.

Add regression tests asserting the query/vectors arguments are not mutated
(1D and 2D query paths) and that integer-dtype inputs are accepted.

* test: exercise 2D cosine query path with multiple rows

Use a two-row 2D query so the batched per-row normalization path is
verified, and assert the full distance matrix in addition to input
immutability.

* Keep vectors normalization in place per review, fix query only

@joein noted that vectors is always already normalized when reaching
cosine_similarity through the client API (cosine collections are
normalized on upsert), so copying it is unnecessary overhead on what
can be a large candidate set. Revert vectors to in-place normalization
and keep only the query-side fix, which he agreed is worth the
(minimal) copy cost since queries are fresh, user-supplied input each
call and aren't guaranteed to be pre-normalized.

Update tests to match: drop the vectors-not-mutated assertions and the
vectors integer-dtype case (vectors is always float32 in real usage),
keep the query-side mutation and integer-dtype coverage.
2026-09-16 00:25:36 +07:00
2sumtech 9a01291535 fix: pin keyword index prefix=False round-trip behavior over gRPC (#1356)
grpc.KeywordPrefixParams is an empty message: presence is the only
signal, so an explicit prefix=False cannot be represented in gRPC.
It is sent as absent (same server-side semantics, disabled) and is
recovered as None. Document this at both conversion sites and pin
the behavior with a reverse-direction (rest->grpc->rest) test.
2026-09-16 00:25:31 +07:00
Georgeand2sumtech 334e9cbf8c fix: fix shard key selector usage in update payload methods (#1364)
Co-authored-by: 2sumtech <2sumtech@gmail.com>
2026-09-16 00:25:26 +07:00
Tai An 704f037e8a fix(warnings): give the User-Agent override warning a stacklevel (#1363)
`show_warning_once` defaults to `stacklevel=1`, which makes `warnings.warn`
attribute the warning to `qdrant_client/common/client_warnings.py:7` -- inside
the client -- instead of the caller's construction site.

Every other `show_warning_once` call in the package passes an explicit
stacklevel (4, 5, 6 or 10, depending on nesting); this is the only site that
omits it. Its two immediate siblings in the same `__init__` -- the
`api-key`-in-headers warning and the `grpc.primary_user_agent` warning -- both
pass `stacklevel=4`, so this brings it in line with them.

Before:
  .../qdrant_client/common/client_warnings.py:7: UserWarning: `User-Agent` ...
After:
  .../qdrant_client/qdrant_client.py:134: UserWarning: `User-Agent` ...

which is where the sibling warnings already point.

`async_qdrant_remote.py` is generated from the sync source; the hunk there
matches what `tools/generate_async_client.sh` emits (verified by running the
generator with ruff pinned to 0.4.3).
2026-09-16 00:25:21 +07:00
dependabot[bot] 9343494232 chore(deps): bump pypa/gh-action-pypi-publish (#1315)
Bumps the version-updates group with 1 update in the / directory: [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish).


Updates `pypa/gh-action-pypi-publish` from 1.14.0 to 1.14.2
- [Release notes](https://github.com/pypa/gh-action-pypi-publish/releases)
- [Commits](https://github.com/pypa/gh-action-pypi-publish/compare/cef221092ed1bacb1cc03d23a2d87d1d172e277b...dc37677b2e1c63e2034f94d8a5b11f265b73ba33)

---
updated-dependencies:
- dependency-name: pypa/gh-action-pypi-publish
  dependency-version: 1.14.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: version-updates
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-16 00:25:14 +07:00
dependabot[bot] 96a1605e34 chore(deps): bump actions/checkout from 6.0.2 to 7.0.1 (#1316)
Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.2 to 7.0.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/de0fac2e4500dabe0009e67214ff5f5447ce83dd...3d3c42e5aac5ba805825da76410c181273ba90b1)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 7.0.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-16 00:25:09 +07:00
dependabot[bot] a391f86c3c chore(deps): bump dcarbone/install-jq-action from 3.2.0 to 4.0.1 (#1317)
Bumps [dcarbone/install-jq-action](https://github.com/dcarbone/install-jq-action) from 3.2.0 to 4.0.1.
- [Release notes](https://github.com/dcarbone/install-jq-action/releases)
- [Commits](https://github.com/dcarbone/install-jq-action/compare/b7ef57d46ece78760b4019dbc4080a1ba2a40b45...4fcb5062d7ce9bc4382d1a352d19ba3ba2c317c1)

---
updated-dependencies:
- dependency-name: dcarbone/install-jq-action
  dependency-version: 4.0.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-16 00:25:02 +07:00
dependabot[bot] 7b3ba9e5e2 chore(deps): bump actions/setup-python from 6.2.0 to 7.0.0 (#1318)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 6.2.0 to 7.0.0.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/a309ff8b426b58ec0e2a45f0f869d46889d02405...5fda3b95a4ea91299a34e894583c3862153e4b97)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-16 00:24:56 +07:00
dependabot[bot] 9a9f37fafe chore(deps-dev): bump coverage from 6.5.0 to 7.15.2 (#1320)
Bumps [coverage](https://github.com/coveragepy/coveragepy) from 6.5.0 to 7.15.2.
- [Release notes](https://github.com/coveragepy/coveragepy/releases)
- [Changelog](https://github.com/coveragepy/coveragepy/blob/main/CHANGES.rst)
- [Commits](https://github.com/coveragepy/coveragepy/compare/6.5.0...7.15.2)

---
updated-dependencies:
- dependency-name: coverage
  dependency-version: 7.15.2
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-16 00:24:51 +07:00
nightcitybladeandGeorge Panchuk 0cb8f0bd31 fix: reject empty collection names in existence checks (#1332)
* fix: reject empty collection names in existence checks

* tests: move tests to congruence

* fix: regen async client

---------

Co-authored-by: George Panchuk <george.panchuk@qdrant.tech>
2026-09-16 00:24:43 +07:00
Nazrul AnsariandGeorge Panchuk 201232d080 fix: local mode matches the wrong points on null and empty-should filters (#1333)
* fix: local mode matches wrong points on null and empty-should filters

* tests: move tests to complex filters

---------

Co-authored-by: George Panchuk <george.panchuk@qdrant.tech>
2026-09-16 00:24:38 +07:00
dependabot[bot] fa6f7ea1ec chore(deps-dev): bump pytest-asyncio from 0.21.2 to 0.23.8 (#1323)
Bumps [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) from 0.21.2 to 0.23.8.
- [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases)
- [Commits](https://github.com/pytest-dev/pytest-asyncio/compare/v0.21.2...v0.23.8)

---
updated-dependencies:
- dependency-name: pytest-asyncio
  dependency-version: 0.23.8
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-16 00:24:31 +07:00
As 17c761f08e docs: restore local mode image missing from master (#1406) 2026-09-10 15:22:31 +07:00
George 550484d767 new: add dependabot config (#1314) 2026-08-04 23:37:23 +07:00
George Panchuk 425840be98 bump version to v1.19.0 v1.19.0 2026-08-04 21:20:14 +07:00
George 34dbb37a55 fix: fix nested payload local mode (#1312)
* fix: fix nested payload local mode

* test: update test data in complex filter
2026-08-04 21:17:34 +07:00
George da58e7d492 deprecate: remove max_disk_usage_percent, deprecate max_resident_memory_percent (#1311) 2026-08-04 21:17:11 +07:00
Nazrul Ansari efc46195e1 fix: values_count bounds must be satisfied by a single value in local mode (#1293) 2026-08-04 21:17:06 +07:00
George 589aece6f5 new: 1.19.0 updates (#1298)
* new: 1.19.0 updates

* fix: fix search params as a dict in local mode

* fix: update qdrant backward compatibility version

* fix: add version check to the test

* fix: add version check to the test
2026-08-04 21:16:58 +07:00
George 24bd6bf314 fix: add limit > 0 rules in local mode (#1281) 2026-08-04 21:16:09 +07:00
Madan kumarandGeorge Panchuk 715b48b720 Preserve proto3 field presence for falsy values in REST/gRPC conversion (#1260)
Co-authored-by: George Panchuk <george.panchuk@qdrant.tech>
2026-08-04 21:16:04 +07:00
ErenAta16 5a0e0d00fb fix: do not drop falsy shard keys in convert_points_update_operation (#1279) 2026-08-04 21:15:39 +07:00
George 2257c55b99 fix: fix embed paths (#1278)
* fix: fix embed paths

* tests: add local inference test for complex prefetch
2026-08-04 21:15:23 +07:00
Madhan Kumar ReddyandGeorge Panchuk f28634c053 Warn that search_params is ignored in local mode instead of silently dropping it (#1083) (#1247)
Co-authored-by: George Panchuk <george.panchuk@qdrant.tech>
2026-08-04 21:15:15 +07:00
Madan kumarandGeorge Panchuk 53c81ee2c8 Fix local mode filters cross-matching booleans and integers (#1259)
* Fix local mode filters cross-matching booleans and integers

Python treats bool as a subclass of int (True == 1, False == 0), but Qdrant
keeps booleans and integers as distinct payload value types. Local mode
compared them with a plain `==` / `in` / `isinstance(value, (int, float))`, so:

- MatchValue(value=1) matched a payload of True, and MatchValue(value=True)
  matched a payload of 1 (same for 0 / False)
- MatchAny / MatchExcept cross-matched the same way
- Range matched booleans as if they were 0 / 1

The server never cross-matches these (its ValueVariants keeps Integer and Bool
distinct, and booleans are not numeric for range conditions). Add a type-aware
equality helper used by the value-match conditions, and exclude booleans from
range checks. Adds an in-memory regression test.

* Cover MatchExcept in the bool/int cross-match test

MatchExcept also routes through values_match, so assert that except=[1]
keeps the True payload (bool is not the integer 1).

* Add isolated MatchAny and range asserts to the bool/int cross-match test

Lock the single-value MatchAny path and the check_range bool guard against
regressions, in addition to the existing combined-condition coverage.

* fix: handle floats in cross-match local mode filters, add congruence tests

---------

Co-authored-by: George Panchuk <george.panchuk@qdrant.tech>
2026-08-04 21:15:10 +07:00
GeorgeandHassan Zafar 800017d527 fix: do not include local test files into the distribution (#1277)
Co-authored-by: Hassan Zafar <hassanzafar619@gmail.com>
2026-08-04 21:15:05 +07:00
GeorgeandEren Ata 6f0d9bec8c fix: fix local mode set payload shared nested object #1271 (#1276)
Co-authored-by: Eren Ata <erena6466@gmail.com>
2026-08-04 21:14:59 +07:00
George 152b6cec84 Fix env installation (#1255)
* fix: update poetry lock

* fix: add type annotations, update poetry.lock

* fix: fix local persistence tests

* fix: replace del client with client.close in local mode persistence tests

* new: update local mode values count filter behaviour
2026-08-04 21:14:51 +07:00
Charles DuffyandGeorge Panchuk 64c766a963 fix: spurious async client tests failures (#1181)
* fix: spurious async client tests failures

* skip cluster-only test when server is standalone

* increase timeout for unit test performing multiple snapshot operations

* clean up stale snapshots left by previous runs

* fix: remove deleted methods, add/update cluster checks

* fix: remove unused import

* fix: remove redundant indent

---------

Co-authored-by: George Panchuk <george.panchuk@qdrant.tech>
2026-08-04 21:14:44 +07:00
George 62bd70f23a fix: fix persistence test in test query (#1245) 2026-08-04 21:14:38 +07:00
George b4ef6a4ff4 fix: fix update vectors in local mode (#1244) 2026-08-04 21:14:32 +07:00
George 397df8b596 fix: fix persistence in local mode multivector tests (#1243) 2026-08-04 21:14:25 +07:00
Alok TripathiandGeorge Panchuk 7bd755bf32 fix: check_match() raises TypeError when MatchText applied to non-string field (#1224)
* fix: check_match() raises TypeError when MatchText applied to non-string field

* tests: move non-string match test to test_nested_filter, cover MatchText and MatchTextAny

---------

Co-authored-by: George Panchuk <george.panchuk@qdrant.tech>
2026-08-04 21:14:07 +07:00
George 8409ae34b5 fix: update poetry lock (#1242)
* fix: update poetry lock

* fix: add type annotations, update poetry.lock

* fix: fix local persistence tests

* fix: replace del client with client.close in local mode persistence tests
2026-08-04 21:13:59 +07:00