Building Gemini Deep Research: An Agentic Research Assistant with Custom-Tuned Models

google_deepmind · Tech · 2025 · source Agentic: yes · promotional bias: low · source-backed · extracted with prompt 0.5.5 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Consumer research agents

Google DeepMind built Gemini Deep Research to automate multi-faceted web research that normally forces users to open many tabs, decide what to read, compare sources, and synthesize a cited report by hand. The system needed to run for minutes, make its plan visible and steerable, browse fragmented web content iteratively, preserve user trust through citations and progress visibility, and evaluate long-form outputs whose quality cannot be captured by a single benchmark score.

Constraints:

Architecture

Gemini Deep Research wraps a custom post-trained Gemini model in a multi-stage research-agent product. The UI first asks the model to draft an editable research plan, then the accepted plan becomes the contract for execution. The agent parallelizes obvious substeps, uses search and page-browsing tools, reasons over previous findings to choose later searches, and enters an analysis/drafting stage to reconcile sources and produce a cited report. An internal async execution platform keeps multi-minute jobs durable across browser/device changes and failures, while long context holds fresh research material for follow-up questions with retrieval available as fallback.

Diagram confidence: reconstructed (reconstructed from prose).

flowchart LR
  user[User] --> gemini-deep-research-ui[Gemini Deep Research UI]
  gemini-deep-research-ui --> editable-research-plan[Editable research plan]
  gemini-deep-research-ui --> report-artifact-workspace[Report artifact workspace]
  editable-research-plan --> gemini-research-agent[Gemini research agent]
  gemini-research-agent --> search-tool[Search tool]
  gemini-research-agent --> webpage-browsing-tool[Webpage browsing tool]
  gemini-research-agent --> source-context-store[Source context store]
  gemini-research-agent --> analysis-and-synthesis-stage[Analysis and synthesis stage]
  gemini-research-agent --> async-execution-platform[Async execution platform]
  gemini-research-agent --> evaluation-harness[Evaluation harness]
  search-tool --> source-context-store
  webpage-browsing-tool --> source-context-store
  source-context-store --> analysis-and-synthesis-stage
  analysis-and-synthesis-stage --> report-artifact-workspace
  report-artifact-workspace --> user
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
User Researcher who submits a broad query, reviews or edits the plan, reads the report, and asks follow-up questions. Gemini Deep Research UI
Gemini Deep Research UI Gemini product surface that presents the editable plan, live browsing progress, cited report artifact, chat, and export path. User, Editable research plan, Report artifact workspace
Editable research plan Model-generated plan shown before execution so the user can understand and steer a multi-minute job. Gemini research agent
Gemini research agent Custom post-trained Gemini agent that plans, calls tools, reads prior findings, decides when to search or browse, drafts, and revises the report. Search tool, Webpage browsing tool, Source context store, Analysis and synthesis stage, Async execution platform, Evaluation harness
Search tool Tool used to discover candidate sources and cover the facets in the research plan. Source context store
Webpage browsing tool Tool used to dive into selected pages and collect source material for analysis and citation. Source context store
Source context store Long-context working set of browsed research material, with retrieval mechanisms available when context is no longer the right store. Gemini research agent, Analysis and synthesis stage
Analysis and synthesis stage Report-building stage that handles inconsistencies, outlines, drafts, revises, and finalizes the cited research report. Report artifact workspace
Report artifact workspace Side-by-side report and chat workspace where the user reads, follows up, refines, and exports the cited output. User
Async execution platform Internal platform for multi-minute jobs that keeps state, retries failed calls, and delivers cross-device notifications. Gemini research agent
Evaluation harness Combination of behavioral metrics, human evaluation, and use-case ontology used to judge model and product quality. Gemini research agent

Data flow

A user submits a research query. Gemini Deep Research generates a proposed plan, exposes it for editing, and starts only after the user accepts or steers it. The agent identifies parallelizable substeps, searches the web, opens pages of interest, reads previous outputs, and issues follow-up searches when earlier findings expose missing or conflicting information. It then moves into analysis, drafts a report, self-critiques the draft, presents a cited artifact beside the chat, and supports follow-up questions or export while the async platform preserves state and retries across the job.

