AI agents: how we built DeepResearch over corporate data and the codebase

Sergey Skorodumov22 Jan 2026

Problem

Employees of a large company lose time looking for answers scattered across the Wiki, internal docs, email and chats. External tools such as ChatGPT or Perplexity cannot see this data, and the codebase is too large for one model context. At Yandex, answering one internal question took the author 10–20 minutes of manual digging.

Example from the article: a chat question "How to fix bug B in service C?" takes a knowledgeable colleague about 10 minutes and a newcomer about an hour.

Solution in brief

Yandex built DeepAgent: one LLM agent that gets a few search and read tools and decides itself when to answer and when to dig deeper. Every change was measured on test sets with an LLM judge and read through full logs, then the agent was fine-tuned on judge-approved trajectories.

Questions this case answers
  • How to build a retrieval agent that answers multi-step questions over private, fragmented documents and code that cannot fit into one model context
  • How to measure and improve an agent's quality when only domain insiders can write the reference answers
  • How to build a DeepResearch agent that answers hard questions over internal wikis, support chats and a codebase too large for one LLM context?
  • How to measure and raise the quality of an internal agent when external assessors cannot judge the answers?

Tools and methods

  • Single agent with search and read tools — chooses its own steps instead of a fixed workflow.
  • Test baskets and LLM-as-a-judge — simple and hard question sets, with the judge itself rechecked by hand.
  • Few-shot examples in the system prompt — quick baseline gain.
  • Code execution instead of tool calling — the model writes one Python block that calls the tools.
  • Fine-tuning on judge-approved trajectories — used once prompts and tools stopped helping.
Continue reading — it's free

Google or a one-time email code. No password.