-
Notifications
You must be signed in to change notification settings - Fork 410
add config examples to use PQ and SQ indexing and search for wiki-1M with Cohere embeddings #1047
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
harsha-simhadri
wants to merge
5
commits into
main
Choose a base branch
from
harshasi/add_wiki1M_examples
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+112
−0
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
b75ea66
add config examples for wiki-1M with Cohere embeddings
harsha-simhadri 5368f2f
Potential fix for pull request finding
harsha-simhadri 1505423
fix: restore spherical-exhaustive.json and update wiki1M SQ config
harsha-simhadri 4b7b3ac
update sq
harsha-simhadri 40a16e2
update sq
harsha-simhadri File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
55 changes: 55 additions & 0 deletions
55
diskann-benchmark/example/graph-index-product-quantization-wiki1M.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| { | ||
| "search_directories": [ | ||
| "../big-ann-benchmarks/data/wikipedia_cohere" ], | ||
| "jobs": [ | ||
| { | ||
| "type": "graph-index-build-pq", | ||
| "content": { | ||
| "index_operation": { | ||
| "source":{ | ||
| "index-source": "Build", | ||
| "data_type": "float32", | ||
| "data": "wikipedia_base.bin.crop_nb_1000000", | ||
| "distance": "inner_product", | ||
| "start_point_strategy": "medoid", | ||
| "max_degree": 32, | ||
| "l_build": 100, | ||
| "alpha": 1.2, | ||
| "backedge_ratio": 1.0, | ||
| "num_threads": 32, | ||
| "multi_insert": { | ||
| "batch_size": 128, | ||
| "batch_parallelism": 32, | ||
| "intra_batch_candidates": "all" | ||
| } | ||
| }, | ||
| "search_phase": { | ||
| "search-type": "topk", | ||
| "queries": "wikipedia_query.bin", | ||
| "groundtruth": "wikipedia-1M", | ||
| "reps": 1, | ||
| "num_threads": [ | ||
| 32 | ||
| ], | ||
| "runs": [ | ||
| { | ||
| "search_n": 10, | ||
| "search_l": [ | ||
| 100, | ||
| 150, | ||
| 200, | ||
| 300 | ||
| ], | ||
| "recall_k": 10 | ||
| } | ||
| ] | ||
| } | ||
| }, | ||
| "num_pq_chunks": 192, | ||
| "seed": 13076402859301299683, | ||
| "max_fp_vecs_per_prune": 0, | ||
| "use_fp_for_search": false | ||
| } | ||
| } | ||
| ] | ||
| } | ||
57 changes: 57 additions & 0 deletions
57
diskann-benchmark/example/graph-index-spherical-quantization-wiki1M.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| { | ||
| "search_directories":[ | ||
| "../big-ann-benchmarks/data/wikipedia_cohere" | ||
| ], | ||
| "jobs": [ | ||
| { | ||
| "type": "graph-index-build-spherical-quantization", | ||
| "content": { | ||
| "build": { | ||
| "data_type": "float32", | ||
| "data": "wikipedia_base.bin.crop_nb_1000000", | ||
| "distance": "inner_product", | ||
| "start_point_strategy": "medoid", | ||
| "max_degree": 32, | ||
| "l_build": 100, | ||
| "alpha": 1.2, | ||
| "backedge_ratio": 1.0, | ||
| "num_threads": 32, | ||
| "multi_insert": null | ||
| }, | ||
| "search_phase": { | ||
| "search-type": "topk", | ||
| "queries": "wikipedia_query.bin", | ||
| "groundtruth": "wikipedia-1M", | ||
| "reps": 5, | ||
| "num_threads": [ | ||
| 32 | ||
| ], | ||
| "runs": [ | ||
| { | ||
| "search_n": 10, | ||
| "search_l": [ | ||
| 50, | ||
| 100, | ||
| 150, | ||
| 200,300 | ||
| ], | ||
| "recall_k": 10 | ||
| } | ||
| ] | ||
| }, | ||
| "seed": 12648430, | ||
| "transform_kind": { | ||
| "padding_hadamard": "same" | ||
| }, | ||
| "query_layouts": [ | ||
| "same_as_data", | ||
| "full_precision" | ||
| ], | ||
| "num_bits": 2, | ||
| "pre_scale": { | ||
| "some": 0.00390625 | ||
| } | ||
| } | ||
| } | ||
| ] | ||
| } |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor: In the spirit of self‑service, consider including guidance on how to download the dataset, so that even an AI agent can follow the steps and retrieve the required data.