docarray.array.storage.qdrant.backend module#
- class docarray.array.storage.qdrant.backend.QdrantConfig(n_dim, distance='cosine', collection_name=None, list_like=True, host='localhost', port=6333, grpc_port=6334, prefer_grpc=False, api_key=None, https=None, serialize_config=<factory>, scroll_batch_size=64, ef_construct=None, full_scan_threshold=None, m=None, columns=None, root_id=True)[source]#
Bases:
object
- n_dim: int#
- distance: str = 'cosine'#
- collection_name: Optional[str] = None#
- list_like: bool = True#
- host: Optional[str] = 'localhost'#
- port: Optional[int] = 6333#
- grpc_port: Optional[int] = 6334#
- prefer_grpc: Optional[bool] = False#
- api_key: Optional[str] = None#
- https: Optional[bool] = None#
- serialize_config: Dict#
- scroll_batch_size: int = 64#
- ef_construct: Optional[int] = None#
- full_scan_threshold: Optional[int] = None#
- m: Optional[int] = None#
- columns: Optional[Union[List[Tuple[str, str]], Dict[str, str]]] = None#
- root_id: bool = True#
- class docarray.array.storage.qdrant.backend.BackendMixin[source]#
Bases:
BaseBackendMixin
- abstract property client: QdrantClient#
- Return type:
QdrantClient
- abstract property collection_name: str#
- Return type:
str
- abstract property distance: Distance#
- Return type:
Distance
- TYPE_MAP: Dict[str, TypeMap] = {'bool': TypeMap(type='int', converter=<class 'bool'>), 'float': TypeMap(type='float', converter=<class 'float'>), 'geo': TypeMap(type='geo', converter=<class 'dict'>), 'int': TypeMap(type='integer', converter=<class 'int'>), 'str': TypeMap(type='keyword', converter=<class 'str'>), 'text': TypeMap(type='text', converter=<class 'str'>)}#