Kazel
commited on
Commit
·
58b254b
1
Parent(s):
7fbdcfe
pls
Browse files- 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="
|
47 |
metric_type="IP",
|
48 |
params={
|
49 |
-
"
|
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 |
|