agrag.vectordb.settings.MilvusSettings
Bases: BaseSettings
Milvus connection configuration.
Attributes:
- uri (
str) – The Milvus endpoint URI. Env:MILVUS_URI. - token (
str) – The Milvus auth token. Empty string for an unauthenticated instance. Env:MILVUS_TOKEN. - require_tls (
bool) – WhenTrue, reject a plaintexturito a non-local host even with notokenconfigured. Off by default since many deployments run an unauthenticated Milvus on a private network and rely on network segmentation rather than transport encryption. Env:MILVUS_REQUIRE_TLS.
Raises:
ValueError–uriis plaintext (http), points at a non-local host, and eithertokenis set orrequire_tlsisTrue. Usehttpsfor a remote Milvus instance.
model_config
model_config = SettingsConfigDict(env_prefix='MILVUS_', env_file='.env', extra='ignore', hide_input_in_errors=True)
require_tls
require_tls: bool = False
token
token: str = ''
uri
uri: str = 'http://localhost:19530'