Skip to content

Commit

Permalink
fix: add strict mode config to recreate collection
Browse files Browse the repository at this point in the history
  • Loading branch information
joein committed Jan 5, 2025
1 parent 08a282f commit 2875d81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions qdrant_client/async_qdrant_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -2528,6 +2528,7 @@ async def recreate_collection(
timeout: Optional[int] = None,
sparse_vectors_config: Optional[Mapping[str, types.SparseVectorParams]] = None,
sharding_method: Optional[types.ShardingMethod] = None,
strict_mode_config: Optional[types.StrictModeConfig] = None,
**kwargs: Any,
) -> bool:
await self.delete_collection(collection_name, timeout=timeout)
Expand All @@ -2546,6 +2547,7 @@ async def recreate_collection(
timeout=timeout,
sparse_vectors_config=sparse_vectors_config,
sharding_method=sharding_method,
strict_mode_config=strict_mode_config,
)

@property
Expand Down
2 changes: 2 additions & 0 deletions qdrant_client/qdrant_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -2798,6 +2798,7 @@ def recreate_collection(
timeout: Optional[int] = None,
sparse_vectors_config: Optional[Mapping[str, types.SparseVectorParams]] = None,
sharding_method: Optional[types.ShardingMethod] = None,
strict_mode_config: Optional[types.StrictModeConfig] = None,
**kwargs: Any,
) -> bool:
self.delete_collection(collection_name, timeout=timeout)
Expand All @@ -2817,6 +2818,7 @@ def recreate_collection(
timeout=timeout,
sparse_vectors_config=sparse_vectors_config,
sharding_method=sharding_method,
strict_mode_config=strict_mode_config,
)

@property
Expand Down

0 comments on commit 2875d81

Please sign in to comment.