Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Principle:666ghj BettaFish Report Structure Generation

From Leeroopedia
Knowledge Sources
Domains NLP, Report_Generation, LLM_Prompting
Last Updated 2026-10-08 00:00 GMT

Overview

Technique that uses an LLM to decompose a research query into a structured multi-section outline, enabling parallel and independent research per section.

Description

Report Structure Generation addresses the problem of organizing open-ended research into a coherent document. Rather than searching broadly and hoping the results form a logical narrative, the LLM first generates an outline with titled sections, each describing what content should be covered. This outline serves as a research plan: each section becomes an independent research unit that can be searched, summarized, and refined in isolation.

This approach solves the "unstructured blob" problem where LLM-generated research lacks logical flow and depth. By front-loading the structural planning, the system ensures coverage of all relevant aspects of the topic while enabling parallel per-section research.

Usage

Use this principle when building automated research or report generation systems that need to produce multi-section documents from a single query. It is especially valuable when the research involves iterative search-reflection loops, as each section can independently cycle through search and refinement.

Theoretical Basis

The outline generation follows a plan-then-execute decomposition:

Outline=LLMstructure(q)={(t1,c1),(t2,c2),…,(tn,cn)}

Where q is the query, ti is a section title, and ci is the content description.

Each section is then researched independently:

Sectioni=ResearchLoop(ti,ci,tools)

The final report is the assembly: Report=⨁i=1nSectioni

Pseudo-code Logic:

# Abstract pattern (NOT real implementation)
outline = llm.generate_structure(query)  # [(title, description), ...]
sections = []
for title, description in outline:
    section = research_loop(title, description, search_tools)
    sections.append(section)
report = format(sections)

Related Pages

Implemented By

Uses Heuristic

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment