Context Engineering (Agent Memory) for AI Agents Starts with Retrieval
Agent retrieval fails in three ways: inefficient searching, too much context at once, and irrelevant or stale context.
Agent retrieval fails in three ways: inefficient searching, too much context at once, and irrelevant or stale context.
A compiled, source-linked wiki (OpenWiki) used as agent memory raised accuracy on cross-document questions from 0.10 to 0.52 versus keyword search alone on a synthetic 111-document insurance corpus scored against a 972-fact ledger, and cut cost per correct answer from about $0.55 to $0.19.
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.