Skip to content

Commit

Permalink
Add neighbors to test procedure (opensearch-project#193)
Browse files Browse the repository at this point in the history
Vector search supports neighbors as a seperate input file with individual
format.

Signed-off-by: Vijayan Balasubramanian <balasvij@amazon.com>
  • Loading branch information
VijayanB authored and harshavamsi committed Mar 5, 2024
1 parent 4c4a601 commit 584f7fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vectorsearch/params/nmslib-sift-128-l2.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

"target_index_bulk_size": 100,
"target_index_bulk_index_data_set_format": "hdf5",
"target_index_bulk_index_data_set_path": "/tmp/sift-128-euclidean.hdf5",
"target_index_bulk_index_data_set_path": "/tmp/sift-128-euclidean-train.hdf5",
"target_index_bulk_indexing_clients": 10,

"target_index_max_num_segments": 10,
Expand All @@ -18,6 +18,8 @@
"query_k": 100,

"query_data_set_format": "hdf5",
"query_data_set_path":"/tmp/sift-128-euclidean.hdf5",
"query_data_set_path":"/tmp/sift-128-euclidean-test.hdf5",
"neighbors_data_set_path":"/tmp/sift-128-euclidean-neighbors.hdf5",
"neighbors_data_set_format":"hdf5",
"query_count": 100
}
2 changes: 2 additions & 0 deletions vectorsearch/test_procedures/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@
"field" : "{{ target_field_name | default('target_field') }}",
"data_set_format" : "{{ query_data_set_format | default('hdf5') }}",
"data_set_path" : "{{ query_data_set_path | default('/tmp/vector-dataset.hdf5') }}",
"neighbors_data_set_path" : "{{ neighbors_data_set_path | default('/tmp/vector-dataset.hdf5') }}",
"neighbors_data_set_format" : "{{ neighbors_data_set_format | default('hdf5') }}",
"num_vectors" : {{ query_count | default(-1) }},
"id-field-name": "{{ id_field_name }}"
},
Expand Down

0 comments on commit 584f7fc

Please sign in to comment.