Skip to main content
The milvus backend stores knowledge-chunk embeddings in a Milvus collection. It can connect to Milvus or Zilliz Cloud, or use a local Milvus Lite file. This backend is available in VeADK 1.0.3 and later.

Dependencies

Use Milvus Lite

For local validation, point DATABASE_MILVUS_URI to a Milvus Lite data file and configure an embedding model:
The first run creates the data file. Later runs can retrieve existing content by using the same file and collection name.

Example

Before running, configure MODEL_EMBEDDING_NAME, MODEL_EMBEDDING_DIM, MODEL_EMBEDDING_API_BASE, and MODEL_EMBEDDING_API_KEY. The extensions extra includes llama-index, embedding adapters, and vector-store connectors. Text is sent to the configured embedding service. For BytePlus or another provider, explicitly set the matching endpoint, model, and credentials; the default Ark endpoint does not automatically switch For remote use, provide reachable Milvus, an existing database, and credentials. Milvus Lite requires a supported platform and writable directory

Parameters

KnowledgeBase parameters

Backend configuration

Milvus configuration

Enabling overwrite can remove existing data from a collection with the same name. Use it only when the knowledge base can be rebuilt.

Embedding configuration

The example search should return the annual-leave policy. For empty results, check successful ingestion, matching embedding dimensions, completed server processing, network access, and permissions. Managed ingestion may not be immediately searchable. Running the configured Agent also requires model credentials
Last modified on September 19, 2026