┌───────────────────────────┐
│ User Question │
└────────────┬──────────────┘
│
▼
┌───────────────────────────┐
│ Retrieval System Searches │
│ Documents for Context │
└────────────┬──────────────┘
│
▼
┌───────────────────────────┐
│ Retrieved Relevant Text │
└────────────┬──────────────┘
│
▼
┌───────────────────────────┐
│ Combine Question + Context│
│ Input to Language Model │
└────────────┬──────────────┘
│
▼
┌───────────────────────────┐
│ Language Model Generates │
│ Answer Using Context │
└───────────────────────────┘This diagram shows how a user question leads to retrieving context, which is combined with the question and fed into the language model to generate an answer.