The core rule
A RAG answer is only as good as the context you put into the prompt. Treat retrieved chunks as evidence, not background decoration.
Your prompt must clearly separate instructions, evidence, and the user question. Then ask the model to answer only from the evidence.
What the prompt needs
After lesson 3, you have search results from a vector index. Each result should include chunk text and metadata such as file name, page, section, or chunk id.
In this lesson, your job is to pack the top chunks into a clean prompt. Do not paste the whole document. Use the few most relevant chunks that fit your model limit.