-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (33 loc) · 1.32 KB
/
Copy pathMakefile
File metadata and controls
43 lines (33 loc) · 1.32 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
42
43
.PHONY: up down seed pipeline demo test logs rebuild index-code eval
# Bring up Postgres(pgvector) + API. First run downloads the embedding model.
up:
docker compose up -d --build
@echo "API: http://localhost:8000 (dashboard at /)"
down:
docker compose down
# Rebuild the API image without cache (after dependency changes)
rebuild:
docker compose build --no-cache api
# Load sample issues + case library and embed them
seed:
docker compose exec api python -m scripts.seed
# Run the full pipeline: ingest -> embed -> classify -> RAG analyze
pipeline:
docker compose exec api python -m scripts.run_pipeline
# Index this repo's own source (+ sample Java) for semantic code search
index-code:
docker compose exec api python -m scripts.index_code
# Evaluate classification accuracy against ground-truth labels
eval:
docker compose exec api python -m scripts.eval_classifier
# End-to-end demo (seed + pipeline + a couple of queries)
demo: seed pipeline
@echo "--- analysis for issue #1 ---"
curl -s localhost:8000/issues/1/analysis | python -m json.tool || true
@echo "--- semantic search: 'login timeout' ---"
curl -s 'localhost:8000/search?q=login%20timeout&k=5' | python -m json.tool || true
# Run tests (no LLM key required: rule-based fallback path)
test:
docker compose exec api python -m pytest
logs:
docker compose logs -f api