AI Companion for Tier-2/Tier-3 India.
- Prerequisites: Docker, Python 3.11, Ollama (optional for local LLM).
- Run:
chmod +x scripts/run_local.sh ./scripts/run_local.sh
- Ingest Data:
python3 scripts/ingest.py
- Test:
chmod +x tests/test_endpoints.sh ./tests/test_endpoints.sh
-
Setup Virtual Env:
python3 -m venv venv source venv/bin/activate pip install -r requirements.txt -
Run Unit Tests (Logic only):
python tests/test_logic.py
-
Run Integration Tests:
# Start server in background export PYTHONPATH=$PWD/backend uvicorn saathi.routes:app --host 0.0.0.0 --port 8000 & # Run tests bash tests/test_endpoints.sh # Stop server pkill -f uvicorn
Edit .env or backend/saathi/config.py to switch LLM providers (OLLAMA, VLLM, EXTERNAL).
See OP_MODE.md for cost optimization details.