Repository navigation
Conversation
* rename status * impl simple StoredStruct * use StoredStruct in `status` * rename to `DynamicStoredFlags` * Propagate `S` generic * codespell nit
…rapper (#8915) Extract the read-side API into ChunkedVectorsRead<T, S: UniversalRead<T>> and rebuild the existing ChunkedVectors<T, S: UniversalWrite<T>> on top of it via composition + Deref. Lets read-only consumers use the storage without pulling in UniversalWrite, and avoids method duplication. Reorganizes the file into a chunked_vectors/ module: config (constants, ChunkedVectorsConfig, Status), chunks (read_chunks/create_chunk helpers), read (ChunkedVectorsRead), write (ChunkedVectors wrapper). read_chunks now takes a writeable flag so both open paths share it. Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
* handle o_direct with custom buffer * make separate impl * use correct inner offset * align buffer * codespell * review fixes * use o_direct in tests * clippy * fix simple read impl * simpler to_vec() * use router function * change todo comment
* propagate to BufferedDynamicFlags * use duplicate for tests * propagate to Bitvec/Roaring flags * propagate to RoaringFlags * fixup! propagate to BufferedDynamicFlags * propagate to BitvecFlags
* API Adjustments for TQ * Clippy
* TokenizerTextKind * IteratorExt::try_any * Callback-based InvertedIndex::for_each_token_id
* apply p square * review remarks and reduce ram * review remarks * clean tmp logs * review remarks * review remarks * trigger ci
* wip: read-only id tracker for mutable data * read-only id tracker
These tests rely on the collection size stats cache being refreshed to detect that a size limit has been exceeded. Without wait=true, upsert operations are written to WAL and acknowledged immediately without being applied to segments. When the cache refreshes, it reads segment data which may not yet reflect the pending WAL operations, causing the size check to see stale values and not reject the request. Adding wait=true ensures operations are applied to segments before the response returns, so the cache refresh sees the correct sizes. Co-authored-by: Cursor Agent <[email protected]> Co-authored-by: Cursor <[email protected]>
* feat: add vector storage read enum * fix: linter * chore: remove open functions * fix: compiler error * review fix 1: remove constructiors (for now), use UniversalReadFamily, implement 1st part of VectorStorageReadEnum * fmt * read only chucked_vector_storage * fnt * feat: add dense chunked variants to vector storage read enum (#8916) * feat: add multi dense chunked (#8918) --------- Co-authored-by: generall <[email protected]>
Match the REST API by adding an optional `WriteOrdering` field to `CreateVectorNameRequest` and `DeleteVectorNameRequest`, and propagate it through the tonic handlers and remote-shard forwarding paths. Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
…8939) `special_check_condition` in `FieldIndex` did not handle `Match::TextAny`, so nested-condition evaluation fell through to the `ValueChecker` fallback which uses naive `String::contains` instead of proper full-text tokenization. This caused "good" to match "goodness" inside nested filters. Add `check_payload_match_any` to `FullTextIndex` and wire it into `special_check_condition`. Also replace the catch-all `_ => None` with explicit match arms for all `Match` variants. Co-authored-by: Cursor Agent <[email protected]> Co-authored-by: Cursor <[email protected]>
* tq disable data fit option * remove any mention in grpc
Co-authored-by: generall <[email protected]>
* Add `EncodedStorage::for_each_in_batch` method * Implement `for_each_in_batch` method for `QuantizedChunkedMmapStorage` * Add `EncodedVectors::for_each_in_batch` method * Add `EncodedVectors::score` method * Implement `score_stored_batch` for `QuantizedQueryScorer` and `Quanti… * Remove `TElement` and `TMetric` type parameters from `QuantizedMultiQ… * Use `QuantizedMultiQueryScorer` when building `raw_internal_scorer`...
* Initial commit * Edits * Change non-descriptive “here” link texts * Review feedback * Add Edge code snippet, Web UI section with screenshot, mention autit logging, mention NVIDIA and AMD GPU support * Resize Web UI image; Move to end of Features section * Restore Web UI section in README Reintroduce Web UI section to README with visual aid. --------- Co-authored-by: Andrey Vasnetsov <[email protected]>
…#8950) The rapid drop/create loops in test_rejoin_cluster intentionally use short 3s timeouts to accumulate Raft log entries quickly. Under CI load the consensus apply for CreateCollection can exceed 3s (segment setup competes with background flushes/optimizations), and the API returns 500 even though the operation reaches consensus right after. The matching upserts already pass `fail_on_error=False`; do the same for `create_collection` to make the test resilient to that race.
…8951) The test killed the last peer immediately after start_cluster, but start_cluster only waits for cluster size and a known leader — not for all peers to be promoted from learner to voter. If the last peer caught up first, it became the only other voter alongside the leader; killing it left a 2-of-2 quorum with one voter dead, and the subsequent CreateCollection commit timed out after 10s. Wait for all peers to be voters before killing one, so the survivors form a 2-of-3 voter quorum. Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
* feat: add open methods for fulltext * fix: naming * feat: detect not-found via error in fulltext index open * fix: hw counter write -> read
* feat: add open for read only numeric index * feat: add parent open_*, get_mutability_type for ReadOnlyNumericIndex * fix: naming and generic fs * feat: detect not-found via error in numeric index open * fix: hw counter write -> read
Bumps [uuid](https://github.com/uuid-rs/uuid) from 1.23.1 to 1.23.2. - [Release notes](https://github.com/uuid-rs/uuid/releases) - [Commits](uuid-rs/uuid@v1.23.1...v1.23.2) --- updated-dependencies: - dependency-name: uuid dependency-version: 1.23.2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [serial_test](https://github.com/palfrey/serial_test) from 3.4.0 to 3.5.0. - [Release notes](https://github.com/palfrey/serial_test/releases) - [Commits](palfrey/serial_test@v3.4.0...v3.5.0) --- updated-dependencies: - dependency-name: serial_test dependency-version: 3.5.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [log](https://github.com/rust-lang/log) from 0.4.30 to 0.4.31. - [Release notes](https://github.com/rust-lang/log/releases) - [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md) - [Commits](rust-lang/log@0.4.30...0.4.31) --- updated-dependencies: - dependency-name: log dependency-version: 0.4.31 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [pyroscope](https://github.com/grafana/pyroscope-rs) from 2.0.4 to 2.0.6. - [Release notes](https://github.com/grafana/pyroscope-rs/releases) - [Changelog](https://github.com/grafana/pyroscope-rs/blob/main/CHANGELOG.md) - [Commits](grafana/pyroscope-rs@lib-2.0.4...lib-2.0.6) --- updated-dependencies: - dependency-name: pyroscope dependency-version: 2.0.6 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* feat: log slow operations during local shard WAL recovery Warn when applying a single WAL operation during recovery of a local shard takes longer than 30s, including the operation type (e.g. PointOperation::UpsertPoints) so slow recoveries can be diagnosed. Adds CollectionUpdateOperations::label() returning a human-readable label including the inner variant. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * refactor: reuse audit operation names for slow WAL recovery logging Move the canonical operation-name mapping next to the CollectionUpdateOperations definition in the shard crate as an inherent operation_name() method, and have the audit AuditableOperation impl delegate to it. The slow WAL recovery warning now reuses these same names (e.g. upsert_points) instead of a duplicated label mapping. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
Bumps [zerocopy](https://github.com/google/zerocopy) from 0.8.48 to 0.8.50. - [Release notes](https://github.com/google/zerocopy/releases) - [Changelog](https://github.com/google/zerocopy/blob/main/CHANGELOG.md) - [Commits](google/zerocopy@v0.8.48...v0.8.50) --- updated-dependencies: - dependency-name: zerocopy dependency-version: 0.8.50 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [cc](https://github.com/rust-lang/cc-rs) from 1.2.62 to 1.2.63. - [Release notes](https://github.com/rust-lang/cc-rs/releases) - [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md) - [Commits](rust-lang/cc-rs@cc-v1.2.62...cc-v1.2.63) --- updated-dependencies: - dependency-name: cc dependency-version: 1.2.63 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.2 to 6.0.3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@de0fac2...df4cb1c) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 6.0.3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps lukemathwalker/cargo-chef from latest-rust-1.95.0-bookworm to latest-rust-1.96.0-bookworm. --- updated-dependencies: - dependency-name: lukemathwalker/cargo-chef dependency-version: latest-rust-1.96.0-bookworm dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Delete unused HNSW build cache * remove seahash dep
* live reload function for map index * fmt
…i vectors (#9285) * Always optimize deferred points * Add test (#9288) * Hotfix: test indexing of deferred multivector under indeixing threshold (#9286) --------- Co-authored-by: Arnaud Gourlay <[email protected]>
* feat: add swap on_disk methods * fix: linter * feat: add swap in disk for indexes * fix: linter * fix: std::fs::read -> fs_err::read * feat: add on_disk swap bool & null indexes * refactor: use macro instead boilerplate * feat: add better error propagation * fix: review comments -> remove try_swap.. and mut lock * fix: linter * chore: remove try_open_mmap * fix: match -> ? * review nits * fix: seperate edge case for appendable segment --------- Co-authored-by: Luis Cossío <[email protected]>
* feat: wire up read only field indexes * feat: add missing indexes * feat: add try_from impl for TextIndexParams * refactor: unify read-only field index open and drop RocksDB storage Merge ReadOnlyFieldIndex::open_gridstore/open_mmap into a single `open` that picks the appendable vs immutable path from the stored FullPayloadIndexType::storage_type. The choice is modeled as a ReadMode (Appendable/Immutable) rather than a concrete backend, since the read-only stack is generic over UniversalRead and mmap is now just one implementation of it. Also remove the unsupported RocksDb variant from payload_config's StorageType and its now-dead match arms. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * fix: linter * fix: linter --------- Co-authored-by: generall <[email protected]> Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
* Validate quantized u8 data size on load * Validate other quantization types * Add test * Use fs_err
* Bump version to 1.18.2 * Update missed cherry picks
Contributor
|
Important Review skippedToo many files! This PR contains 1907 files, which is 1757 over the limit of 150. To get a review, narrow the scope: Upgrade to a paid plan to raise the limit. ⚙️ Run configurationConfiguration used: Repository UI (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (15)
📒 Files selected for processing (1907)
You can disable this status message by setting the Use the checkbox below for a quick retry:
|
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes a bug where
values_countfilter queries returned incorrect results when evaluating points that were missing the target payload field.Problem
Previously, when a query condition evaluated a payload field that did not exist on a point (e.g.
tagson a point with notagsfield), the query engine fell back to callingcheck_empty()on theFieldCondition.In
FieldCondition::check_empty(), thevalues_countcheck was completely ignored (using a wildcard patternvalues_count: _), causing it to default tofalse. This meant conditions likevalues_countwithlt: 1,lte: 0, orgte: 0(which should match a point missing the field since its value count is0) incorrectly returnedfalse.Solution
FieldCondition::check_empty()inlib/segment/src/payload_storage/condition_checker.rsto evaluate thevalues_countcheck (if present) by callingvalues_count.check_empty(). This successfully checks conditions against a count of0.lib/segment/src/payload_storage/query_checker.rsto cover these scenarios:values_countcheck withlt: 1matching a missing field (value count of0).values_countcheck withgte: 0matching a missing field.values_countcheck withlte: 0matching a missing field.Linked Issue: #9586
My PR targets the
devbranch (notmaster) and my branch was created fromdev.Have you followed the guidelines in our Contributing document?
Have you checked to ensure there aren't other open Pull Requests for the same update/change?
Have you added an explanation of what your changes do and why you'd like us to include them?
Have you written new tests for your core changes, as applicable?
Have you successfully ran tests with your changes locally?
Drafted by Claude Code (Opus 4.8)