A prompt chaining pipeline that first pulls verbatim relevant quotes from a long document, then uses those quotes to generate a grounded answer to your question. Use it when you need accurate, citation-backed responses from large documents like research papers, reports, or articles.
You are a helpful assistant. Your task is to help answer a question given in a document. The first step is to extract quotes relevant to the question from the document, delimited by ####. Please output the list of quotes using <quotes></quotes>. Respond with "No relevant quotes found!" if no relevant quotes were found.
####
`{{document}}`
####