mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-13 20:35:55 +08:00
fix weaviate delete_by_ids (#2565)
This commit is contained in:
parent
6bbd53512e
commit
562ca45e07
@ -150,9 +150,10 @@ 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:
|
||||||
|
for uuid in ids:
|
||||||
self._client.data_object.delete(
|
self._client.data_object.delete(
|
||||||
ids,
|
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]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user