Install related dependencies using the following command:

pip install --upgrade 'embedchain[elasticsearch]'

You can configure the Elasticsearch connection by providing either es_url or cloud_id. If you are using the Elasticsearch Service on Elastic Cloud, you can find the cloud_id on the Elastic Cloud dashboard.

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")

If you can't find specific feature or run into issues, please feel free to reach out through one of the following channels.