-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (43 loc) · 1.56 KB
/
Makefile
File metadata and controls
52 lines (43 loc) · 1.56 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
44
45
46
47
48
49
50
51
52
# Info Naut - Makefile for easy command execution
.PHONY: help dev backend frontend test eval ingest clean
help:
@echo "Info Naut - Available Commands"
@echo "=============================="
@echo ""
@echo " make dev - Start both backend and frontend in development mode"
@echo " make backend - Start backend only"
@echo " make frontend - Start frontend only"
@echo " make test - Run all tests"
@echo " make eval - Run evaluation harness"
@echo " make ingest - Ingest sample corpus"
@echo " make clean - Clean generated files"
@echo ""
dev:
@echo "Starting Info Naut in development mode..."
@echo "Backend will run on http://localhost:8000"
@echo "Frontend will run on http://localhost:3000"
@echo ""
@echo "NOTE: Run 'make backend' and 'make frontend' in separate terminals"
backend:
@echo "Starting Info Naut Backend..."
cd backend && uvicorn app.main:app --reload --port 8000
frontend:
@echo "Starting Info Naut Frontend..."
cd frontend && npm run dev
test:
@echo "Running Info Naut Tests..."
cd backend && pytest tests/ -v
eval:
@echo "Running Evaluation Harness..."
cd backend && python run_eval.py
ingest:
@echo "Ingesting sample corpus..."
@echo "NOTE: Use the web interface to upload documents"
@echo "Or use the API: POST /api/knowledge-bases/{id}/documents"
clean:
@echo "Cleaning generated files..."
find . -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true
find . -type f -name "*.pyc" -delete 2>/dev/null || true
rm -f backend/data/infonaut.db
rm -f eval_report.json
@echo "Clean complete!"