Skip to main content
Version: 0.0.7 (stable)

agrag.vectordb.milvus.MilvusSettings

Bases: BaseSettings

Milvus or Zilliz Cloud connection and collection namespace.

Attributes:

  • uri (str) – HTTP(S) endpoint. Env: MILVUS_URI.
  • token (SecretStr | None) – Optional authentication token. Env: MILVUS_TOKEN.
  • collection_prefix (CollectionPrefix) – Required namespace unique to one graph, starting with a letter and containing at most 41 letters, digits or underscores. Env: MILVUS_COLLECTION_PREFIX.

Searches allow up to 16384 results. Zilliz gateways can impose an approximately 4 MB response cap; use smaller limits if that cap is reached. Milvus Lite and embedded endpoints are unsupported.

collection_prefix​

collection_prefix: CollectionPrefix

model_config​

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

token​

token: SecretStr | None = None

uri​

uri: str = 'http://localhost:19530'