Building Deep Research Agents: Reasoning Levels and Report Generation Practices

    As Large Language Models (LLMs) evolve from Q&A tools into autonomous agents capable of planning, tool usage, and generating outputs, "deep research" has emerged as a common task. This article explores the engineering workflow behind deep research agents, covering task characteristics, typical workflows, reasoning intensity trade-offs, and practical implementation strategies for generating structured, traceable reports.

    As Large Language Models (LLMs) evolve from simple Q&A tools into autonomous agents capable of planning, calling tools, and producing deliverables, “deep research” has become a frequent task. Given a vague research objective by a user, the system must independently decompose the problem, retrieve information, compare data, and output a structured report. Such tasks demand high-level reasoning capabilities, rigorous source management, and strict output formatting. This article outlines the workflow of deep research tasks from an engineering perspective, analyzes the trade-offs in reasoning intensity, and provides actionable implementation strategies.

    I. Characteristics of Deep Research Tasks

    Compared to single-turn Q&A, deep research tasks have three distinct characteristics. First, the objectives are typically open-ended, such as “understanding the current mainstream choices in a certain product category,” with no standard answers. Second, completing the task requires alternating cycles of retrieval and reasoning, where the conclusion of one step determines the retrieval query for the next. Third, the final deliverable is usually a readable and shareable document rather than a one-sentence answer.

    Therefore, the focus of system design is not on single-generation quality but on the controllability of the entire workflow. The system must record what was done at each step and the basis for it, ensuring the results are traceable.

    II. Typical Workflow

    A robust deep research process usually consists of four phases.

    1. Requirement Clarification and Task Decomposition

    The system first translates the user’s natural language requirements into structured constraints, such as budget range, usage scenarios, focus dimensions, and time windows. If information is missing, the system should proactively ask follow-up questions rather than make assumptions. Subsequently, the system breaks down the overarching objective into several sub-problems, each of which should be independently retrievable and verifiable.

    Decomposition quality directly impacts subsequent efficiency. Taking “purchasing a consumer electronic product” as an example, it can be broken down into sub-problems: candidate options within the price range, key technical specifications of each candidate, common issues in user reviews, and recent market trends.

    2. Multi-Source Retrieval and Information Collection

    Once sub-problems are defined, the system calls retrieval tools to gather information. Source types should be as diverse as possible, including official technical documentation, public data from independent testing agencies, community discussions, and news reports. Since the reliability of different sources varies greatly, source URLs, publication dates, and original text snippets should be recorded during collection for subsequent verification.

    The collection phase also requires scope control. Unlimited crawling leads to context bloat and introduces significant noise. A common practice is to set a maximum number of retrieval rounds and a ceiling for candidate documents for each sub-problem.

    3. Cross-Validation and Credibility Assessment

    The same fact often appears inconsistently across multiple sources. The system should cross-validate key conclusions. A conclusion is only listed as confirmed when two or more independent sources point to the same result; in case of discrepancies, the differences are retained with respective evidence noted.

    Credibility assessment can reference several dimensions: whether the source is independent, whether the data specifies testing conditions, whether the information is outdated, and whether the content has obvious promotional intent. For marketing-oriented content, its weight should be reduced rather than taken at face value.

    4. Structured Summarization and Report Generation

    The final phase organizes the verified information into a report. A fixed structure is recommended: start with the background and conclusions, then expand comparisons by dimension, attach source citations to each conclusion, and finally list the limitations and update time of the information. Tables are suitable for multi-dimensional comparisons, lists for steps and checklists, and body text for explaining causal relationships.

    III. Trade-offs in Reasoning Intensity

    Most agent platforms allow users to select reasoning intensity levels. A higher level generally means the model conducts more thorough internal reasoning before outputting, handling complex constraints more stably, but taking longer and costing more to compute. A lower level offers faster responses, suitable for simple queries or high-frequency calls.

    When selecting a reasoning level, consider the following principles:

    • For tasks involving multi-condition constraints that require comparison and trade-offs, a higher level is preferable.
    • For factual lookups or format conversions, a lower level is usually sufficient.
    • In batch processing scenarios, test different levels on a small sample to evaluate quality and time consumption before setting a default.
    • For latency-sensitive interactive interfaces, a tiered strategy can be employed: “return a draft quickly first, then supplement with deep analysis in the background.”

    Reasoning intensity is not universally “higher is better.” The time and compute power consumed by the reasoning process are real costs, and for simple tasks, the quality improvement is often negligible.

    IV. Example Implementation

    The following pseudocode illustrates the basic skeleton of the research workflow. It is for structural demonstration only; specific APIs should be adjusted according to the framework used.

    1. def deep_research(goal, budget_level="high", max_rounds=5):
    2. constraints = clarify(goal) # Extract constraints, convert missing items to follow-up questions
    3. subtasks = decompose(goal, constraints) # Break down into independently verifiable sub-problems
    4. evidence = []
    5. for task in subtasks:
    6. for _ in range(max_rounds):
    7. docs = search(task.query)
    8. evidence.extend(extract(docs, task, source_meta=True))
    9. if is_sufficient(evidence, task):
    10. break
    11. verified = cross_check(evidence, min_sources=2)
    12. report = compose(verified, constraints, reasoning=budget_level)
    13. return render_html(report)

    There are three key design points in this structure. First, each piece of evidence carries source metadata. Second, the number of retrieval rounds has an upper limit to prevent endless loops. Third, cross-validation is independent of report generation, allowing conclusions to be audited separately.

    V. Engineering Implementation Considerations

    1. Cost Control: Set budget limits for reasoning and retrieval for each task. If the limit is exceeded, return the existing results and explain the unfinished parts.
    2. Failure Handling: If a single retrieval source times out or returns an error, skip that source and annotate it in the report instead of aborting the entire task.
    3. Caching Strategy: Implement short-term caching for the same page from the same source to reduce repeated requests, and record the fetch time in the report.
    4. Citation and Traceability: Every figure and conclusion in the report should be traceable to a specific source. This is the foundation for readers to judge credibility.
    5. Data and Privacy: User-provided preferences and budget information should only be used for the current task. Storage and transmission should follow the principle of minimization.
    6. Output Format: Web-based reports should use semantic structures, tables should support sorting, and charts should include data descriptions to ensure readability and maintainability.

    VI. Evaluation Framework for General Purchasing Research

    When the research subject is consumer electronics, the evaluation dimensions can be fixed into the following categories: performance (positioning of processor and graphics capabilities within the price range), display (measurable metrics like resolution, color gamut, and brightness), battery life (distinguishing between nominal and actual tested values), thermal management and noise, body weight and build quality, ports and expandability, and after-sales policies. Each category should be tied to verifiable data sources to avoid conclusions based solely on subjective descriptions.

    By writing this framework into the agent’s prompt template, outputs across different tasks maintain a consistent structure, making it easier for users to compare horizontally.