---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://mixpeek.com/.well-known/search?q={query}"
  method: GET
  documentation: "https://mixpeek.com/llms.txt"
---

Search & Discovery

9 min read

Updated 2026-07-11

# How Do I Build a Deep Research Agent Over My Own Data?

Consumer deep research browses the public web: but your evidence lives in PDFs, call recordings, decks, and videos behind your own APIs. The architecture of private-corpus research agents: question decomposition, multimodal retrieval loops, stopping criteria, provenance, and verification, with the retriever stages that implement each step.

![Ethan Steininger](/people/ethan.webp)

By [Ethan Steininger](/blog/authors/ethan), Founder & CEO, Mixpeek

Deep Research

Agentic RAG

Retrieval Pipelines

Multimodal Search

AI Agents

[Run this on your own data. Try it as you read.Search your own archive →](https://studio.mixpeek.com/namespaces/create?mode=managed&utm_source=homepage&utm_medium=guide_cta&utm_campaign=mvs_onramp)

[One-click templatesStart from a templateEach template deploys a working search app on your own files.Browse templates](/templates)

## The Short Answer

  
  
A deep research agent answers a complex question by running many retrievals, not one: it decomposes the question into sub-questions, searches your corpus (and optionally the web) for each, reads and extracts facts with their sources, follows up on what it finds, checks claims against each other, and synthesizes a cited brief. The difference from ordinary [RAG](/glossary/agentic-rag) is the loop, retrieval informs the next retrieval, and the difference from consumer deep-research products is the corpus: your documents, videos, images, and recordings behind your own API, not the public web.  
  

## How is deep research different from RAG?

  
  
Single-shot RAG is a pipeline: embed the question, retrieve top-k passages, stuff them into a prompt, answer. It works when the answer lives in one place. Research questions rarely cooperate: "why did churn spike in Q2?" has evidence scattered across support tickets, call recordings, product analytics exports, and a pricing-change memo, and no single query surfaces all of it.  
  
Deep research replaces the pipeline with a loop under an agent's control:  
  

Stage

What happens

What can go wrong

Plan

Decompose the question into sub-questions with distinct search intents

Decomposition mirrors the question's phrasing instead of the corpus's vocabulary

Gather

Run retrievals per sub-question: [rewritten and expanded](/guides/query-transformation-pipelines-for-agentic-retrieval), across modalities

One retrieval angle misses evidence other angles would find

Read & extract

Pull facts out of retrieved items WITH provenance (doc id, page, timestamp)

Extraction without positions cannot be audited later

Follow up

New facts spawn new sub-questions; repeat Gather

Runaway loops burn budget without adding evidence

Verify

Cross-check claims across independent sources; flag contradictions

Skipping this ships confident wrong answers

Synthesize

Write the brief, every claim linked to its evidence

Citation drift: prose that outruns what sources say

  
  
The loop is what makes stopping criteria, budgets, and provenance first-class engineering problems rather than prompt details.  
  

## Why doesn't public-web deep research transfer to private data?

  
  
Consumer deep-research products (ChatGPT, Gemini, Claude, Perplexity) are built around browsing: fetch a page, read HTML, follow links. Three assumptions break on a private corpus. First, **retrieval replaces browsing**: there are no links to follow; the agent's only navigation is the quality of your search API, so retrieval quality bounds research quality. Second, **the evidence is multimodal**: the decisive fact is on slide 40 of a deck, at minute 32 of a call recording, or inside a chart screenshot, so text-only indexing silently amputates the corpus (see [multimodal RAG pipeline architecture](/guides/multimodal-rag-pipeline-architecture)). Third, **provenance is a requirement, not a nicety**: an internal research brief that cannot point at its sources with page numbers and timestamps will not survive review.  
  

## What are the stopping criteria?

  
  
The naive loop ("keep searching until done") does not converge. Production agents stop on explicit conditions, in priority order:  
  
1\. **Evidence saturation**: K consecutive retrieval rounds return nothing new (dedup against everything already read, not just the last round). 2. **Sub-question exhaustion**: every planned and spawned sub-question has been answered or marked unanswerable. 3. **Budget ceiling**: a hard cap on retrieval calls, tokens, or dollars. The cap is a correctness feature: it forces the agent to prioritize breadth-first evidence over depth-first rabbit holes. 4. **Contradiction deadlock**: two sources disagree and no third source arbitrates; the right output is "sources conflict," cited, not a coin flip.  
  
The same discipline applies to relevance: research agents should log which retrieved items actually grounded claims, because that signal [improves the retriever itself over time](/guides/retrieval-feedback-loops-learning-to-rank-from-interactions).  
  

## How do you build one on Mixpeek?

  
  
Mixpeek's [retriever stage catalog](/docs/retrieval/research) maps onto the loop directly: each stage is a typed, composable step, so the research flow is a retriever definition rather than bespoke glue code:  
  
*   **Gather:** `feature_search` (multimodal search over your indexed corpus) plus `query_expand` for recall; `external_web_search` and `web_scrape` when public sources belong in scope.
*   **Narrow:** `attribute_filter` for time ranges and entities, `llm_filter` for semantic relevance judgments.
*   **Read & extract:** `llm_enrich` for fact extraction, `taxonomy_enrich` to tag evidence against your taxonomy, `document_enrich` to attach related documents.
*   **Verify:** `cross_compare` across collections (it walks exact, fuzzy and embedding tiers and reports which one matched; [see the matching cascade](/diagrams/match-cascade)), `api_call` out to external checkers.
*   **Synthesize:** `summarize` reduces the evidence set to a brief that keeps citations.
  
  
Follow-up loops compose the same way: `document_enrich` can invoke a sub-retriever, mapping outputs of one stage into the inputs of the next:

{
  "stage\_name": "retriever",
  "stage\_type": "enrich",
  "config": {
    "stage\_id": "document\_enrich",
    "parameters": {
      "retriever\_id": "ret\_internal\_logs",
      "input\_mappings": {
        "query\_text": "{{INPUT.primary\_question}}",
        "time\_range": "{{STAGE.filter.time\_range}}"
      },
      "merge\_strategy": "append"
    }
  }
}

Because the corpus is indexed multimodally up front (video scenes, PDF pages, images, transcripts: see [the retriever catalog](/retrievers)), the agent's sub-questions can gather evidence across all of it with one search surface. If you already produce your own embeddings, [MVS](/mvs) runs the same retrieval stack over vectors you bring. For corpus questions where you do not know the ontology yet: "what patterns exist here that nobody labeled?": pair the research loop with [discovered taxonomies](/guides/queries-without-a-predefined-ontology).  
  

## What should you evaluate before picking a framework?

  
  
Ask four questions of any deep-research stack: a [multimodal RAG framework](/curated-lists/best-multimodal-rag-frameworks), a hand-rolled agent loop, or a managed platform. Can the retrieval layer see every modality your evidence lives in? Does every extracted fact carry provenance a reviewer can click? Are stopping criteria and budgets enforced by the system rather than promised by the prompt? And can retrieval quality improve from usage? Whichever way you assemble it, the retrieval substrate decides the ceiling: a research agent is exactly as good as what it can find. Rate-card economics for the indexing side are on [pricing](/pricing); the loop itself you can prototype [free in Studio](/start).

## Run this on your own data

Point Mixpeek at the storage you already have and search your video, images, audio, and documents the way this guide describes. Build starts at $25/mo for up to 1M vectors.

[Search your own archive](https://studio.mixpeek.com/namespaces/create?mode=managed&utm_source=homepage&utm_medium=guide_cta&utm_campaign=mvs_onramp)[Read Docs](/docs)

[Explore MVS](/mvs)[See pricing](/pricing)

## Related guides

[

Search & Discovery

### How Do I Let an AI Agent Look Through My Own Video Library?

To let an AI agent look through your own video library, index the videos once into searchable, timestamped segments, then give the agent a search tool it can call, usually through an MCP server. The agent asks in plain language and gets back the moments that match. This guide explains why handing the agent the files does not work, the two pieces you need, and how to connect Claude Code, Cursor, Codex or Gemini CLI.

Read guide →](/guides/how-to-let-an-ai-agent-look-through-my-video-library)[

Search & Discovery

### How Do AI Agents Search Big Datasets by Navigating Clusters? (Hierarchical Cluster Search)

Flat vector search returns top-k against one query vector, which breaks down when an agent does not know the right query, the corpus is huge and diverse, or the task is exploratory. Agentic hierarchical cluster search gives the agent a map instead: a cluster hierarchy (themes -> sub-clusters -> records) it navigates coarse-to-fine, scoring its goal against a few dozen centroids and drilling into the matching branch before running a precise retrieval at the leaf. When it beats flat ANN, the navigation loop, the cost math, the honest limits, and how to build it from clustering + composite clustering + a cluster-scoped retriever.

Read guide →](/guides/agentic-hierarchical-cluster-search)[

Search & Discovery

### How Do I Find Out Where a Video Came From?

Where is this video from? Pull three or more frames from the clip and reverse image search each one in Google Lens, TinEye and Yandex, then search any on-screen text and spoken phrases as plain words. The oldest dated copy is your best lead to the original site. This covers where each method breaks, how to tell recycled and AI-generated footage, and what to do with cropped or re-encoded clips.

Read guide →](/guides/how-do-i-find-out-where-a-video-came-from)