Retrieval-augmented generation is often introduced with a compact diagram:

documents -> embeddings -> vector database -> LLM

Enter fullscreen mode

Exit fullscreen mode

That is a useful starting point, but it can make one part of the architecture