6 supporting quotes
“What's nice is the first step is actually where it puts together a research plan. That you can review. And so this is sort of its guide for how it's going to go about and carry out the research, right? And so this was like a pretty decently well-specified”article, stated
“we kind of give this research plan that is a contract and that, uh, you know, has been accepted, but then if you look at the plan, there are things that are obviously parallelizable, so the model figures out which of the sub steps that it can start exploring”article, stated
“the model figures out which of the sub steps that it can start exploring in parallel, and then it primarily uses like two tools. It has the ability to perform searches and it has abilities to go deeper within, you know, a particular webpage of interest,”article, stated
“the ability to perform searches and it has abilities to go deeper within, you know, a particular webpage of interest”article, stated
“thing, right? So, uh, this notion of being able to read outputs from the previous turn, uh, ground on that to decide what to do next, I think was, was key. Otherwise you have like incomplete information and your report becomes a little bit of a, like a high level, uh, bullet points. So we wanted”article, stated
“The model tries to revise that by self critiquing itself, uh, you know, to find out to finalize the prompt, uh, finalize the report.”article, stated

Why this architecture

The plan-first interface mitigates the risk of spending several minutes on the wrong research path. Search and page-browsing are separated so the agent can first explore breadth, then double-click when prior findings reveal gaps or inconsistencies. Long context supports complex follow-up over freshly browsed material, while async orchestration is necessary because a five-to-ten-minute agent job can outlive the browser session and fail mid-run. Custom post-training was used because ordinary Gemini behavior was not reliable enough for repeatable planning, browsing, and synthesis.

5 supporting quotes
“if we're going to spend like five to even 10 minutes researching something, we want to one, understand. What exactly are you trying to accomplish here”article, stated
“depending on what pieces of it, sometimes there's inconsistency. Sometimes there's just like partial information. Those are the ones that double clicks on”article, stated
“we actually hold all the research material across dance. So if it's able to find the answer in things that it's found, you're going to get a faster reply.”article, stated
“if you build like five, six minute jobs, they're bound to be like failures and you don't want to like lose your progress and so on”article, stated
“a bunch of post-training to make sure, you know, it's able to do this consistently well and, uh, with, with high reliability and power”article, stated

Models used: Gemini 1.5 Pro · Gemini 2.0 Flash · Gemini · Gemma

Scale

Alternatives considered (roads not taken)

Ask direct clarification questions before starting research.

Rejected because: The team believed users often do not know what facets to ask about, so showing a proposed plan teaches the topic and still gives a steering surface.

“instead of asking the users just follow-up questions directly, we kind of lay out, hey, this is what I would do”article, stated
“when you try to use a product like this, you often don't know what questions to look for or the things to look for”article, stated

Use the public/base Gemini model behavior without specialized adaptation.

Rejected because: The team said the product uses a post-trained version of Gemini 1.5 Pro, with training needed to make planning and browsing reliable.

3 supporting quotes
“consistently well and, uh, with, with high reliability and power. Okay. Swyx [00:10:09]: So, so 1.5 pro with deep research is a special edition of 1.5 pro. Yes. Aarush [00:10:14]: Right. Swyx [00:10:14]: So it's not pure 1.5 pro. It's, it's, it's, it's a post-training”article, stated
“a lot of the work for us is first defining these, oh, there needs to be a research plan and, and how do you go about presenting that?”article, stated
“how do you go about presenting that? And then, uh, a bunch of post-training to make sure, you know, it's able to do this consistently well and, uh, with, with high reliability and power. Okay. Swyx [00:10:09]: So, so 1.5 pro with deep research is a special edition of 1.5 pro. Yes. Aarush”article, stated

Rely on model memory or reasoning instead of verifying from sources.

Rejected because: The team viewed unsourced model-memory answers as untrustworthy for research, even when the model might know the answer.

“I can tell you from model memory last year, the Fed did X number of updates and so on. But unless I sourced it, it's going to be hallucinated. Yeah, like one is the hallucination or even if I got it right, as a user, I'd be very wary of that number unless I'm able”article, stated
“even if I got it right, as a user, I'd be very wary of that number unless I'm able to like source the .gov website for it”article, stated

Use retrieval for all accumulated research material.

Rejected because: The team prefers full context for recent research because retrieval can struggle when follow-up questions combine several attributes.

3 supporting quotes
“the tricky thing for rag, it really works well because a lot of these things are doing like cosine distance, like a dot product kind of a thing”article, stated
“distance, like a dot product kind of a thing. And that kind of gets challenging when your query side has multiple different attributes. Uh, the dot product doesn't really work as well. I would say, at least for me, that's, that's my guiding principle on, uh, when to avoid rag. That's one. The second”article, stated
“if it's the most recent set of research tasks where the user is likely to ask lots of follow-up questions that should be in context”article, stated

