mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 13:59:06 +08:00
Fix vdb merge error (#2650)
This commit is contained in:
parent
05ce7b9d5e
commit
f322d9bddb
@ -231,6 +231,9 @@ class QdrantVector(BaseVector):
|
||||
|
||||
def delete(self):
|
||||
from qdrant_client.http import models
|
||||
from qdrant_client.http.exceptions import UnexpectedResponse
|
||||
|
||||
try:
|
||||
filter = models.Filter(
|
||||
must=[
|
||||
models.FieldCondition(
|
||||
@ -245,7 +248,13 @@ class QdrantVector(BaseVector):
|
||||
filter=filter
|
||||
),
|
||||
)
|
||||
|
||||
except UnexpectedResponse as e:
|
||||
# Collection does not exist, so return
|
||||
if e.status_code == 404:
|
||||
return
|
||||
# Some other error occurred, so re-raise the exception
|
||||
else:
|
||||
raise e
|
||||
def delete_by_ids(self, ids: list[str]) -> None:
|
||||
|
||||
from qdrant_client.http import models
|
||||
|
@ -52,7 +52,7 @@ safetensors==0.3.2
|
||||
zhipuai==1.0.7
|
||||
werkzeug~=3.0.1
|
||||
pymilvus==2.3.0
|
||||
qdrant-client==1.6.4
|
||||
qdrant-client==1.7.3
|
||||
cohere~=4.44
|
||||
pyyaml~=6.0.1
|
||||
numpy~=1.25.2
|
||||
|
Loading…
x
Reference in New Issue
Block a user