9
📝 Context Assembly
Combine retrieved documents with user query in prompt
"Based on the following context: [Retrieved Docs]
Answer the question: [User Query]"
10
🧠 LLM Generation
Large Language Model generates response using provided context
GPT-4 • Claude • Llama • Gemini
11
✨ Final Response
Contextually-aware, accurate answer delivered to user
Response:
"Based on recent research, the latest AI trends include..."
Query
→
Context
→
Response