formalRAG

The mathematics of retrieval-augmented generation

Theorem-bearing explainers on retrieval geometry, approximate nearest-neighbor algorithms, probabilistic IR, ranking, and the information theory of RAG — each with rigorous mathematics, interactive visualizations, and working code.

Latest Topics