Skip to content

Commit

Permalink
fix: Fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
hh-space-invader committed Dec 4, 2024
1 parent d935b23 commit 50b887c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions qdrant_client/local/local_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -2185,15 +2185,16 @@ def upsert(self, points: Union[Sequence[models.PointStruct], models.Batch]) -> N
vector=vector,
)
)
else:
raise ValueError(f"Unsupported type: {type(points)}")

if len(self.ids) > self.LARGE_DATA_THRESHOLD:
show_warning_once(
f"Local mode is not recommended for collections with more than {self.LARGE_DATA_THRESHOLD:,} points, currect collection contains {len(self.ids)}."
"Consider using Qdrant in docker or Qdrant cloud for better performance with large datasets.",
category=UserWarning,
idx="large-local-collection",
)
else:
raise ValueError(f"Unsupported type: {type(points)}")

def _update_named_vectors(
self, idx: int, vectors: dict[str, Union[list[float], SparseVector]]
Expand Down

0 comments on commit 50b887c

Please sign in to comment.