RAG is one of those patterns that sounds more complicated than it has to be.

At its core, retrieval-augmented generation is just:

Store some documents

Embed the user’s question

Find the most relevant docs