Structured Report Generation
Templated reports: executive summary, findings, evidence, recommendations.
From Facts to a Readable Report
A research agent that only outputs a list of facts is hard to use. Decision makers need structured reports: an executive summary, background section, key findings, evidence, and recommendations.
This lesson covers generating professional reports section by section from verified facts.
The Report Template
Define the report structure up front. The LLM synthesizes one section at a time, keeping each section focused and avoiding repetition.
REPORT_SECTIONS = [
'executive_summary',
'background',
'key_findings',
'evidence',
'recommendations',
'sources'
]
SECTION_PROMPTS = {
'executive_summary': 'Write a 2-3 sentence executive summary of the key findings. Business audience.',
'background': 'Provide background context for the research topic (3-5 sentences).',
'key_findings': 'List 3-5 key findings as bullet points, each with one supporting fact.',
'evidence': 'Summarize the evidence for each finding with inline source citations.',
'recommendations': 'Based on the findings, provide 2-4 actionable recommendations.',
'sources': 'List all sources cited in the report, formatted as numbered URLs.'
}All lessons in this course
- Multi-Step Research Loop Design
- Source Verification and Citation
- Structured Report Generation
- Fact-Checking and Hallucination Prevention