Skip to contents

Main Functions

Primary functions for generating reports.

generate_report()
Generate Quarto HTML / PDF Country Factsheets in Batch

AI Analysis Architecture

Functions that power the AI-generated narratives.

generate_plot_story()
Generate Humanitarian Data Story from ggplot
generate_section_summary()
Generate Section Summary from Plot Stories
generate_report_summary()
Generate Report Executive Summary
generate_description()
Generate Plot Description with AI (Phase 3)
clean_llm_response()
Clean LLM Response
extract_structure()
Extract Plot Structure and Metadata (Phase 1)
profile_data()
Profile Plot Data (Phase 2)
slugify()
slugify