Skip to content

Commit f176606

Browse files
zc277584121jaelgu
authored andcommitted
change consistency level to optional
Signed-off-by: ChengZi <chen.zhang@zilliz.com>
1 parent 5cc00c1 commit f176606

25 files changed

+96
-58
lines changed

integration/RAG_with_pii_and_milvus.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ milvus_client.create_collection(
159159
collection_name=collection_name,
160160
dimension=embedding_dim,
161161
metric_type="IP", # Inner product distance
162-
consistency_level="Strong", # Strong consistency level
162+
# Strong consistency waits for all loads to complete, adding latency with large datasets
163+
# consistency_level="Strong", # Strong consistency level
163164
)
164165
```
165166

integration/build_RAG_with_milvus_and_crawl4ai.ipynb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,8 @@
461461
" collection_name=collection_name,\n",
462462
" dimension=embedding_dim,\n",
463463
" metric_type=\"IP\", # Inner product distance\n",
464-
" consistency_level=\"Strong\", # Strong consistency level\n",
464+
" # Strong consistency waits for all loads to complete, adding latency with large datasets\n",
465+
" # consistency_level=\"Strong\", # Strong consistency level\n",
465466
")"
466467
]
467468
},
@@ -814,4 +815,4 @@
814815
},
815816
"nbformat": 4,
816817
"nbformat_minor": 5
817-
}
818+
}

integration/build_RAG_with_milvus_and_deepseek.ipynb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,8 @@
309309
" collection_name=collection_name,\n",
310310
" dimension=embedding_dim,\n",
311311
" metric_type=\"IP\", # Inner product distance\n",
312-
" consistency_level=\"Strong\", # Strong consistency level\n",
312+
" # Strong consistency waits for all loads to complete, adding latency with large datasets\n",
313+
" # consistency_level=\"Strong\", # Strong consistency level\n",
313314
")"
314315
]
315316
},
@@ -605,4 +606,4 @@
605606
},
606607
"nbformat": 4,
607608
"nbformat_minor": 4
608-
}
609+
}

integration/build_RAG_with_milvus_and_docling.ipynb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,8 @@
264264
" collection_name=collection_name,\n",
265265
" dimension=embedding_dim,\n",
266266
" metric_type=\"IP\", # Inner product distance\n",
267-
" consistency_level=\"Strong\", # Supported values are (`\"Strong\"`, `\"Session\"`, `\"Bounded\"`, `\"Eventually\"`). See https://milvus.io/docs/consistency.md#Consistency-Level for more details.\n",
267+
" # Strong consistency waits for all loads to complete, adding latency with large datasets\n",
268+
" # consistency_level=\"Strong\", # Supported values are (`\"Strong\"`, `\"Session\"`, `\"Bounded\"`, `\"Eventually\"`). See https://milvus.io/docs/consistency.md#Consistency-Level for more details.\n",
268269
")"
269270
]
270271
},
@@ -509,4 +510,4 @@
509510
},
510511
"nbformat": 4,
511512
"nbformat_minor": 2
512-
}
513+
}

integration/build_RAG_with_milvus_and_firecrawl.ipynb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,8 @@
428428
" collection_name=collection_name,\n",
429429
" dimension=embedding_dim,\n",
430430
" metric_type=\"IP\", # Inner product distance\n",
431-
" consistency_level=\"Strong\", # Strong consistency level\n",
431+
" # Strong consistency waits for all loads to complete, adding latency with large datasets\n",
432+
" # consistency_level=\"Strong\", # Strong consistency level\n",
432433
")"
433434
]
434435
},
@@ -734,4 +735,4 @@
734735
},
735736
"nbformat": 4,
736737
"nbformat_minor": 5
737-
}
738+
}

integration/build_RAG_with_milvus_and_fireworks.ipynb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,8 @@
281281
" collection_name=collection_name,\n",
282282
" dimension=embedding_dim,\n",
283283
" metric_type=\"IP\", # Inner product distance\n",
284-
" consistency_level=\"Strong\", # Strong consistency level\n",
284+
" # Strong consistency waits for all loads to complete, adding latency with large datasets\n",
285+
" # consistency_level=\"Strong\", # Strong consistency level\n",
285286
")"
286287
]
287288
},
@@ -536,4 +537,4 @@
536537
},
537538
"nbformat": 4,
538539
"nbformat_minor": 4
539-
}
540+
}

integration/build_RAG_with_milvus_and_gemini.ipynb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,8 @@
249249
" collection_name=collection_name,\n",
250250
" dimension=embedding_dim,\n",
251251
" metric_type=\"IP\", # Inner product distance\n",
252-
" consistency_level=\"Strong\", # Strong consistency level\n",
252+
" # Strong consistency waits for all loads to complete, adding latency with large datasets\n",
253+
" # consistency_level=\"Strong\", # Strong consistency level\n",
253254
")"
254255
]
255256
},
@@ -508,4 +509,4 @@
508509
},
509510
"nbformat": 4,
510511
"nbformat_minor": 5
511-
}
512+
}

integration/build_RAG_with_milvus_and_ollama.ipynb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,8 @@
361361
" collection_name=collection_name,\n",
362362
" dimension=embedding_dim,\n",
363363
" metric_type=\"IP\", # Inner product distance\n",
364-
" consistency_level=\"Strong\", # Strong consistency level\n",
364+
" # Strong consistency waits for all loads to complete, adding latency with large datasets\n",
365+
" # consistency_level=\"Strong\", # Strong consistency level\n",
365366
")"
366367
]
367368
},
@@ -645,4 +646,4 @@
645646
},
646647
"nbformat": 4,
647648
"nbformat_minor": 4
648-
}
649+
}

integration/build_RAG_with_milvus_and_siliconflow.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,8 @@
272272
" collection_name=collection_name,\n",
273273
" dimension=embedding_dim,\n",
274274
" metric_type=\"IP\", # Inner product distance\n",
275-
" consistency_level=\"Strong\", # Strong consistency level\n",
275+
" # Strong consistency waits for all loads to complete, adding latency with large datasets\n",
276+
" # consistency_level=\"Strong\", # Strong consistency level\n",
276277
")"
277278
]
278279
},

integration/build_rag_on_arm.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ milvus_client.create_collection(
6565
collection_name=collection_name,
6666
dimension=384,
6767
metric_type="IP", # Inner product distance
68-
consistency_level="Strong", # Strong consistency level
68+
# Strong consistency waits for all loads to complete, adding latency with large datasets
69+
# consistency_level="Strong", # Strong consistency level
6970
)
7071
```
7172
We use inner product distance as the default metric type. For more information about distance types, you can refer to [Similarity Metrics page](https://milvus.io/docs/metric.md?tab=floating)

0 commit comments

Comments
 (0)