Skip to content

Commit

Permalink
Use published images in chatbot-rag-app example
Browse files Browse the repository at this point in the history
  • Loading branch information
anuraaga committed Feb 13, 2025
1 parent fc237e4 commit a129c32
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 9 additions & 2 deletions example-apps/chatbot-rag-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,13 @@ ease while locally is advised if you are making changes to the application.
### Run with docker

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

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

```bash
docker compose up --build --force-recreate
docker compose up --force-recreate
```

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

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

### Building from source with docker

To build the app with Docker instead of using published images, pass the `--build`
flag to Compose.

```bash
docker compose up --build --force-recreate
```

---
[loader-docs]: https://python.langchain.com/docs/how_to/#document-loaders
Expand Down
2 changes: 2 additions & 0 deletions example-apps/chatbot-rag-app/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: chatbot-rag-app

services:
ingest-data:
image: ghcr.io/elastic/elasticsearch-labs/chatbot-rag-app
build:
context: .
container_name: ingest-data
Expand All @@ -22,6 +23,7 @@ services:
ingest-data:
condition: service_completed_successfully
container_name: api-frontend
image: ghcr.io/elastic/elasticsearch-labs/chatbot-rag-app
build:
context: .
env_file:
Expand Down

0 comments on commit a129c32

Please sign in to comment.