Skip to content

docs: clarify cosine indexing, inner-product queries and macOS OpenMP setup - #266

Merged
gouyt13 merged 2 commits into
VectorDB-NTU:mainfrom
ColinLeeo:docs/index-and-openmp-guides
Nov 27, 2026
Merged

gouyt13 merged 2 commits into
VectorDB-NTU:mainfrom
ColinLeeo:docs/index-and-openmp-guides

Conversation

@ColinLeeo

Copy link
Copy Markdown
Contributor

Summary

  • Clarify how to build cosine indexes within a memory budget. IVF and HNSW can train on a sample and add vectors in batches. SymphonyQG builds the graph in a single add call and needs a temporary float32 copy of the full dataset for normalization.
  • Show the Homebrew OpenMP_ROOT setting for both the library and the consuming CMake project on Apple Silicon. Each project discovers OpenMP in its own build directory.
  • Correct the Python inner-product example instructions. Pass --metric ip when clustering and indexing. The IVF and HNSW query scripts read the metric from the saved index.

Testing

  • Built the site with mkdocs build --strict --config-file docs/mkdocs.yml. Checked 245 local links, anchors and resource references across the three edited documents.
  • On Apple Silicon, built and installed the C++ library, then configured and built the external consumer against that installation. All four consumer CTest tests passed.
  • With the published 0.9.0 wheel, trained IVF and HNSW on a sample, added three batches and searched both indexes. Verified that SymphonyQG accepts a single full-dataset build and rejects a second add.
  • Ran the Python clustering, indexing and query scripts for IVF and HNSW on synthetic vectors with inner-product ground truth. Both query scripts loaded the saved metric and completed successfully.

@ColinLeeo
ColinLeeo requested a review from gouyt13 as a code owner November 27, 2026 06:34
@github-actions github-actions Bot added the release:documentation Release category managed from the PR title label Nov 27, 2026
- sample/python/README.md: SymphonyQG's indexing script also needs
  --metric ip; symqg_querying.py's --metric only labels its output.
- index/usage.md: every index checks coordinates before scaling; restore
  why IVF and HNSW report training-data errors differently; state the ID
  rule for batched add instead of "in their original order".
@gouyt13
gouyt13 merged commit 12b4290 into VectorDB-NTU:main Nov 27, 2026
37 checks passed
@ColinLeeo
ColinLeeo deleted the docs/index-and-openmp-guides branch November 27, 2026 07:28
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.

2 participants