@@ -22,31 +22,12 @@ Copy [env.example](env.example) to `.env` and fill in values noted inside.
22
22
## Installing and connecting to Elasticsearch
23
23
24
24
There 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.
26
27
27
28
Once you decided your approach, edit your ` .env ` file accordingly.
28
29
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.
50
31
51
32
## Connecting to LLM
52
33
@@ -147,9 +128,9 @@ If you set `OTEL_SDK_DISABLED=false` in your `.env` file, the app will send
147
128
logs, metrics and traces to an OpenTelemetry compatible endpoint.
148
129
149
130
[ 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":
153
134
154
135
http://localhost:5601/app/apm/traces?rangeFrom=now-15m&rangeTo=now
155
136
@@ -201,3 +182,4 @@ See [Langchain documentation][loader-docs] for more ways to load documents.
201
182
202
183
---
203
184
[ 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