Use static workflow engines as-is for research orchestration.

Rejected because: The team needed flexible orchestration for dynamic agent decisions, while Step Functions-style workflows were described as static graphs.

“Temporal. You guys were both at Amazon, by the way. Yeah. AWS Step Functions would be one of those where you define a graph of execution, but Step Functions are more static and would not be as able to accommodate deep research style backends. What's neat though, is we built this to be like quite”article, stated
“Step Functions are more static and would not be as able to accommodate deep research style backends. What's neat though, is we built this to be like quite flexible. So it's like, you can imagine once you start doing hour or multi-day jobs. Yeah. You have to”article, stated

Patterns

human-in-the-loop-gate (agent-ux)

Gemini Deep Research exposes an editable research plan before execution so the user can inspect or steer a multi-minute agent run.

3 supporting quotes
“What's nice is the first step is actually where it puts together a research plan. That you can review.”article, stated
“What exactly are you trying to accomplish here and to give you an opportunity, like to steer where the research goes, right?”article, stated
“So like we actually, you can actually edit conversationally. We put in a button here just to like draw users' attention to the fact that you can edit.”article, stated

tool-use-orchestration (agent-architecture)

The research agent coordinates search and webpage-browsing tools, parallelizes independent plan steps, and uses prior outputs to decide later searches.

3 supporting quotes
“the model figures out which of the sub steps that it can start exploring in parallel”article, stated
“it primarily uses like two tools. It has the ability to perform searches and it has abilities to go deeper within, you know, a particular webpage of interest”article, stated
“read outputs from the previous turn, uh, ground on that to decide what to do next”article, stated

prompt-chaining (agent-architecture)

The product breaks research into plan generation, iterative search/browse, analysis, drafting, self-critique, and final report presentation rather than one answer-generation step.

3 supporting quotes
“we kind of give this research plan that is a contract and that, uh, you know, has been accepted”article, stated
“this happens iteratively until the model thinks it's finished. All its steps. And then we kind of entered this, uh, analysis mode”article, stated
“The model tries to revise that by self critiquing itself, uh, you know, to find out to finalize the prompt, uh, finalize the report.”article, stated

fine-tuning-adaptation (model-development)

The team used custom post-training on Gemini 1.5 Pro so the model would reliably produce research plans, browse, iterate, and synthesize with high reliability.

3 supporting quotes
“So, so 1.5 pro with deep research is a special edition of 1.5 pro. Yes.”article, stated
“a bunch of post-training to make sure, you know, it's able to do this consistently well and, uh, with, with high reliability and power”article, stated
“Data augmentation techniques helped create training examples, but the key was finding the right amount of post-training”summary, stated

durable-execution (infrastructure)

Deep Research required a custom asynchronous platform that keeps state, retries failed steps, and lets users leave while multi-minute agent work continues.

3 supporting quotes
“we built this asynchronous platform for deep research, which is basically to like most of our interactions before this were like sync in nature”article, stated
“But yeah, what's, what's neat though, is like, you can close your computer, get a notification on your phone. Right.”article, stated
“keeping state, knowing what to retry and kind of keep the journey going”article, stated

rag-retrieval (context-management)

The system keeps recent browsed material in Gemini's long context, then falls back to retrieval for older or overflowed research material.

3 supporting quotes
“we actually keep everything in context, like all the sites that it's read remain in context.”article, stated
“we have retrieval mechanisms if required. So we natively try to use the context as much as it's available”article, stated
“as stuff gets 10 tasks ago, you know, it's fine. If that stuff is in rag”article, stated

eval-driven-development (quality)

The team evaluates Deep Research with automatic behavioral metrics, human evaluation, product-defined quality criteria, and an ontology of research journey types.

3 supporting quotes
“we have some metrics that we can auto generate, right? So for example, as we move, uh, when we do post-training and have multiple, uh, models”article, stated
“we definitely do a lot of human evals and that we have defined with product about certain things we care about”article, stated
“developed this ontology of different research patterns, and then for each one came up with queries”article, stated

observability-tracing (agent-ux)

The product shows which websites the agent is reading in real time, making long-running agent actions visible to users.

