Skip to content

docs: cover the remaining 0.9 breaking changes in the migration guide - #251

Merged
gouyt13 merged 1 commit into
dev/0.9from
docs/migration-09-gaps
Nov 19, 2026
Merged

gouyt13 merged 1 commit into
dev/0.9from
docs/migration-09-gaps

Conversation

@gouyt13

@gouyt13 gouyt13 commented Nov 19, 2026

Copy link
Copy Markdown
Member

Summary

The "From 0.8 to 0.9" section of docs/docs/python_migration.md ended 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:

  • An IvfIndex with HNSW routing stores the routing graph in the index file, so save no longer writes a <file>.hnsw sidecar; a leftover sidecar is not removed and not used.
  • load raises rabitqlib.FormatError for a truncated, corrupt, mismatched or unsupported file. It subclasses RuntimeError (what these raised before) and ValueError, and rabitqlib.quant.FormatError is the same class. A file that cannot be opened, or the missing sidecar of an earlier file, still raises a plain RuntimeError. Messages change, so match the class.
  • The index classes are the extension's own: a wrong argument raises pybind11's TypeError, and inspect.signature() no longer works on them.
  • A call with both an invalid argument and the wrong state may report the argument first.
  • The seed is restored only from format-2 files.

The release notes add the ceil_log2 fix from #247 under C++ changes.

Found during a pre-release check of dev/0.9.

Testing

  • Behavior described in the list checked against the installed dev/0.9 package (Python 3.13): FormatError bases and quant.FormatError identity; a missing file raises RuntimeError, a corrupt file FormatError; nprobe=0 on an untrained IvfIndex raises ValueError; an unknown constructor keyword raises pybind11's TypeError; inspect.signature(IvfIndex.search) fails. A reviewer also checked that an HNSW-routed IvfIndex writes no sidecar and loads with a junk sidecar beside it.
  • mkdocs build --strict, git diff --check.

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.
@github-actions github-actions Bot added the release:documentation Release category managed from the PR title label Nov 19, 2026
@gouyt13
gouyt13 merged commit fe3e4eb into dev/0.9 Nov 19, 2026
25 checks passed
@gouyt13
gouyt13 deleted the docs/migration-09-gaps branch November 19, 2026 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:documentation Release category managed from the PR title

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant