docs: add Flat and DiskANN benchmarks with index selection - #90
Merged
Merged
Conversation
Deploying xvec with
|
| Latest commit: |
2a0e593
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://580d6330.xvec.pages.dev |
| Branch Preview URL: | https://docs-flat-hnsw-benchmarks.xvec.pages.dev |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #90 +/- ##
==========================================
- Coverage 81.68% 81.36% -0.32%
==========================================
Files 148 148
Lines 30253 30253
==========================================
- Hits 24711 24616 -95
- Misses 5540 5635 +95
Partials 2 2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
The benchmark dashboard now compares HNSW, Flat, and DiskANN through an Index selector between Dataset and Test configuration, with HNSW selected by default. Switching the index updates all six charts, configuration labels, page titles, and SVG exports. Memory chart axes display MB/GB units.
Add measured xvec/zvec Flat results for INT4, INT8, FP16, and unquantized FP32, the missing HNSW FP32 pair, and four DiskANN runs covering only FP16 and FP32. Flat INT4/INT8 use a local zvec-go v0.7.0 modification to enable native rotation, recorded as
v0.7.0+rotate. DiskANN uses the unmodified v0.7.0 backend, with degree 100, construction list 50, PQ chunks 64, query list 300, and rotation/refinement disabled. FP32 means no scalar quantization; DiskANN still uses internal PQ for traversal.The parser validates index-specific parameters and keeps incompatible configurations separate. DiskANN results match the original JSON reports and process resource measurements. In this workload, concurrent QPS is 318.86/375.52 for xvec FP16/FP32 and 8.03/8.03 for zvec; Recall@100 ranges from 87.281% to 87.491%.
Validation: 18 tests pass; Astro/TypeScript reports no diagnostics; production build succeeds. Chromium checks cover the HNSW default, all three index choices, FP16/FP32-only DiskANN categories, six charts, SVG exports, MB/GB axes, switching back to other indexes, and mobile layout. Earlier checks also cover configuration deep links. No browser runtime errors were observed.