Repository navigation
docs: cover the remaining 0.9 breaking changes in the migration guide - #251
Merged
Merged
Conversation
The 0.8 to 0.9 section now lists, next to the int64 IDs and index format 2, what only the release notes mentioned: HNSW-routed IVF indexes no longer write a .hnsw sidecar, load raises rabitqlib.FormatError (a RuntimeError and ValueError subclass), the index classes are plain extension classes (pybind11 TypeError, no inspect.signature), and an invalid argument may be reported before a wrong state. The release notes add the ceil_log2 fix from #247.
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
The "From 0.8 to 0.9" section of
docs/docs/python_migration.mdended with one sentence on changes no warning can announce (int64 IDs, index format 2, restored seed). It is now a list that also covers the Python-visible breaks that were only in the release notes:IvfIndexwith HNSW routing stores the routing graph in the index file, sosaveno longer writes a<file>.hnswsidecar; a leftover sidecar is not removed and not used.loadraisesrabitqlib.FormatErrorfor a truncated, corrupt, mismatched or unsupported file. It subclassesRuntimeError(what these raised before) andValueError, andrabitqlib.quant.FormatErroris the same class. A file that cannot be opened, or the missing sidecar of an earlier file, still raises a plainRuntimeError. Messages change, so match the class.TypeError, andinspect.signature()no longer works on them.The release notes add the
ceil_log2fix from #247 under C++ changes.Found during a pre-release check of
dev/0.9.Testing
dev/0.9package (Python 3.13):FormatErrorbases andquant.FormatErroridentity; a missing file raisesRuntimeError, a corrupt fileFormatError;nprobe=0on an untrainedIvfIndexraisesValueError; an unknown constructor keyword raises pybind11'sTypeError;inspect.signature(IvfIndex.search)fails. A reviewer also checked that an HNSW-routedIvfIndexwrites no sidecar and loads with a junk sidecar beside it.mkdocs build --strict,git diff --check.