run demos without docker, keep docker optional via --with-ui

This commit is contained in:
Adil Hafeez 2026-03-09 17:18:11 +00:00
parent b9f01c8471
commit 1285bd083d
33 changed files with 447 additions and 316 deletions

View file

@ -10,19 +10,27 @@ cd demos/llm_routing/preference_based_routing
./run_demo.sh
```
Or manually:
To also start AnythingLLM (chat UI) and Jaeger (tracing):
```bash
./run_demo.sh --with-ui
```
Then open AnythingLLM at http://localhost:3001/
Or start manually:
1. Start Plano
```bash
planoai up config.yaml
```
2. Start AnythingLLM
2. (Optional) Start AnythingLLM and Jaeger
```bash
docker compose up -d
```
3. open AnythingLLM http://localhost:3001/
3. Test with curl or open AnythingLLM http://localhost:3001/
# Testing out preference based routing

View file

@ -28,18 +28,19 @@ start_demo() {
echo "Starting Plano with config.yaml..."
planoai up config.yaml
# Step 4: Start services
echo "Starting services using Docker Compose..."
docker compose up -d
# Step 4: Optionally start UI services (AnythingLLM, Jaeger)
if [ "$1" == "--with-ui" ]; then
echo "Starting UI services (AnythingLLM, Jaeger)..."
docker compose up -d
fi
}
# Function to stop the demo
stop_demo() {
# Step 1: Stop Docker Compose services
echo "Stopping Docker Compose services..."
docker compose down
# Stop Docker Compose services if running
docker compose down 2>/dev/null || true
# Step 2: Stop Plano
# Stop Plano
echo "Stopping Plano..."
planoai down
}
@ -48,5 +49,5 @@ stop_demo() {
if [ "$1" == "down" ]; then
stop_demo
else
start_demo
start_demo "$1"
fi