Find a relevant passage despite a synonym
Look one word ahead when copying titles and labels. · 198 words
When the user's words may not appear in the source, ask the model to search for concepts and closely related terms. For example, a user asks, "How can I cancel my museum membership?" while the Membership Handbook, 2025 edition, page 8, says, "Members may request termination of their annual membership." A strong prompt says, "Find passages about canceling or ending a membership. Quote the exact wording, identify the matching synonym, and cite the document title and page." The checkable result is the sentence beginning "Members may request termination," followed by the page citation and an explanation that "termination" means cancellation.
Try the same method with travel language. A user asks about moving a train ticket, but the Regional Rail Guide, revision June 2024, page 14, says, "You may change the travel date of an eligible ticket." The prompt can request passages for "reschedule, change a booking, or select another date," while requiring an exact quotation and citation. The reader can then check that the sentence really describes changing a date. This prompt design prevents the model from merely inventing a quote containing the user's preferred word and teaches it to connect the query with the source's actual wording.
Check your recall
How should a prompt help the AI find the museum cancellation passage when the handbook uses different words?
Check your answer
Ask it to search for related concepts such as canceling, ending, or terminating a membership, then quote the exact passage and cite the Membership Handbook, 2025 edition, page 8.
Sources and credits
Original KeyTouch lesson. Background reading · DAIR.AI · Retrieval Augmented Generation.