repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources16d ago| #1 | --- |
| #2 | title: Elasticsearch |
| #3 | --- |
| #4 | |
| #5 | Install related dependencies using the following command: |
| #6 | |
| #7 | ```bash |
| #8 | pip install --upgrade 'embedchain[elasticsearch]' |
| #9 | ``` |
| #10 | |
| #11 | <Note> |
| #12 | 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](https://cloud.elastic.co/deployments). |
| #13 | </Note> |
| #14 | |
| #15 | You can authorize the connection to Elasticsearch by providing either `basic_auth`, `api_key`, or `bearer_auth`. |
| #16 | |
| #17 | <CodeGroup> |
| #18 | |
| #19 | ```python main.py |
| #20 | from embedchain import App |
| #21 | |
| #22 | # load elasticsearch configuration from yaml file |
| #23 | app = App.from_config(config_path="config.yaml") |
| #24 | ``` |
| #25 | |
| #26 | ```yaml config.yaml |
| #27 | vectordb: |
| #28 | provider: elasticsearch |
| #29 | config: |
| #30 | collection_name: 'es-index' |
| #31 | cloud_id: 'deployment-name:xxxx' |
| #32 | basic_auth: |
| #33 | - elastic |
| #34 | - <your_password> |
| #35 | verify_certs: false |
| #36 | ``` |
| #37 | </CodeGroup> |
| #38 | |
| #39 | <Snippet file="missing-vector-db-tip.mdx" /> |
| #40 |