Deep Research Loop
Iteratively plan, search, read and assess until new sources stop adding information, then write a cited synthesis.
Problem
Some questions can’t be answered from one search or one retrieval pass: market scans, technical comparisons, due diligence, literature reviews. A single pass finds the obvious sources and misses the rest, while an open-ended agent keeps searching long after it has enough, or stops early and presents a thin answer as complete.
- Good research needs many searches, and each answer raises new questions.
- Every round costs time and tokens, with diminishing returns.
- Sources conflict, repeat each other or vary widely in quality.
- Readers need to check claims, so every statement needs a source.
Solution
Run research as a loop with an explicit stopping rule. First break the question into sub-questions and a research plan. Each round, search, read the most promising sources and extract findings with their citations into a running notes file. Then assess: which sub-questions are answered, where sources conflict, and what’s still missing. Plan the next round around the gaps. Stop when a round adds little new information, all sub-questions are covered, or the budget runs out. Finally, write a synthesis where every claim cites its source and open questions or conflicts are stated, not hidden.
Diagram
The assess step drives everything. It decides what to search next and when new rounds are no longer worth their cost.
When to use
Use it when
- Questions that need many sources to answer well
- The reader needs citations they can check
- Minutes of runtime are acceptable for a better answer
- Reports, briefs, comparisons or due diligence
Avoid it when
- A single lookup or one retrieval pass answers the question; use Agentic RAG
- Answers are needed in seconds
- Sources are behind access the agent doesn't have, so the loop can only find surface material
Trade-offs
Gains
- Covers a topic far more broadly than a single search
- Every claim traceable to a source
- Explicit gaps and conflicts instead of false confidence
Costs
- Slow and expensive per question
- Source quality varies; weak sources can dominate if not filtered
- Stopping rules need tuning to avoid quitting early or looping on
Worked example
A solutions architect asks how mid-size insurers are using AI agents in claims handling, for a customer briefing.
- PlanSplits the question into 4 sub-questions: use cases in production, measured results, regulatory concerns, and common failure points.
- Round 1Runs 8 searches and reads 12 sources. Use cases and failure points are covered, but measured results come only from vendor marketing.
- AssessFlags a gap: no independent results. Flags a conflict: two sources disagree on whether claims agents may approve payouts on their own.
- Round 2Targets industry association reports and regulator guidance. Reads 7 more sources, which resolve the payout question: human approval is expected above a threshold.
- Round 3 → stopAdds only 1 new finding from 6 sources. Information gain is below the stop threshold, so the loop ends.
- SynthesisA 2-page brief with 24 citations. It states one open question plainly: independent ROI data is still scarce.
Failure modes
| Failure | Symptom | Mitigation |
|---|---|---|
| Never-ending research | Rounds keep running with little new information | Stop on low information gain, full coverage or budget, whichever comes first |
| Shallow stop | Answer written after one round, missing whole sub-questions | Check every sub-question is answered or marked open before writing |
| Source echo | Many sources repeating one original claim count as consensus | Trace claims to their original source; weight independent sources |
| Unsupported synthesis | The final write-up adds claims no source made | Require a citation per claim; verify with Draft–Verify |