diff --git a/src/vanna/qdrant/qdrant.py b/src/vanna/qdrant/qdrant.py index 48c0023e..687de92b 100644 --- a/src/vanna/qdrant/qdrant.py +++ b/src/vanna/qdrant/qdrant.py @@ -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}")