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) – WhenTrue, reject a plaintexturlto a non-local host even with noapi_keyconfigured. 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–urlis plaintext (http), points at a non-local host, and eitherapi_keyis set orrequire_tlsisTrue. Usehttpsfor 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'