Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate cleat fix #888

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions qdrant_client/migrate/migrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from qdrant_client._pydantic_compat import to_dict
from qdrant_client.client_base import QdrantBase
from qdrant_client.http import models
from tests.conversions.fixtures import strict_mode_config


def upload_with_retry(
Expand Down Expand Up @@ -125,6 +126,7 @@ def _recreate_collection(
optimizers_config=models.OptimizersConfigDiff(**to_dict(src_config.optimizer_config)),
wal_config=models.WalConfigDiff(**to_dict(src_config.wal_config)),
quantization_config=src_config.quantization_config,
strict_mode_config=src_config.strict_mode_config,
)

_recreate_payload_schema(dest_client, collection_name, src_payload_schema)
Expand Down
5 changes: 4 additions & 1 deletion tests/test_migrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,9 @@ def test_recreate_collection(remote_client: QdrantClient):
compression=models.CompressionRatio.X4, always_ram=False
)
)

strict_mode_config = models.StrictModeConfig(
read_rate_limit=1000000
)
remote_client.create_collection(
collection_name,
vectors_config=vectors_config,
Expand All @@ -490,6 +492,7 @@ def test_recreate_collection(remote_client: QdrantClient):
optimizers_config=optimizers_config,
wal_config=wal_config,
quantization_config=general_quantization_config,
strict_mode_config=strict_mode_config
)

remote_client.create_payload_index(
Expand Down
Loading