Skip to content

Commit

Permalink
Return True on successful deletion
Browse files Browse the repository at this point in the history
`UpdateStatus` can be either `acknowledged` or `completed`. Either means successful deletion
  • Loading branch information
AlbertoLanaro authored Jun 10, 2024
1 parent 7aa353c commit 079706b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vanna/qdrant/qdrant.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def remove_training_data(self, id: str, **kwargs) -> bool:
try:
id, collection_name = self._parse_point_id(id)
res = self._client.delete(collection_name, points_selector=[id])
res == UpdateStatus.COMPLETED
return True
except ValueError:
return False

Expand Down

0 comments on commit 079706b

Please sign in to comment.