Skip to content

Commit

Permalink
Merge pull request #406 from sourabh-patil/qdrant_delete_training_data
Browse files Browse the repository at this point in the history
Qdrant delete ID from training data minor mistake
  • Loading branch information
zainhoda authored May 6, 2024
2 parents e7f1a12 + a91d98c commit 003ec4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vanna/qdrant/qdrant.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,8 @@ def _format_point_id(self, id: str, collection_name: str) -> str:
return "{0}-{1}".format(id, self.id_suffixes[collection_name])

def _parse_point_id(self, id: str) -> Tuple[str, str]:
id, suffix = id.rsplit("-", 1)
id, curr_suffix = id.rsplit("-", 1)
for collection_name, suffix in self.id_suffixes.items():
if type == suffix:
if curr_suffix == suffix:
return id, collection_name
raise ValueError(f"Invalid id {id}")

0 comments on commit 003ec4f

Please sign in to comment.