-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (27 loc) · 714 Bytes
/
Copy pathMakefile
File metadata and controls
32 lines (27 loc) · 714 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
install:
# python3 -m venv venv
# source ./venv/bin/activate
pip install -r setup.txt
freeze:
pip freeze > setup.txt
api:
# mkdir -p logging
# rm -f logging/out.txt
# touch logging/out.txt
# python src/api.py 2>&1 | tee logging/out.txt
python src/api.py
ingest:
python3 src/ingest.py
list: #List all the running bots
ps aux | grep python
# To kill, use command (PID is the process ID): kill PID
kill:
pkill -f "make bot"
test:
# python3 src/api.py
curl -X POST -H "Content-Type: application/json" -d '{"query": "who is karger"}' http://localhost:8083/query
curl -X POST http://localhost:8083/update
rout_train:
python src/push_dataset.py
python src/train_gpt_routing.py
# python3 src/test_api.py