Skip to content

Commit

Permalink
Opensearch's team fix for reducing search latency (#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
danyilq authored Jan 22, 2023
1 parent bd1c216 commit 3ddda3c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/marqo/tensor_search/tensor_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ def create_vector_index(
"index": {
"knn": True,
"knn.algo_param.ef_search": 100,
"refresh_interval": refresh_interval
"refresh_interval": refresh_interval,
"store.hybrid.mmap.extensions": ["nvd", "dvd", "tim", "tip", "dim", "kdd", "kdi", "cfs", "doc", "vec",
"vex"]
},
"number_of_shards": the_index_settings[NsField.number_of_shards],

Expand Down Expand Up @@ -1390,4 +1392,4 @@ def get_cuda_info() -> dict:
else:
raise errors.HardwareCompatabilityError(message=str(
"ERROR: cuda is not supported in your machine!!"
))
))

0 comments on commit 3ddda3c

Please sign in to comment.