We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b59f18 commit ef6a891Copy full SHA for ef6a891
backend/src/app/core/vector/crud/crud_base.py
@@ -97,20 +97,12 @@ def add_embedding(
97
embedding: Vector embedding
98
"""
99
collection = self._get_collection(client=client, project_id=project_id)
100
- if collection.data.exists(uuid=id.uuidv5()):
101
- collection.data.replace(
102
- uuid=id.uuidv5(),
103
- properties=id.model_dump(),
104
- references=None,
105
- vector=embedding,
106
- )
107
- else:
108
- collection.data.insert(
109
110
111
112
113
+ collection.data.insert(
+ uuid=id.uuidv5(),
+ properties=id.model_dump(),
+ references=None,
+ vector=embedding,
+ )
114
115
def add_embedding_batch(
116
self,
0 commit comments