weaviate.mdx 553 B

123456789101112131415161718192021222324
  1. ---
  2. title: Weaviate
  3. ---
  4. In order to use Weaviate as a vector database, set the environment variables `WEAVIATE_ENDPOINT` and `WEAVIATE_API_KEY` which you can find on [Weaviate dashboard](https://console.weaviate.cloud/dashboard).
  5. <CodeGroup>
  6. ```python main.py
  7. from embedchain import App
  8. # load weaviate configuration from yaml file
  9. app = App.from_config(config_path="config.yaml")
  10. ```
  11. ```yaml config.yaml
  12. vectordb:
  13. provider: weaviate
  14. config:
  15. collection_name: my_weaviate_index
  16. ```
  17. </CodeGroup>
  18. <Snippet file="missing-vector-db-tip.mdx" />