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):
|
||||
config = self.global_config.get("vector_db_storage_cls_kwargs", {})
|
||||
cosine_threshold = config.get("cosine_better_than_threshold")
|
||||
kwargs = self.global_config.get("vector_db_storage_cls_kwargs", {})
|
||||
cosine_threshold = kwargs.get("cosine_better_than_threshold")
|
||||
if cosine_threshold is None:
|
||||
raise ValueError(
|
||||
"cosine_better_than_threshold must be specified in vector_db_storage_cls_kwargs"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue