Skip to content

Commit 2868e7d

Browse files
Use published images in chatbot-rag-app example (#395)
Co-authored-by: Adrian Cole <[email protected]>
1 parent fc237e4 commit 2868e7d

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

example-apps/chatbot-rag-app/README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,13 @@ ease while locally is advised if you are making changes to the application.
5151
### Run with docker
5252

5353
Docker compose is the easiest way, as you get one-step to:
54-
* build the [frontend](frontend)
5554
* ingest data into elasticsearch
5655
* run the app, which listens on http://localhost:4000
5756

5857
**Double-check you have a `.env` file with all your variables set first!**
5958

6059
```bash
61-
docker compose up --build --force-recreate
60+
docker compose up --pull always --force-recreate
6261
```
6362

6463
*Note*: First time creating the index can fail on timeout. Wait a few minutes
@@ -186,6 +185,14 @@ passages. Modify this script to index your own data.
186185

187186
See [Langchain documentation][loader-docs] for more ways to load documents.
188187

188+
### Building from source with docker
189+
190+
To build the app from source instead of using published images, pass the `--build`
191+
flag to Docker Compose.
192+
193+
```bash
194+
docker compose up --build --force-recreate
195+
```
189196

190197
---
191198
[loader-docs]: https://python.langchain.com/docs/how_to/#document-loaders

example-apps/chatbot-rag-app/docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: chatbot-rag-app
22

33
services:
44
ingest-data:
5+
image: ghcr.io/elastic/elasticsearch-labs/chatbot-rag-app
56
build:
67
context: .
78
container_name: ingest-data
@@ -22,6 +23,7 @@ services:
2223
ingest-data:
2324
condition: service_completed_successfully
2425
container_name: api-frontend
26+
image: ghcr.io/elastic/elasticsearch-labs/chatbot-rag-app
2527
build:
2628
context: .
2729
env_file:

0 commit comments

Comments
 (0)