---
title: "Building Deep Research: How we Achieved State of the Art"
description: "Tavily's deep research agent reached state of the art on DeepResearch Bench while using 66% fewer tokens than LangChain's Open Deep Research, mainly through context engineering."
url: "https://swe.quest/articles/building-deep-research-how-we-achieved-state-of-the-art-414ffb743a73bb80"
canonical: "https://huggingface.co/blog/Tavily/tavily-deep-research"
source: "Hugging Face"
published: "2025-11-24"
difficulty: "medium"
kind: "Case study"
reading_minutes: 7
tags: ["ai-agents","llms","evals"]
---

# Building Deep Research: How we Achieved State of the Art

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2025-11-24, 7 min read, Case study. Original: [https://huggingface.co/blog/Tavily/tavily-deep-research](https://huggingface.co/blog/Tavily/tavily-deep-research)

## Summary

Tavily's deep research agent reached state of the art on DeepResearch Bench while using 66% fewer tokens than LangChain's Open Deep Research, mainly through context engineering. Each tool output is distilled into a short reflection, and only past reflections are passed to the tool-calling model. Raw sources come back only for the final write-up. This turns token growth from quadratic (n·m(m+1)/2) into linear (n·m) across m iterations. Other lessons: keep orchestration simple so future model gains carry through, deduplicate sources through global state, expose a small toolset, design for failure modes, and treat LLM-as-judge evals as directional feedback rather than the optimization target.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)

## Prerequisites

- LLM tool calling ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- ReAct agent loops ([easy posts on React](https://swe.quest/tags/react.md?difficulty=easy))
- context windows

## Keywords

Tavily, DeepResearch Bench, Open Deep Research, LangChain, ReAct, context engineering

## Related posts

- [Open-source DeepResearch – Freeing our search agents](https://swe.quest/articles/open-source-deepresearch-freeing-our-search-agents-72a8cc1624888c05.md): Hugging Face · 2025-02-04 · Medium · 17 min read · AI agents, LLMs, Evaluation, Open source
  Hugging Face reproduced OpenAI's Deep Research agent in about 24 hours using the open smolagents framework and reached 55.15% on the GAIA validation set, up from roughly 46% for the previous open state of the art (Magentic-One).
- [Context Management for Deep Agents](https://swe.quest/articles/context-management-for-deep-agents-dc1d776470c6aad5.md): LangChain · 2026-10-13 · Medium · 5 min read · AI agents, LLMs, Evaluation
  The Deep Agents SDK manages long-running agent context with three compression techniques triggered at fractions of the model's context window.
- [LLM Cost Optimization: 3 Patterns to Cut LLM Token Spend](https://swe.quest/articles/llm-cost-optimization-3-patterns-to-cut-llm-token-spend-f19f5dd3713227bf.md): Honeycomb · 2026-11-05 · Medium · 9 min read · LLMs, Cost optimization, Observability, AI agents
  LLM token spend is best reduced by using traces to find three waste patterns: repeated input context that doesn't improve results, retry storms and runaway agent loops, and output tokens that don't lift outcomes.
- [Open-source LLMs as LangChain Agents](https://swe.quest/articles/open-source-llms-as-langchain-agents-e2163a289958a319.md): Hugging Face · 2024-01-24 · Medium · 10 min read · AI agents, LLMs, Evaluation, Python
  Open-source LLMs can now serve as reasoning engines for tool-using ReAct agents, with Mixtral-8x7B outperforming GPT-3.5 out of the box on a mixed benchmark drawn from HotpotQA, GSM8K and GAIA, graded by GPT-4-as-a-judge.
- [Why We Rebuilt LangChain’s Chatbot and What We Learned](https://swe.quest/articles/why-we-rebuilt-langchain-s-chatbot-and-what-we-learned-903a9865b6131c52.md): LangChain · 2026-08-26 · Medium · 15 min read · AI agents, RAG & retrieval, LLMs, Documentation
  LangChain replaced chat.langchain.com's chunk-and-embed vector retrieval with tool-calling agents that search structured sources directly: full doc pages via Mintlify's API, a scan-titles-then-read pattern over the Pylon knowledge base, and ripgrep/tree/file-read tools over the codebase.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
