Skip to content

docs: describe untrained HNSW files without a release number - #257

Merged
gouyt13 merged 2 commits into
dev/0.9from
docs/hnsw-untrained-wording
Nov 19, 2026
Merged

gouyt13 merged 2 commits into
dev/0.9from
docs/hnsw-untrained-wording

Conversation

@gouyt13

@gouyt13 gouyt13 commented Nov 19, 2026

Copy link
Copy Markdown
Member

Summary

Text-only follow-ups from a final consistency check of dev/0.9 before 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.hpp and hnsw_index.cpp comments: "a file saved before training".
  • Python docstrings and the stub, kept identical (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") and load ("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_package bullet 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.yml gains a first category, Breaking changes, for a manual release:breaking label, and docs/maintaining.md documents 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 built bin/ 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.

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.
@github-actions github-actions Bot added the release:documentation Release category managed from the PR title label Nov 19, 2026
@gouyt13
gouyt13 merged commit 848e097 into dev/0.9 Nov 19, 2026
26 checks passed
@gouyt13
gouyt13 deleted the docs/hnsw-untrained-wording branch November 19, 2026 14:19
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