Kazel commited on
Commit
58b254b
·
1 Parent(s): 7fbdcfe
Files changed (1) hide show
  1. milvus_manager.py +2 -3
milvus_manager.py CHANGED
@@ -43,11 +43,10 @@ class MilvusManager:
43
  index_params.add_index(
44
  field_name="vector",
45
  index_name="vector_index",
46
- index_type="HNSW", #use HNSW option if got more mem, if not use IVF for faster processing
47
  metric_type="IP",
48
  params={
49
- "M": 16, #M:16 for HNSW, capital M
50
- "efConstruction": 500, #for HNSW
51
  },
52
  )
53
 
 
43
  index_params.add_index(
44
  field_name="vector",
45
  index_name="vector_index",
46
+ index_type="IVF_FLAT", #use HNSW option if got more mem, if not use IVF for faster processing
47
  metric_type="IP",
48
  params={
49
+ "nlist": 1024
 
50
  },
51
  )
52