RAG in 8 lines, and where memory goes

The eight stages of a basic RAG chatbot, one line of code each. Why the closest chunks are not the answer, and the one line that changes to give it memory.

Eight stacked clay bars like lines of code; the seventh glows teal as chat bubbles drop into it, beside RAG in 8 Lines.
Mohammad Mahdi Mohajer
Mohammad Mahdi Mohajer