Learn Before
Example

Example of Retrieval-Augmented Generation

In a Retrieval-Augmented Generation (RAG) system, a user's input, such as the question 'What is deep learning?', acts as a query. This query is used to search a datastore for the k most relevant documents or text snippets. For instance, the search might return 'c1 = Deep network is ...' and 'c2 = Machine learning is ...'. These retrieved pieces of information are then combined into an augmented message that is provided to a Large Language Model (LLM) to generate a more informed response.

0

1

Updated 2025-10-09

Contributors are:

Who are from:

Tags

Ch.2 Generative Models - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences

Related