Grokking AI: 50 Questions Every Engineer Asks
Vote

0% completed

​

What Is RAG and When Do I Need It?

Short answer: RAG (retrieval-augmented generation) is a method with two steps. A program first finds the documents that relate to a question and places them in the input, and the model then answers from them. You need it when the answer depends on information that the model did not learn during training: private, recent, or very specific text.

Look at the two braces under the boxes. Boxes 1 and 2 find the text, and boxes 3 and 4 produce the answer. The application does the work of boxes 1, 2, and 3, and the model does only the work of box 4.

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content