Repository navigation
docs: describe untrained HNSW files without a release number - #257
Merged
Merged
Conversation
An HNSW-RaBitQ file saved before training loads untrained. Comments, docstrings, the stub, hnsw.md and the release notes named 0.7 or 0.8 for it inconsistently, and some said "trained or loaded" where such a loaded index is not trained. They now say "a file saved before training" or "an index loaded from an untrained file", and HnswIndex.load and search say what they return and require. The release notes also say "all three" samples, give the RuntimeError type, and move the CMake find_package bullet to the end of the C++ section, so the migration table follows the new-class bullets again.
The release categories had no place for breaking changes, so breaking PRs appeared under Added. A manual release:breaking label now maps to a first category, Breaking changes; the title classifier does not manage it, so it stays on the PR alongside the automatic category.
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
Text-only follow-ups from a final consistency check of
dev/0.9before the release.Untrained HNSW files (#255). The C++ API of earlier releases could save an HNSW-RaBitQ index before training it; 0.9 loads such a file untrained. The wording about it named 0.7 in some places and 0.8 in others, and some sentences said "trained or loaded" where such a loaded index is not trained. Now version-free throughout:
hnsw_index.hppandhnsw_index.cppcomments: "a file saved before training".test_editor_docs_match_runtime_help): the class notes,add("an index loaded from an untrained file; call train or set_centroids first"),search("Requires a trained index") andload("The loaded index, trained unless the file was saved before training"). The IVF texts are unchanged; IVF files always load trained.hnsw.md: "A trained index supports add(), reserve() and remove()", noting that every loaded index is trained except one loaded from a file saved before training; the persistence paragraph no longer names a release.Release notes. "all three" instead of "both" for the three sample programs; the CMake
find_packagebullet moves to the end of the C++ section, so "Move to the new classes as follows:" follows the new-class bullets again; the HNSW bullet gives the exception type (RuntimeError).Breaking-changes category.
.github/release.ymlgains a first category, Breaking changes, for a manualrelease:breakinglabel, anddocs/maintaining.mddocuments it. The title classifier does not manage that label, so it stays next to the automatic category; GitHub uses the first matching category, so labeled PRs are listed under Breaking changes. #222, #239 and #241 now carry the label.Testing
Local, Linux x86-64, Python 3.13, package rebuilt and installed from this branch:
tests/python/test_editor_support.py,tests/test_mypy.py,tests/test_pyright.py: 18 passed.python -m pytest tests/python: 1186 passed, 23 skipped. 21 of the skips are the C++ example tests, because this worktree has no builtbin/examples; no C++ logic or example changed. The other 2 are the macOS and ARM64 wheel tests, skipped as usual.python -m unittest discover -s .github/scripts -p 'test_*.py': 60 passed../scripts/check-format.sh,./scripts/check-python.sh,mkdocs build --strict,git diff --check.