fix configuration errors of milvus
This commit is contained in:
parent
0f12b400e4
commit
307184985b
1 changed files with 2 additions and 2 deletions
|
|
@ -32,8 +32,8 @@ class MilvusVectorDBStorage(BaseVectorStorage):
|
||||||
)
|
)
|
||||||
|
|
||||||
def __post_init__(self):
|
def __post_init__(self):
|
||||||
config = self.global_config.get("vector_db_storage_cls_kwargs", {})
|
kwargs = self.global_config.get("vector_db_storage_cls_kwargs", {})
|
||||||
cosine_threshold = config.get("cosine_better_than_threshold")
|
cosine_threshold = kwargs.get("cosine_better_than_threshold")
|
||||||
if cosine_threshold is None:
|
if cosine_threshold is None:
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"cosine_better_than_threshold must be specified in vector_db_storage_cls_kwargs"
|
"cosine_better_than_threshold must be specified in vector_db_storage_cls_kwargs"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue