File size: 682 Bytes
598f5cb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
.PHONY: ingest export ui clean venv stop restart ps

venv:
	python3 -m venv .venv && . .venv/bin/activate && pip install -U pip wheel && pip install -r requirements.txt

ingest:
	python app/main.py ingest

search:
	python app/main.py search --q "capacity building"

export:
	python app/main.py export --q "capacity building" --out data/exports/results.csv

ui:
	streamlit run app/ui_streamlit.py

ps:
	ps aux | grep streamlit | grep -v grep || true

stop:
	- pkill -f "streamlit run app/ui_streamlit.py" || true
	- pgrep -f "streamlit" | xargs kill -9 2>/dev/null || true

restart: stop
	streamlit run app/ui_streamlit.py

clean:
	rm -rf data/index data/docstore data/exports/*.csv