Skip to content

Commit

Permalink
Qdrant delete ID from training data minor mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
spatil committed May 3, 2024
1 parent 7b962d5 commit fb6401e
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 @@ -315,8 +315,8 @@ def _format_point_id(self, id: str, collection_name: str) -> str:
return "{0}-{1}".format(id, 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 ID_SUFFIXES.items():
if type == suffix:
if curr_suffix == suffix:
return id, collection_name
raise ValueError(f"Invalid id {id}")

0 comments on commit fb6401e

Please sign in to comment.