Homeglossary

Milvus

Milvus is a vector database that stores embeddings and retrieves data with similar meaning, rather than only matching exact keywords. It helps software teams build semantic search, recommendations, image retrieval, and retrieval-augmented generation features. Milvus is open source and was created by Zilliz, with local, self-managed, and managed deployment options.

Build AI search apps with Emergent.

What Is Milvus?

Milvus is an open-source vector database that stores embeddings and finds data with similar meaning, not just matching keywords. It helps software teams build semantic search, recommendations, image retrieval, and retrieval-augmented generation, also called RAG.

An embedding is a list of numbers created by an AI model to represent the meaning of text, images, or other content. Traditional search is useful for exact terms, but Milvus can return a document about “password recovery” when a user searches for “reset my login.”

How Milvus Vector Search Works

Milvus turns meaning-based retrieval into a repeatable database query process.

  1. Create embeddings for source content with an embedding model.
  2. Store each vector and useful metadata, such as category, date, or user permissions, in a collection.
  3. Build an index that makes similarity searches faster.
  4. Convert the user query into a query vector.
  5. Search for the closest vectors and apply metadata filters where needed.
  6. Return the best matches to an app or an LLM. Approximate nearest-neighbor search improves speed, with a configurable trade-off between speed and recall.

Milvus Deployment Options

Teams can start locally and move toward more managed or distributed deployments as operational needs grow.

OptionBest forResponsibility
Milvus LiteLocal development, tests, and small prototypesDeveloper manages the local environment
Standalone MilvusSingle-server applicationsTeam manages hosting and upgrades
Distributed MilvusHigher-scale production workloadsTeam manages cluster operations
Zilliz CloudManaged production vector searchZilliz operates the service

Zilliz is the company that created Milvus and offers its managed cloud service.

Benefits of Milvus for AI Applications

Milvus is useful when an application must retrieve relevant context from unstructured data.

  • Semantic search can match intent even when wording differs.
  • Dense, sparse, and hybrid retrieval support different search strategies.
  • Metadata filters can narrow results by product, tenant, date, or access rules.
  • It supports RAG assistants, product recommendations, and multimodal image or document search.
  • Its open-source model gives engineering teams deployment flexibility and framework integrations.

For related concepts, see the AI and software glossary.

Practical Limits and Design Considerations

Milvus improves retrieval, but it cannot compensate for poor data or poorly chosen embeddings.

  • Embedding quality and chunking choices strongly affect relevance.
  • Index settings, updates, and filtering can affect query latency.
  • Self-hosted clusters need monitoring, backups, security controls, and capacity planning.
  • Applications should enforce access control before exposing retrieved content.
  • Measure retrieval quality with representative user queries before tuning indexes for speed.

Milvus in an AI App Development Workflow

Milvus sits between data ingestion and the application experience. A pipeline splits documents into chunks, creates embeddings, and stores them in Milvus. When a user asks a question, the app retrieves relevant context and can send it to an LLM to produce a grounded response. Teams planning this architecture can explore app design and development approaches, then use Emergent's agentic workflow to build, test, and deploy a full-stack AI app with Milvus-backed search. Build AI search apps with Emergent.

Start Building
on Emergent today
Start Building