Skip to content

Commit

Permalink
fix: when delete knowledge, error: space list error embedding is requ…
Browse files Browse the repository at this point in the history
…ired for MilvusStore (#1359)

Co-authored-by: xiuzhu <[email protected]>
  • Loading branch information
xiuzhu9527 and xiuzhu authored Apr 2, 2024
1 parent 4238a67 commit 6210b73
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions dbgpt/storage/vector_store/milvus_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,6 @@ def __init__(self, vector_store_config: MilvusVectorConfig) -> None:
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"
Expand Down

0 comments on commit 6210b73

Please sign in to comment.