-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·46 lines (39 loc) · 955 Bytes
/
Copy pathrun.sh
File metadata and controls
executable file
·46 lines (39 loc) · 955 Bytes
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
#!/usr/bin/env bash
set -e
run_agent () {
echo "Starting LangGraph agent..."
cd agent
npx @langchain/langgraph-cli@1.1.17 dev
}
run_ensemble_service () {
echo "Starting Ensemble service..."
cd "supporting/RAGAS_Service"
.venv/bin/uvicorn ensemble_service:app --timeout-keep-alive 300
}
run_frontend () {
echo "Starting frontend (Streamlit)..."
cd "supporting/scorer"
.venv/bin/streamlit run display.py
}
run_fetch () {
echo "Running fetch job..."
cd "supporting/dbkf"
python fetch.py
}
run_wrapper () {
echo "Running wrapper..."
cd "supporting/Wrapper"
npm run dev
}
case "$1" in
agent) run_agent ;;
ensemble_service) run_ensemble_service ;;
frontend) run_frontend ;;
fetch) run_fetch ;;
wrapper) run_wrapper ;;
*)
echo "Unknown command: $1"
echo "Usage: ./runproject [agent|ensemble_service|frontend|fetch|wrapper]"
exit 1
;;
esac