zilliz.mdx 833 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. ---
  2. title: Zilliz
  3. ---
  4. Install related dependencies using the following command:
  5. ```bash
  6. pip install --upgrade 'embedchain[milvus]'
  7. ```
  8. Set the Zilliz environment variables `ZILLIZ_CLOUD_URI` and `ZILLIZ_CLOUD_TOKEN` which you can find it on their [cloud platform](https://cloud.zilliz.com/).
  9. <CodeGroup>
  10. ```python main.py
  11. import os
  12. from embedchain import App
  13. os.environ['ZILLIZ_CLOUD_URI'] = 'https://xxx.zillizcloud.com'
  14. os.environ['ZILLIZ_CLOUD_TOKEN'] = 'xxx'
  15. # load zilliz configuration from yaml file
  16. app = App.from_config(config_path="config.yaml")
  17. ```
  18. ```yaml config.yaml
  19. vectordb:
  20. provider: zilliz
  21. config:
  22. collection_name: 'zilliz_app'
  23. uri: https://xxxx.api.gcp-region.zillizcloud.com
  24. token: xxx
  25. vector_dim: 1536
  26. metric_type: L2
  27. ```
  28. </CodeGroup>
  29. <Snippet file="missing-vector-db-tip.mdx" />