opensearch.mdx 621 B

123456789101112131415161718192021222324252627282930313233343536
  1. ---
  2. title: OpenSearch
  3. ---
  4. Install related dependencies using the following command:
  5. ```bash
  6. pip install --upgrade 'embedchain[opensearch]'
  7. ```
  8. <CodeGroup>
  9. ```python main.py
  10. from embedchain import App
  11. # load opensearch configuration from yaml file
  12. app = App.from_config(config_path="config.yaml")
  13. ```
  14. ```yaml config.yaml
  15. vectordb:
  16. provider: opensearch
  17. config:
  18. collection_name: 'my-app'
  19. opensearch_url: 'https://localhost:9200'
  20. http_auth:
  21. - admin
  22. - admin
  23. vector_dimension: 1536
  24. use_ssl: false
  25. verify_certs: false
  26. ```
  27. </CodeGroup>
  28. <Snippet file="missing-vector-db-tip.mdx" />