S09_Augmentation - trankhoidang/RAG-wiki GitHub Wiki

Augmentation

✏️ Page Contributors: Khoi Tran Dang

🕛 Creation date: 26/06/2024

📥 Last Update: 26/06/2024

After retrieving the most relevant chunks of information in response to the user query, the next step is to determine how to combine this information with the query to form a final prompt for the generative component.

A straightforward augmentation strategy is concatenation. For instance, if we retrieve 10 chunks of text with corresponding relevance scores, we can concatenate these chunks into a single string, ordered from most to least relevant, to create the context for augmentation.

In some cases, the order of these chunks can be strategically adjusted, or the retrieved text chunks themselves may not be directly used; instead, larger sections of text, such as entire pages containing these chunks, might be employed for augmentation.

For more detailed information on augmentation techniques, please refer to Advanced RAG.

← Previous: S08_Retrieval

Next: S10_Generation →

⚠️ **GitHub.com Fallback** ⚠️