qdrant_client.migrate.migrate module¶
- migrate(source_client: QdrantBase, dest_client: QdrantBase, collection_names: Optional[list[str]] = None, recreate_on_collision: bool = False, batch_size: int = 100) None [source]¶
将集合从源客户端迁移到目标客户端
- 参数:
source_client (QdrantBase) – 源客户端
dest_client (QdrantBase) – 目标客户端
collection_names (list[str], optional) – 要迁移的集合名称列表。如果为 None,则迁移所有源客户端集合。默认为 None。
recreate_on_collision (bool, optional) – 如果为 True,则如果集合已存在则重新创建,否则引发 ValueError。
batch_size (int, optional) – 用于滚动和上传向量的批处理大小。默认为 100。
- upload_with_retry(client: QdrantBase, collection_name: str, points: Iterable[PointStruct], max_attempts: int = 3, pause: float = 3.0) None [source]¶