YOLO Docs RAG
Retrieval-augmented question answering over the Ultralytics YOLO documentation, built to be measured. A hand-written evaluation set drove every decision: a source filter and a cross-encoder reranker raised hit@1 from 0.35 to 0.71, and reading failed answers exposed a chunking bug (the argument tables were missing from the index) whose fix lifted hit@5 from 0.87 to 0.97. Includes a held-out set run once, local LLMs via Ollama, a FastAPI service, Docker and unit tests.
- Problem
- LLM answers about technical docs were hard to trust and impossible to compare.
- Solution
- Hand-written eval set, source filter, cross-encoder reranker, fixed a chunking bug found by reading failures.
- Result
- hit@1 0.35 → 0.71, hit@5 0.87 → 0.97, shipped as a Dockerized FastAPI service.