forked from opensearch-project/k-NN
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Full sync benchmark test folder from main to 2.x
Signed-off-by: Heemin Kim <[email protected]>
- Loading branch information
Showing
37 changed files
with
849 additions
and
322 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
18 changes: 12 additions & 6 deletions
18
...rks/perf-tool/release-configs/faiss-hnsw/filtering/relaxed-filter/relaxed-filter-test.yml
This file contains 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 |
---|---|---|
@@ -1,34 +1,40 @@ | ||
endpoint: [ENDPOINT] | ||
port: [PORT] | ||
test_name: "Faiss HNSW Relaxed Filter Test" | ||
test_id: "Faiss HNSW Relaxed Filter Test" | ||
num_runs: 10 | ||
num_runs: 3 | ||
show_runs: false | ||
steps: | ||
- name: delete_index | ||
index_name: target_index | ||
- name: create_index | ||
index_name: target_index | ||
index_spec: [INDEX_SPEC_PATH]/relaxed-filter/index.json | ||
index_spec: release-configs/faiss-hnsw/filtering/relaxed-filter/index.json | ||
- name: ingest_multi_field | ||
index_name: target_index | ||
field_name: target_field | ||
bulk_size: 500 | ||
dataset_format: hdf5 | ||
dataset_path: [DATASET_PATH]/sift-128-euclidean-with-attr.hdf5 | ||
dataset_path: dataset/sift-128-euclidean-with-attr.hdf5 | ||
attributes_dataset_name: attributes | ||
attribute_spec: [ { name: 'color', type: 'str' }, { name: 'taste', type: 'str' }, { name: 'age', type: 'int' } ] | ||
- name: refresh_index | ||
index_name: target_index | ||
- name: force_merge | ||
index_name: target_index | ||
max_num_segments: 1 | ||
- name: warmup_operation | ||
index_name: target_index | ||
- name: query_with_filter | ||
k: 100 | ||
r: 1 | ||
calculate_recall: true | ||
index_name: target_index | ||
field_name: target_field | ||
dataset_format: hdf5 | ||
dataset_path: [DATASET_PATH]/sift-128-euclidean-with-attr.hdf5 | ||
dataset_path: dataset/sift-128-euclidean-with-attr.hdf5 | ||
neighbors_format: hdf5 | ||
neighbors_path: [DATASET_PATH]/sift-128-euclidean-with-filters-updated.hdf5 | ||
neighbors_path: dataset/sift-128-euclidean-with-relaxed-filters.hdf5 | ||
neighbors_dataset: neighbors_filter_5 | ||
filter_spec: [INDEX_SPEC_PATH]/relaxed-filter-spec.json | ||
filter_spec: release-configs/faiss-hnsw/filtering/relaxed-filter/relaxed-filter-spec.json | ||
filter_type: FILTER |
This file contains 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
15 changes: 9 additions & 6 deletions
15
...-tool/release-configs/faiss-hnsw/filtering/restrictive-filter/restrictive-filter-test.yml
This file contains 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 |
---|---|---|
@@ -1,37 +1,40 @@ | ||
endpoint: [ENDPOINT] | ||
port: [PORT] | ||
test_name: "Faiss HNSW Restrictive Filter Test" | ||
test_id: "Faiss HNSW Restrictive Filter Test" | ||
num_runs: 10 | ||
num_runs: 3 | ||
show_runs: false | ||
steps: | ||
- name: delete_index | ||
index_name: target_index | ||
- name: create_index | ||
index_name: target_index | ||
index_spec: [INDEX_SPEC_PATH]/index.json | ||
index_spec: release-configs/faiss-hnsw/filtering/restrictive-filter/index.json | ||
- name: ingest_multi_field | ||
index_name: target_index | ||
field_name: target_field | ||
bulk_size: 500 | ||
dataset_format: hdf5 | ||
dataset_path: [DATASET_PATH]/sift-128-euclidean-with-attr.hdf5 | ||
dataset_path: dataset/sift-128-euclidean-with-attr.hdf5 | ||
attributes_dataset_name: attributes | ||
attribute_spec: [ { name: 'color', type: 'str' }, { name: 'taste', type: 'str' }, { name: 'age', type: 'int' } ] | ||
- name: refresh_index | ||
index_name: target_index | ||
- name: force_merge | ||
index_name: target_index | ||
max_num_segments: 1 | ||
- name: warmup_operation | ||
index_name: target_index | ||
- name: query_with_filter | ||
k: 100 | ||
r: 1 | ||
calculate_recall: true | ||
index_name: target_index | ||
field_name: target_field | ||
dataset_format: hdf5 | ||
dataset_path: [DATASET_PATH]/sift-128-euclidean-with-attr.hdf5 | ||
dataset_path: dataset/sift-128-euclidean-with-attr.hdf5 | ||
neighbors_format: hdf5 | ||
neighbors_path: [DATASET_PATH]/sift-128-euclidean-with-filters.hdf5 | ||
neighbors_path: dataset/sift-128-euclidean-with-restrictive-filters.hdf5 | ||
neighbors_dataset: neighbors_filter_4 | ||
filter_spec: [INDEX_SPEC_PATH]/restrictive-filter-spec.json | ||
filter_spec: release-configs/faiss-hnsw/filtering/restrictive-filter/restrictive-filter-spec.json | ||
filter_type: FILTER |
This file contains 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
This file contains 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 |
---|---|---|
@@ -1,32 +1,35 @@ | ||
endpoint: localhost | ||
endpoint: [ENDPOINT] | ||
port: [PORT] | ||
test_name: "Faiss HNSW Test" | ||
test_id: "Faiss HNSW Test" | ||
num_runs: 10 | ||
num_runs: 3 | ||
show_runs: false | ||
steps: | ||
- name: delete_index | ||
index_name: target_index | ||
- name: create_index | ||
index_name: target_index | ||
index_spec: /home/ec2-user/[PATH]/index.json | ||
index_spec: release-configs/faiss-hnsw/index.json | ||
- name: ingest | ||
index_name: target_index | ||
field_name: target_field | ||
bulk_size: 500 | ||
dataset_format: hdf5 | ||
dataset_path: [DATASET_PATH]/sift-128-euclidean.hdf5 | ||
dataset_path: dataset/sift-128-euclidean.hdf5 | ||
- name: refresh_index | ||
index_name: target_index | ||
- name: force_merge | ||
index_name: target_index | ||
max_num_segments: 1 | ||
- name: warmup_operation | ||
index_name: target_index | ||
- name: query | ||
k: 100 | ||
r: 1 | ||
calculate_recall: true | ||
index_name: target_index | ||
field_name: target_field | ||
dataset_format: hdf5 | ||
dataset_path: [DATASET_PATH]/sift-128-euclidean.hdf5 | ||
dataset_path: dataset/sift-128-euclidean.hdf5 | ||
neighbors_format: hdf5 | ||
neighbors_path: [DATASET_PATH]/sift-128-euclidean.hdf5 | ||
neighbors_path: dataset/sift-128-euclidean.hdf5 |
This file contains 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
Oops, something went wrong.