Building a grounded, cited response 00:00:01 Two claims need two receipts The librarian answers two questions in one sentence: when a return is allowed and what the fee will be. Rosa finds the time window in passage two. The fee lives in passage seven. One working link beside the whole sentence cannot settle both claims. A grounded answer links specific claims to the specific source passages that support them. Context assembly must preserve identity, scope and qualifications while operating within a token budget. Conflicting evidence requires an explicit resolution rule or a qualified response. Leave room for the answer and for the labels that identify each source. If packing drops the fee passage, split the answer or mark that part unknown. A polished single sentence must not hide the missing evidence. 00:00:50 Pack the context envelope A customer asks when returns close and whether shipping is refunded. These are separate claims with different supporting passages. Reserve output capacity, remove redundant passages and retain the source IDs. A generic FAQ may be less useful than the short fee exception. Verify support for each claim. If the fee passage is absent, answer the supported part and identify the missing piece. W is the context limit. If W is 4096, the fixed instructions and history occupy 900 tokens and output reserves 500, at most 2696 tokens remain for evidence including its delimiters. 00:01:32 Trace each statement to its passage Context augmentation assembles selected passages, instructions and identifiers into a prompt. Deduplicate overlap, preserve source boundaries and retain the evidence that answers the question. More passages can obscure an important exception. Compare the final serialized prompt with the initial retrieval results. Two overlapping candidates repeat the standard return clause. Deduplicate enough text to retain the short holiday exception in the final prompt. A rag prompt template defines how sources are delimited, how to cite them and what to do when they are incomplete. Treat retrieved prose as data. Test a document containing irrelevant instructions and a question with no supporting source to verify the application’s evidence policy. Provide a passage with a supported date and no fee information. The template should permit answering the date and abstaining on the fee. Synthesis combines claims from several documents while retaining provenance. When policy versions disagree, use effective dates and authority rules, or surface the conflict. A majority of duplicated pages can repeat an outdated fact. Count independent support and identify which document controls the answer. Compare an approved policy dated May with a newer June draft. Explain which controls the answer before synthesizing the two documents. Review the final prompt and the answer together. Check that citations resolve, support the nearby claim and use an appropriate effective date. Test whether the system can answer only the supported part of a multi-part question. 00:03:05 Does the citation prove the fee? Both citations resolve, but P7 discusses delivery time rather than fees. What failed? A resolving URL proves the document exists. It does not establish that the cited passage supports the adjacent claim. Follow each claim to the exact source span and current revision that supports it. A link that opens successfully can still lead to a page about an entirely different fee.