@@ -22,31 +22,12 @@ Copy [env.example](env.example) to `.env` and fill in values noted inside.
2222## Installing and connecting to Elasticsearch
2323
2424There are a number of ways to install Elasticsearch. Cloud is best for most
25- use-cases. Visit the [ Install Elasticsearch] ( https://www.elastic.co/search-labs/tutorials/install-elasticsearch ) for more information.
25+ use-cases. We also have [ docker-compose-elastic.yml] ( ../../docker ) , that starts
26+ Elasticsearch, Kibana, and APM Server on your laptop with one command.
2627
2728Once you decided your approach, edit your ` .env ` file accordingly.
2829
29- ### Running your own Elastic Stack with Docker
30-
31- If you'd like to start Elastic locally, you can use the provided
32- [ docker-compose-elastic.yml] ( docker-compose-elastic.yml ) file. This starts
33- Elasticsearch, Kibana, and APM Server and only requires Docker installed.
34-
35- Use docker compose to run Elastic stack in the background:
36-
37- ``` bash
38- docker compose -f docker-compose-elastic.yml up --force-recreate -d
39- ```
40-
41- Then, you can view Kibana at http://localhost:5601/app/home#/
42-
43- If asked for a username and password, use username: elastic and password: elastic.
44-
45- Clean up when finished, like this:
46-
47- ``` bash
48- docker compose -f docker-compose-elastic.yml down
49- ```
30+ For more information, visit our [ Install Elasticsearch] [ install-es ] tutorial.
5031
5132## Connecting to LLM
5233
@@ -147,9 +128,9 @@ If you set `OTEL_SDK_DISABLED=false` in your `.env` file, the app will send
147128logs, metrics and traces to an OpenTelemetry compatible endpoint.
148129
149130[ env.example] ( env.example ) defaults to use Elastic APM server, started by
150- [ docker-compose-elastic.yml] ( docker-compose-elastic.yml ) . If you start your
151- Elastic stack this way, you can access Kibana like this, authenticating with
152- the username "elastic" and password "elastic":
131+ [ docker-compose-elastic.yml] ( ../../docker ) . If you start your Elastic stack
132+ this way, you can access Kibana like this, authenticating with the username
133+ "elastic" and password "elastic":
153134
154135http://localhost:5601/app/apm/traces?rangeFrom=now-15m&rangeTo=now
155136
@@ -201,3 +182,4 @@ See [Langchain documentation][loader-docs] for more ways to load documents.
201182
202183---
203184[ loader-docs ] : https://python.langchain.com/docs/how_to/#document-loaders
185+ [ install-es ] : https://www.elastic.co/search-labs/tutorials/install-elasticsearch
0 commit comments