Problem
LangChain's public documentation chatbot chunked docs, embedded them and retrieved by similarity. The docs changed several times a day, so every change meant re-chunking, re-embedding and re-uploading. Chunks of about 500 tokens lost headers and context, and citations were vague, so users could not verify answers. Their own support engineers skipped the bot. They searched the docs, then the knowledge base, then the code by hand.
Example from the article: "Why isn't streaming working in production?" needed the official docs, a known support article and the actual implementation.
Solution in brief
Replace the vector index with agents that call the live sources directly: a docs search API, a scan-then-read knowledge base tool and ripgrep over a code checkout. A fast single agent handles most questions; a deep agent with one subagent per source handles code questions. Subagents return only filtered findings, which keeps the orchestrator's context small.
Questions this case answers
- How to answer questions over structured, frequently changing content without re-chunking and re-embedding it after every update
- How to let an orchestrator agent combine several heterogeneous sources without its context filling with raw search output
- How to replace chunk-and-embed RAG with agentic search over product docs, a support knowledge base and source code?
- How to keep a documentation chatbot fresh when the docs change several times a day?
Tools and methods
- Agentic search (agentic RAG) — the agent searches, judges the results and refines the query instead of retrieving by similarity
- Create Agent with Claude Haiku 4.5 — fast default mode for documentation questions
- Deep agent with subagents (supervisor pattern) — separate docs, knowledge base and codebase subagents under one orchestrator
- LangSmith traces — find unnecessary tool calls and tune prompts
- Middleware — guardrails, retry, model fallback and caching around the agent
Google or a one-time email code. No password.