From the repo root:
cd .\text-to-sql-ai-app\backend
.\venv\Scripts\activate
pip install -r .\requirements.txt
python .\run.pyThen open http://127.0.0.1:8000/ (API routes are under /api).
Notes:
- If you run
backend\app\main.pydirectly, you may getModuleNotFoundError: No module named 'app'. Usepython .\run.py(orpython -m uvicorn app.main:app --reload) frombackend\.
- Install Ollama for Windows, then in a terminal:
ollama pull qwen2.5:3b-instruct- In
text-to-sql-ai-app\.envset:
LLM_PROVIDER=ollama
OLLAMA_MODEL=qwen2.5:3b-instruct- Restart the backend and call
POST /api/askwith only aquestion.