From 6210b73ba2c4be6843fcb9accde8df796ca4fd15 Mon Sep 17 00:00:00 2001 From: xiuzhu9527 <1406823834@QQ.COM> Date: Mon, 1 Apr 2024 22:09:27 -0500 Subject: [PATCH] fix: when delete knowledge, error: space list error embedding is required for MilvusStore (#1359) Co-authored-by: xiuzhu --- dbgpt/storage/vector_store/milvus_store.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/dbgpt/storage/vector_store/milvus_store.py b/dbgpt/storage/vector_store/milvus_store.py index e0b802a83..de8f27885 100644 --- a/dbgpt/storage/vector_store/milvus_store.py +++ b/dbgpt/storage/vector_store/milvus_store.py @@ -175,9 +175,6 @@ class MilvusStore(VectorStoreBase): hex_str = bytes_str.hex() self.collection_name = hex_str - if not vector_store_config.embedding_fn: - raise ValueError("embedding is required for MilvusStore") - self.embedding: Embeddings = vector_store_config.embedding_fn self.fields: List = [] self.alias = milvus_vector_config.get("alias") or "default"