This repository is a minimal, runnable demo that implements core parts of the assignment:
- dynamic schema discovery (SQLAlchemy reflection)
- document ingestion (txt/csv) + TF-IDF index (scikit-learn)
- a QueryEngine that heuristically maps simple NL queries to SQL or document search
- a lightweight single-page frontend (HTML + JS) to interact with the API
cdinto the project folder.- Create and activate a Python virtualenv:
python -m venv .venv source .venv/bin/activate # Windows: .\.venv\Scripts\Activate.ps1
- Install dependencies:
pip install -r backend/requirements.txt
- (Optional) Preload sample resumes into the document index:
python -m backend.preload_resumes
- Start the server:
uvicorn backend.main:app --reload --host 0.0.0.0 --port 8000
- Open http://localhost:8000/ in your browser.
- How many employees do we have?
- Average salary by department
- Show me employees
- Find resumes with Python