SuperAPI AI Directory

milvus

Milvus is a high-performance, cloud-native vector database built for scalable vector ANN search

Open website

About this tool

Milvus is a high-performance, cloud-native vector database built for scalable approximate nearest neighbor (ANN) vector search. It is written in Go and C++, and achieves first-class vector search performance through CPU/GPU hardware acceleration. With a fully distributed and K8s-native architecture, Milvus can scale horizontally, handle tens of thousands of search queries over billions of vectors, and keep data fresh through real-time streaming updates. Milvus also supports Standalone mode for single-machine deployment. Milvus Lite is a lightweight version suitable for quick start in Python via pip install.

Key capabilities:

  • High performance and high availability: The distributed architecture separates compute and storage, can scale horizontally, and can independently add query nodes to handle read-intensive workloads and data nodes to handle write-intensive workloads. Stateless microservices on K8s enable rapid failure recovery, and replicas further improve fault tolerance and throughput.
  • Multiple vector index types and hardware acceleration: Supports mainstream index types such as HNSW, IVF, FLAT (brute-force search), SCANN, and DiskANN, as well as quantization-based variants and mmap. It is optimized for advanced features such as metadata filtering and range search, and supports GPU indexes (such as NVIDIA CAGRA).
  • Flexible multi-tenancy and hot/cold storage: Supports multi-tenant isolation at the database, collection, partition, or partition key level, and a single cluster can handle hundreds to millions of tenants. Hot data can be stored in memory or SSD, while cold data is stored in low-cost storage, reducing costs while maintaining mission-critical performance.
  • Sparse vectors and hybrid search: Natively supports BM25 full-text search as well as learned sparse embeddings such as SPLADE and BGE-M3. Sparse and dense vectors can be stored in the same collection, and functions can be defined to rerank the results of multiple search requests.
  • Data security and fine-grained access control: Enforces user authentication, TLS encryption, and role-based access control (RBAC) to protect sensitive data.

Usage: Install the Python SDK: pip install pymilvus. Use MilvusClient to create a client. For a quick start, install pymilvus[milvus-lite], and instantiate the client with a local file name to persist data: client = MilvusClient("milvus_demo.db"). You can also specify credentials to connect to a deployed Milvus server or Zilliz Cloud: client = MilvusClient(uri="<endpoint_of_self_hosted_milvus_or_zilliz_cloud>", token="<username_and_password_or_zilliz_cloud_api_key>"). Then you can create collections and perform vector searches.

Use cases: Milvus is used by AI developers to build applications such as text and image search, retrieval-augmented generation (RAG), and recommendation systems. It integrates with AI development tools such as LangChain, LlamaIndex, OpenAI, and HuggingFace, making it an ideal vector store for GenAI applications. The ecosystem also includes Attu (GUI management), Birdwatcher (system debugging), Prometheus/Grafana (monitoring), Milvus CDC (data synchronization), VTS (data migration), and data connectors for Spark, Kafka, Fivetran, and Airbyte.

Limitations: Building from source requires meeting specific environment requirements (such as Linux with Ubuntu 20.04+ recommended, Go >= 1.21, CMake >= 3.26.4 and < 4, GCC >= 11, Python > 3.8 and <= 3.11, etc.). Other limitations are not provided at this time.