“We show kind of the, the websites it's reading in real time. Yeah. I'll preface this with, I haven't, I forgot to explain the rules.”article, stated
“while it's browsing, we wanted to show you like all the websites. It's reading in real time”article, stated

Tradeoffs

Expose an editable plan instead of running immediately.

Chose plan-first research execution over immediate background browsing.

Rationale: A plan lets users steer before a multi-minute run, and also teaches users about facets they may not have known to request.

“if we're going to spend like five to even 10 minutes researching something, we want to one, understand. What exactly are you trying to accomplish here”article, stated
“The aim of this is to kind of tell the user about the topic a little bit more and also get steer.”article, stated

Spend inference time on exploration and verification.

Chose multi-minute research agent work over low-latency answer generation.

Rationale: The team found that, for research tasks, users often perceive visible time and source coverage as value, while engineers still need to balance exploration and verification.

3 supporting quotes
“contrast to, like, all Google orthodoxy, we're actually going to slow everything right down”article, stated
“Either to explore more, to be, like, more complete, or to verify more on things that you probably know already.”article, stated
“Users value seeing the agent visit many websites and spend extended time researching, interpreting this as thoroughness and quality work.”summary, stated

Use custom post-training for Deep Research behavior.

Chose specialized Gemini 1.5 Pro adaptation over off-the-shelf public Gemini behavior.

Rationale: Reliable planning, browsing, and synthesis needed behavior shaping beyond the base model, but the team also had to avoid overfitting away pretrained knowledge.

3 supporting quotes
“So, so 1.5 pro with deep research is a special edition of 1.5 pro. Yes.”article, stated
“a bunch of post-training to make sure, you know, it's able to do this consistently well and, uh, with, with high reliability and power”article, stated
“post in it just enough without losing things that it knows in pre training, basically not overfitting in the most trivial sense”article, stated

Hold recent research in long context before falling back to RAG.

Chose long-context-first memory over RAG-only retrieval over all browsed pages.

Rationale: Complex follow-ups over recent work benefit from having the full research material in context, while older tasks can be retrieved later.

“if it's the most recent set of research tasks where the user is likely to ask lots of follow-up questions that should be in context”article, stated
“as stuff gets 10 tasks ago, you know, it's fine. If that stuff is in rag”article, stated

Use HTML-to-markdown conversion without abandoning raw HTML paths.

Chose hybrid page representation over single canonical page representation.

Rationale: Markdown strips noise for normal pages, but raw HTML or snippets are still useful when the source format requires them or newer models can use them directly.

3 supporting quotes
“We have both versions, right? So there is, the models are getting, like every generation of models are getting much better at native understanding of these representations.”article, stated
“We have both versions, right? So there is, the models are getting, like every generation of models are getting much better at native understanding of these representations.”article, stated
“if there's an embedded snippet that's HTML, we want the model to, you know, to be able to work on that as well.”article, stated

Avoid benchmark-first optimization.

Chose product-centered evaluation over optimizing primarily for academic benchmark scores.

Rationale: The team values benchmarks, but argued they do not directly prove that a product is a good deep researcher for real user tasks.

“The benchmarks, at least the ones that we are seeing, they don't directly translate to the product.”article, stated
“our primary goal is like solving the deep research user value for the user use case”article, stated

Gotchas (what bit them)

Users may ignore a steering mechanism even when it exists.

Root cause: Most users hit start without editing, especially when the plan feels like an 'I'm Feeling Lucky' default.

Resolution: The team added an explicit edit button while still treating the plan as a transparency mechanism for non-editing users.

3 supporting quotes
“Actually, like in early rounds of testing, we saw no one was editing.”article, stated
“if we just put a button here, maybe people will like. I confess I just hit start a lot.”article, stated
“it's still like a nice transparency mechanism. Even if users don't want to engage”article, stated

Iterative planning can become unscalable if trained per domain.

Root cause: The agent has to adapt search strategy from prior findings across many research behavior types, and hand-teaching traces for each ontology type would be nightmarish.

Resolution: The team used data-efficient post-training and augmentation while carefully avoiding overfitting away useful pretrained capabilities.

3 supporting quotes
“the iterative planning one to do it in a generalizable way. Yeah, that was the thing I was most wary about.”article, stated
“if you had to teach them all. For every single type of ontology, how to come up with these traces of planning, that would have been a nightmarish.”article, stated
“post in it just enough without losing things that it knows in pre training, basically not overfitting in the most trivial sense”article, stated

