Skip to main content

agrag.vectordb.settings.QdrantSettings

Bases: BaseSettings

Qdrant connection configuration.

Attributes:

  • url (str) – The Qdrant endpoint URL. Env: QDRANT_URL.
  • api_key (str) – The Qdrant API key. Env: QDRANT_API_KEY.
  • require_tls (bool) – When True, reject a plaintext url to a non-local host even with no api_key configured. Off by default since many deployments run an unauthenticated Qdrant on a private network and rely on network segmentation rather than transport encryption. Env: QDRANT_REQUIRE_TLS.

Raises:

  • ValueError – url is plaintext (http), points at a non-local host, and either api_key is set or require_tls is True. Use https for a remote Qdrant instance.

api_key​

api_key: str = ''

model_config​

model_config = SettingsConfigDict(env_prefix='QDRANT_', env_file='.env', extra='ignore', hide_input_in_errors=True)

require_tls​

require_tls: bool = False

url​

url: str = 'http://localhost:6333'