__all__ = ['QdrantVectorStoreDriver']module-attribute
Bases:
BaseVectorStoreDriver
Attributes
| Name | Type | Description |
|---|---|---|
location | Optional[str] | An optional location for the Qdrant client. If set to ':memory:', an in-memory client is used. |
url | Optional[str] | An optional Qdrant API URL. |
host | Optional[str] | An optional Qdrant host. |
path | Optional[str] | Persistence path for QdrantLocal. Default: None |
port | int | The port number for the Qdrant client. Defaults: 6333. |
grpc_port | int | The gRPC port number for the Qdrant client. Defaults: 6334. |
prefer_grpc | bool | A boolean indicating whether to prefer gRPC over HTTP. Defaults: False. |
force_disable_check_same_thread | Optional[bool] | For QdrantLocal, force disable check_same_thread. Default: False Only use this if you can guarantee that you can resolve the thread safety outside QdrantClient. |
timeout | Optional[int] | Timeout for REST and gRPC API requests. Default: 5 seconds for REST and unlimited for gRPC |
api_key | Optional[str] | API key for authentication in Qdrant Cloud. Defaults: False |
https | bool | If true - use HTTPS(SSL) protocol. Default: True |
prefix | Optional[str] | Add prefix to the REST URL path. Example: service/v1 will result in Example: service/v1 will result in http://localhost:6333/service/v1/{qdrant-endpoint} for REST API. Defaults: None |
distance | str | The distance metric to be used for the vectors. Defaults: 'COSINE'. |
collection_name | str | The name of the Qdrant collection. |
vector_name | Optional[str] | An optional name for the vectors. |
content_payload_key | str | The key for the content payload in the metadata. Defaults: 'data'. |