Thinking models can compete with source-grounded browsing.

Root cause: A more capable reasoning model may answer from internal knowledge rather than spending tool time to verify and cite facts.

Resolution: The team treats balancing internal reasoning with external grounding as a key design problem for research agents.

3 supporting quotes
“Maybe it saves you some time or it like tries to draw too much from its internal knowledge and then therefore searches less”article, stated
“But unless I sourced it, it's going to be hallucinated. Yeah, like one is the hallucination or even if I got it right, as a user, I'd be very wary of that number unless I'm able to like source the .”article, stated
“balancing that out between trying to leverage the model memory versus being able to ground this in, is in, you know, some kind of a source is the challenging part”article, stated

Web pages arrive in noisy and mixed representations.

Root cause: Useful web content may be embedded in HTML snippets, while ordinary pages contain noise from JavaScript, CSS, and markup.

Resolution: The system uses both markdown conversion and raw HTML handling depending on the access path and model generation.

3 supporting quotes
“We have both versions, right? So there is, the models are getting, like every generation of models are getting much better at native understanding of these representations.”article, stated
“the markdown step definitely helps in terms of, you know, there's a lot of noise”article, stated
“if there's an embedded snippet that's HTML, we want the model to, you know, to be able to work on that as well.”article, stated

Long-form research evaluation has high output entropy.

Root cause: There are many valid report structures, source choices, and synthesis styles, so automatic graders and benchmarks do not map cleanly to product quality.

Resolution: The team combines behavioral distributions, human review, product criteria, and use-case ontology coverage.

3 supporting quotes
“the output space entropy is like everything is like a text. And so there's a notion of verifying even if you got the right answer”article, stated
“we definitely do a lot of human evals and that we have defined with product about certain things we care about”article, stated
“we sort of developed this ontology of different research patterns”article, stated

Locking the chat during long-running work limits mid-execution steering.

Root cause: Initial Deep Research-style systems treat the plan as static while the agent works, unlike agents that accept user input during execution.

Resolution: The team acknowledged that longer tasks should let users engage more and update direction during the run.

3 supporting quotes
“I think it's static, right? Like while you're working on a plan, I cannot chat.”article, stated
“I think you should never lock the chat. You should always be able to chat with the plan and update the plan”article, stated
“especially as these tasks get longer, we actually want the user to come engage way more to like create a good output”article, stated

Evaluation

Gemini Deep Research is evaluated with product-centered human review plus automatic behavioral metrics over a development set. The team monitors planning time, number of iterative steps, research-plan length, and other behavioral distributions, then uses human evaluation for comprehensiveness, completeness, groundedness, accuracy, and depth. Instead of organizing only by vertical, the team built a use-case ontology that spans broad-shallow exploration, deep-narrow investigation, comparison, and compound planning tasks.

Metrics: planning time · number of iterative steps · research plan length · number of research plan steps · distribution shifts across a development set · comprehensiveness · completeness · groundedness · accuracy · coverage across a research-use-case ontology

5 supporting quotes
“we have some metrics that we can auto generate, right? So for example, as we move, uh, when we do post-training and have multiple, uh, models”article, stated
“how long is the research plan? Do we, do we have like a, do we have like a, do we have like a”article, stated
“we definitely do a lot of human evals and that we have defined with product about certain things we care about”article, stated
“comprehensiveness, completeness, groundedness in sources, accuracy, and appropriate depth of analysis”summary, stated
“we sort of developed this ontology of different research patterns, and then for each one came up with queries that would fall within that”article, stated

Outcomes

The case reports 5-6 minute research jobs, a shipped 5-minute version, a 10-minute hard cap, a tested 15-minute hardcore mode, user workflows involving 50-60 tabs, one-to-two-million-token context, Android and iOS surfaces, and future designs for hour or multi-day jobs with hundreds of LLM calls.

5 supporting quotes
“it takes your query, browses the web for about five minutes, and then outputs a research report for you to review and ask follow-up questions”article, stated
“while it's browsing, we wanted to show you like all the websites. It's reading in real time”article, stated
“when you do export all the citations, and in fact, I can just run it now, carry over”article, stated
“But yeah, what's, what's neat though, is like, you can close your computer, get a notification on your phone. Right.”article, stated
“developed this ontology of different research patterns, and then for each one came up with queries”article, stated