Skip to content

Commit

Permalink
fix: Raise if named vector not found in local mode
Browse files Browse the repository at this point in the history
  • Loading branch information
hh-space-invader committed Oct 15, 2024
1 parent 5897726 commit 6c589dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions qdrant_client/local/async_qdrant_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,8 @@ async def upsert(
self, collection_name: str, points: types.Points, **kwargs: Any
) -> types.UpdateResult:
collection = self._get_collection(collection_name)
if not collection.vectors_config:
raise ValueError("Wrong input: Not existing vector name error")
collection.upsert(points)
return self._default_update_result()

Expand Down
2 changes: 2 additions & 0 deletions qdrant_client/local/qdrant_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,8 @@ def upsert(
self, collection_name: str, points: types.Points, **kwargs: Any
) -> types.UpdateResult:
collection = self._get_collection(collection_name)
if not collection.vectors_config:
raise ValueError("Wrong input: Not existing vector name error")
collection.upsert(points)
return self._default_update_result()

Expand Down

0 comments on commit 6c589dc

Please sign in to comment.