Repository navigation
Conversation
…-platform-compatibility
Use ASCII separators so UTF-8 continuation bytes are not classified as whitespace differently across operating systems and locales. Add regressions for locale changes, UTF-8 tokens, and byte offsets. Affected legacy whitespace indexes must be rebuilt from stored text.
Restore the original AILEGO and Turbo numerical policies and their tests while retaining mmap, persisted-layout, tokenizer and IVF context fixes. Add destination-local reference validation and document the 38-configuration migration round trip. FP16 comparisons pass; retain INT8 encoding and ANN recall differences and the physical x86 validation limitation.
Persist the ASCII whitespace tokenizer version per field and reject unversioned or unsupported indexes with rebuild instructions propagated to collection callers. Preserve version metadata across snapshots and compaction, reject mixed versions, and refresh metadata during field rebuilds. Add regressions for legacy UTF-8 postings, read-only and writable reopen, sealed indexes, and collection-level error propagation.
Restore whitespace tokenization, FTS format checks, compaction metadata handling and related tests to the branch's main baseline. Retain all 23 mapping, persisted-layout and IVF compatibility files unchanged. Keep local validation scripts and documents outside the branch.
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.
Indexes written with 4 KiB pages can fail to open or interpret persisted graph offsets correctly on hosts with 16 KiB pages. Cached IVF contexts can also lose query overrides when switching index instances or reopening an index.
This PR preserves the writer's logical layout independently of host mapping alignment and retains explicit IVF query overrides across context rebinding.
Changes
scan_ratioandbruteforce_thresholdoverrides across partial context updates and rebinding. An omitted or zeronproberestores scan-ratio mode; query fields that were never overridden continue to follow each index's defaults.Validation
Cross-platform validation used native macOS ARM64 with 16 KiB pages and Linux x86_64 through Rosetta in an ARM64 Linux VM with 4 KiB pages.
Regression coverage includes unaligned mapping/remapping, persisted layout recovery and growth, invalid metadata handling, sparse streamer reuse and IVF context reuse.
Known validation limits
Strict comparisons against independently rebuilt destination indexes are not fully passing:
These comparison failures remain recorded. Physical Linux x86_64 hardware has not been validated; the Rosetta run does not replace that coverage.