embedchain/docs/components/vector-databases/elasticsearch.mdx
Install related dependencies using the following command:
pip install --upgrade 'embedchain[elasticsearch]'
You can authorize the connection to Elasticsearch by providing either basic_auth, api_key, or bearer_auth.
from embedchain import App
# load elasticsearch configuration from yaml file
app = App.from_config(config_path="config.yaml")
vectordb:
provider: elasticsearch
config:
collection_name: 'es-index'
cloud_id: 'deployment-name:xxxx'
basic_auth:
- elastic
- <your_password>
verify_certs: false