chromadb.mdx 536 B

1234567891011121314151617181920212223242526272829303132333435
  1. ---
  2. title: ChromaDB
  3. ---
  4. <CodeGroup>
  5. ```python main.py
  6. from embedchain import App
  7. # load chroma configuration from yaml file
  8. app = App.from_config(config_path="config1.yaml")
  9. ```
  10. ```yaml config1.yaml
  11. vectordb:
  12. provider: chroma
  13. config:
  14. collection_name: 'my-collection'
  15. dir: db
  16. allow_reset: true
  17. ```
  18. ```yaml config2.yaml
  19. vectordb:
  20. provider: chroma
  21. config:
  22. collection_name: 'my-collection'
  23. host: localhost
  24. port: 5200
  25. allow_reset: true
  26. ```
  27. </CodeGroup>
  28. <Snippet file="missing-vector-db-tip.mdx" />