Skip to content

Milvus Vector Database Provider

Using with DDEV.

  1. Copy the ddev-example.docker-compose.milvus.yaml to your .ddev folder.
  2. Assuming your project uses the web docroot, you can use the below command: cp web/modules/vdb_providers/vdb_provider_milvus/docs/docker-compose-examples/ddev-example.docker-compose.milvus.yaml .ddev/docker-compose.milvus.yaml
  3. Run ddev restart
  4. Access your Milvus UI at https://{project}.ddev.site:8521
  5. Set up your Milvus Vector Database Plugin configuration to use:
  6. Host: http://milvus
  7. Port: 19530

Connecting to a hosted Milvus instance.

You can use Zilliz Cloud for example at https://zilliz.com/cloud. To get started: 1. Sign up for a free trial if you do not already have a plan 2. Use the credentials provided

Contributing to the Milvus PHP library dependency.

This provider depends on https://github.com/HelgeSverre/milvus. For developers wishing to contribute to it:

  1. Fork the github repository
  2. DDEV config an empty PHP setup
  3. Make your code changes
  4. Copy the .env.example to .env
  5. Set up the .env with just this: MILVUS_USERNAME="root" MILVUS_PASSWORD="" MILVUS_HOST=http://milvus MILVUS_PORT=19530
  6. Run ddev exec ./vendor/bin/pest to run the tests.
  7. Make your pull request via the original repository

Note that until https://github.com/HelgeSverre/milvus/pull/5 is merged, the code changes in that PR are also needed so the tests run.