Retrieval-Augmented Generation has been powering a large number of question-answering chatbots with document reference by combining the power of LLMs with data fetched from external sources.

The mental model required to understand the approach to traditional RAGs is to:

Get the data extracted from relevant sources.

Chunk them suitably with a definite chunk size.

Generate embeddings and store them in the Vector DBs.