1 Commits
Author SHA1 Message Date
betacatslingandGeorge Panchuk 76879039f7 fix(local): honor str and non-list Sequence selectors in local mode (#1434)
* fix(local): honor str and non-list Sequence selectors in local mode

In local mode, with_vectors="name" or a tuple like ("name",) silently
returned all vectors instead of the named subset, and with_payload="key"
or ("key",) returned the whole payload instead of the filtered keys.
Both parameters are typed as bool | Sequence[str], so a bare string or a
tuple is a valid selector, but only list instances were recognized.

Normalize a bare string to a single-element list and match any Sequence,
so local mode honors the documented contract instead of silently
returning everything.

Signed-off-by: betacatsling <113584199+betacatsling@users.noreply.github.com>

* fix: update with_payload and with_vectors types

* fix: fix local with vectors test

---------

Signed-off-by: betacatsling <113584199+betacatsling@users.noreply.github.com>
Co-authored-by: George Panchuk <george.panchuk@qdrant.tech>
2026-09-16 00:28:33 +07:00