Back to Chatgpt Retrieval Plugin

Milvus

docs/providers/milvus/setup.md

latest3.4 KB
Original Source

Milvus

Milvus is the open-source, cloud-native vector database that scales to billions of vectors. It's the open-source version of Zilliz. It supports:

  • Various indexing algorithms and distance metrics
  • Scalar filtering and time travel searches
  • Rollback and snapshots
  • Multi-language SDKs
  • Storage and compute separation
  • Cloud scalability
  • A developer-first community with multi-language support

Visit the Github to learn more.

Deploying the Database

You can deploy and manage Milvus using Docker Compose, Helm, K8's Operator, or Ansible. Follow the instructions here to get started.

Environment Variables:

NameRequiredDescription
DATASTOREYesDatastore name, set to milvus
BEARER_TOKENYesYour bearer token
OPENAI_API_KEYYesYour OpenAI API key
MILVUS_COLLECTIONOptionalMilvus collection name, defaults to a random UUID
MILVUS_HOSTOptionalMilvus host IP, defaults to localhost
MILVUS_PORTOptionalMilvus port, defaults to 19530
MILVUS_USEROptionalMilvus username if RBAC is enabled, defaults to None
MILVUS_PASSWORDOptionalMilvus password if required, defaults to None
MILVUS_INDEX_PARAMSOptionalCustom index options for the collection, defaults to {"metric_type": "IP", "index_type": "HNSW", "params": {"M": 8, "efConstruction": 64}}
MILVUS_SEARCH_PARAMSOptionalCustom search options for the collection, defaults to {"metric_type": "IP", "params": {"ef": 10}}
MILVUS_CONSISTENCY_LEVELOptionalData consistency level for the collection, defaults to Bounded

Running Milvus Integration Tests

A suite of integration tests is available to verify the Milvus integration. To run the tests, run the milvus docker compose found in the examples folder.

Then, launch the test suite with this command:

bash
pytest ./tests/datastore/providers/milvus/test_milvus_datastore.py