..
RAG usage on an internal knowledge base
In short, RAG is a simple three-step process: indexing, retrieval, and generation 1.
image source from Medium 1
The key thing to remember from this diagram is the use of embeddings and a vector database as a proxy to find a relevant context to the query 2.
image source from Medium 2
a hight level RAG sample architecture 3