Generative AIPlanned
Document Q&A with RAG and an evaluation suite
Solo project: ingestion, retrieval, evaluation suite, and API
- Python
- FastAPI
- pgvector
- Embeddings
- LLM APIs
- Promptfoo
- Problem
- Answer questions over real PDF documents with cited sources, and prove with numbers how often the answers are right.
- Planned approach
- Chunked PDFs with headings and table headers kept, embeddings in pgvector, hybrid keyword and vector retrieval, and an LLM that answers only from cited passages.
- Design decisions
- Retrieval measured with recall@k and MRR before any prompt tuning, because a perfect prompt cannot fix a missed passage.
- The service refuses when nothing relevant is retrieved, trading coverage for trust.
- Evaluation plan
- A labelled question set scored for recall@k, MRR, answer faithfulness, refusals, and cost per query, run in CI with Promptfoo.
