A small conversational RAG exercise that keeps earlier questions in a session so a follow-up can refer back to them. A second question that says it is understood in the context of the prior turn, and answers come from local passages through POST /ask. A versioned /v1 API adds workspaces, tenant isolation, job approval and audit records.
- Built with: Python, pytest, Docker, GitHub Actions
- Scope: Local laptop lab; answers come from local passages, with no hosted model and no production changes.
Project architecture · Interview questions and answers
Use the architecture document for the component diagram, implementation boundaries, and verification entry points. The interview guide includes source-backed answers and project walkthroughs.
| Component | Responsibility |
|---|---|
src/convrag/main.py |
HTTP handlers: GET /healthz, POST /ask |
src/convrag/ops.py |
HTTP handlers: GET /readyz, POST /workspaces, GET /workspaces, POST /workspaces/{workspace_id}/jobs, GET /jobs/{job_id} |
src/convrag/memory.py |
Functions: words, ask |
requirements.txt |
Implementation or supporting configuration |
src/convrag/__init__.py |
Implementation or supporting configuration |
Dockerfile |
Container build/service configuration |
Makefile |
Implementation or supporting configuration |
docker-compose.yml |
Container build/service configuration |
tests/test_memory.py |
Executable checks and regression examples |
tests/test_ops.py |
Executable checks and regression examples |
.github/workflows/ci.yml |
GitHub Actions job definitions |
README.md |
Project explanations or operating notes |
docs/ARCHITECTURE.md |
Project explanations or operating notes |
From the repository root (the commands follow the checked-in manifests):
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements.txt
python -m pytest -qTo serve the FastAPI application locally, install the server separately if it is not already available:
python -m pip install uvicorn
PYTHONPATH=src python -m uvicorn convrag.main:app --reloadLevel: 7 — Intermediate & Advanced RAG
Skills: Python, session history, local passages
A second turn can refer to it because prior questions stay in the session.
pip install -r requirements.txt
pytest -qThis is a local laptop proof. It does not call a hosted model and it does not apply production changes.
Workspaces, tenant isolation, job approval, and audit live under /v1. Production apply is refused. See docs/ARCHITECTURE.md.
Project architecture, interview guides, and local source links are checked automatically on pushes and pull requests. Run the same check locally:
python3 .github/scripts/validate_project_docs.py