mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-13 04:46:52 +08:00
fix weaviate delete_by_ids (#2565)
This commit is contained in:
@@ -150,10 +150,11 @@ class WeaviateVector(BaseVector):
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
def delete_by_ids(self, ids: list[str]) -> None:
|
def delete_by_ids(self, ids: list[str]) -> None:
|
||||||
self._client.data_object.delete(
|
for uuid in ids:
|
||||||
ids,
|
self._client.data_object.delete(
|
||||||
class_name=self._collection_name
|
class_name=self._collection_name,
|
||||||
)
|
uuid=uuid,
|
||||||
|
)
|
||||||
|
|
||||||
def search_by_vector(self, query_vector: list[float], **kwargs: Any) -> list[Document]:
|
def search_by_vector(self, query_vector: list[float], **kwargs: Any) -> list[Document]:
|
||||||
"""Look up similar documents by embedding vector in Weaviate."""
|
"""Look up similar documents by embedding vector in Weaviate."""
|
||||||
|
|||||||
Reference in New Issue
Block a user