Retrieval-Augmented Generation · Portfolio project
Ask questions about school science and maths and get answers grounded in a knowledge base of 2,316 passages, with every claim cited back to the passage it came from. Turn any answer into a quiz, track what you've mastered, or upload your own PDF and ask questions about it.
The demo runs on a free tier and sleeps when unused. Loading it here takes a few seconds; if it shows a "wake up" screen, click it and give it about a minute.
Sign-up is free. Demo limits: 20 actions per person per day, 500 AI calls per day in total.
[1], [2] and say when the evidence doesn't cover the question.Every answer points at the passages it used, with adjustable depth, length and format.
Five multiple-choice questions, scored, with per-concept mastery tracking.
Upload a PDF or DOCX; the relevant sections are found and cited, not just the first page.
Chats grouped in projects, search, editing, summaries and PDF export.
75 questions generated from random passages; the test is whether search returns the passage each question was written from. Hybrid is the default: the model reads all five passages, so top-5 coverage matters most.
| Mode | hit@1 | hit@5 | MRR@10 | Latency |
|---|---|---|---|---|
| Dense (bge-small) | 73.3% | 93.3% | 0.823 | ~18 ms |
| BM25 | 82.7% | 94.7% | 0.884 | ~1 ms |
| Hybrid (default) | 82.7% | 97.3% | 0.885 | ~21 ms |
| Hybrid + cross-encoder rerank | 90.7% | 98.7% | 0.937 | ~1,100 ms |
FastAPI · Streamlit · SQLAlchemy with Postgres · FAISS + fastembed (BAAI/bge-small-en-v1.5, ONNX,
no PyTorch, ~380 MB total) · Groq (gpt-oss-20b with automatic fallback) · pytest and GitHub Actions.
Daily budgets, per-user limits and sign-up throttling keep the public demo inside free quotas.