-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (33 loc) · 1.02 KB
/
Makefile
File metadata and controls
41 lines (33 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
.PHONY: build up down logs pull-model clean test-health test-research
# Build all Docker images
build:
docker compose build
# Start all services
up:
docker compose up -d
# Stop all services
down:
docker compose down
# Tail logs for all services (or pass service=backend etc.)
logs:
docker compose logs -f $(service)
# Pull the default Ollama model into the running container
pull-model:
docker compose exec ollama ollama pull $${OLLAMA_MODEL:-llama3.2}
# Remove containers, images, and volumes
clean:
docker compose down -v --rmi local
# Health check
test-health:
curl -s http://localhost:8000/health | python3 -m json.tool
# Sample research request (2 real URLs)
test-research:
curl -s -X POST http://localhost:8000/api/research \
-H "Content-Type: application/json" \
-d '{ \
"topic": "Benefits of open source large language models", \
"urls": [ \
"https://en.wikipedia.org/wiki/Large_language_model", \
"https://huggingface.co/blog/open-llm-leaderboard-v2" \
] \
}' | python3 -m json.tool