Deep Research Is an Orchestration Loop
guide2026-06-026 min read
Deep Research 不是把问题丢给一个更大的 LLM,而是用规划、搜索、打开来源、中间发现、引用管理和最终综合组成一个可追踪的研究循环。
deep-researchlangflowagentsllm
Summary
Deep Research is not just a larger prompt sent to a stronger model. It is a workflow that turns one user question into a planned research process: clarify the goal, create a plan, run searches, open sources, produce intermediate findings, preserve citations, and then synthesize a final report.What This Solves
A normal LLM call is usually shaped like this:Who This Is For
This is for anyone building a Perplexity-like or Onyx-like research mode in Langflow. It is especially useful if you already have web search flows, retrievers, vector stores, or Perplexity-style search backends, and now want to add a higher-level research loop around them.Prerequisites
You need three capabilities:- an LLM that can produce structured JSON for planning and reporting
- one or more search tools that return source snippets and URLs
- a way to preserve state across steps, especially findings and citations
The Workflow
1. Clarify the request
The first step decides whether the user question is specific enough. For example, this may need clarification:2. Generate a research plan
The planning step turns the original question into concrete research tasks. A plan should include:- the objective
- independent research questions
- search queries
- whether each task needs web search
- whether each task needs internal search or RAG
- success criteria for the final report
3. Run an orchestrator loop
The orchestrator is the top-level controller. It should not do all the research itself. It decides:- which task to run next
- whether enough tasks have been completed
- whether the loop hit
max_cycles - when to stop and generate the final report
The architecture should stay shallow. A practical MVP can use one orchestrator and one research subagent layer. Avoid recursive multi-agent nesting until there is a real reason.
4. Use search and open-source tools
The research subagent should call tools instead of relying on model memory. In a Langflow implementation, the tool layer can include:- Perplexity-style web search backend
- normal web search
- URL opening and page extraction
- vector store retriever
- RAG flow
- internal document search
5. Produce intermediate findings
Each research task should produce an intermediate report before the final answer. This keeps the system inspectable. An intermediate finding should include:- the task question
- a short summary
- evidence bullets
- citations used by that task
6. Generate the final report
The final report agent receives the original question, the plan, all intermediate findings, and the citation set. Its job is synthesis, not new search. A good final report includes:- title
- executive summary
- structured sections
- limitations
- citations
Common Failure Modes
Treating Deep Research as one big prompt
If the whole implementation is:Too many agents too early
Deep Research does not require five nested agents. A strong MVP can use:- clarification agent
- planning agent
- orchestrator
- research subagent
- final report agent
Losing citations between steps
If citations are only added during final writing, the model may attach sources loosely. Citations should be collected during search and carried through intermediate findings into the final report.Ignoring existing search infrastructure
If a Langflow project already has Perplexity-like search flows, the Deep Research implementation should reuse them. The orchestrator should sit above existing search tools rather than replace them with a weaker default search backend.Final Checklist
- The system can ask for clarification when needed.
- The planning step returns structured research tasks.
- The orchestrator respects
max_cycles. - The research subagent calls web search, URL opening, and internal search tools.
- Each task produces intermediate findings with citations.
- The final report is synthesized from collected findings.
- Streaming progress events expose planning, task start, task completion, findings, and final report.
- The Langflow component can connect to an internal retriever or vector store.
What To Remember
Deep Research is a control loop around LLMs and tools. The LLM writes plans, summaries, and reports, but the system controls when to search, what to open, what evidence to keep, and when to stop. For Langflow, the right mental model is not “a better chat node.” It is a research workflow component that orchestrates existing search and RAG capabilities.Metadata
Quick Reference
Typeguide
Statuspublished
Date2026-06-02
Retrieval Tags
deep-researchlangflowagentsllm
Related
Build a Perplexity-Like Web Search Flow in LangflowUsing the Perplexity-Like Langflow Search FlowsRecreate Perplexity Search with Langflow