Redesigning Search Infrastructure for AI Agents: From Link Lists to Structured Facts
This article examines why search, rather than model reasoning, is often the bottleneck for end-to-end AI agent success, and proposes a vendor-neutral reference architecture for machine-consumable search. It covers the four paradigm shifts in search, three gaps that must be closed (data, structure, and trust), and six architectural planes: multi-source ingestion, query understanding, structured output, provenance and trust, latency and cost, and integration ecosystem. Typical scenarios such as due diligence, code sourcing, threat intelligence, and industry research are discussed, along with an evaluation framework based on factual accuracy, field completeness, latency, and provenance verifiability.
1. The Overlooked Bottleneck: Why Agents Get Stuck on Search
Over the past six months, the capability boundary of AI agents has expanded almost month by month. Writing code, conducting industry research, and running security audits—tasks that once required step-by-step human guidance—can now be completed end to end automatically to a significant degree. Yet a counterintuitive pattern has emerged: what limits end-to-end success rates is often not the reasoning model itself, but the step where it acquires external facts—search.
Three typical failure samples illustrate the problem:
- Ask an agent to map a company’s ownership structure, and it returns only the self-description from the official website, without structured fields such as business registration, outbound investments, or the actual controller.
- Ask it to find a production-ready code implementation, and it returns beginner tutorials and blog posts rather than repository files with licenses, tests, and reproducibility.
- Ask it to analyze threat intelligence for a suspicious network address, and it retrieves only explainer articles, lacking decisive information such as resolution records, related samples, and confidence grading.
The conclusion is not that “search is not fast enough,” but that search “cannot see.” The output of traditional web retrieval is a ranked list of links meant for humans to read, based on the assumption that a human downstream will click, judge, and extract. Agents have no such step. They need structured facts that are directly consumable and have clearly defined fields.
2. A Paradigm View: Four Shifts in Search and the Current Gap
From a technical evolution perspective, search has gone through roughly four paradigm shifts: from directory navigation to keyword matching, from link ranking to knowledge graph question answering, from multimodal understanding to conversational generation, and the fourth shift now underway—structured retrieval for machine consumption.
The first three shifts optimized “the efficiency of humans finding answers.” The fourth optimizes “the success rate of machines acquiring facts.” This creates three gaps that must be filled:
- Data gap: A large amount of high-value information exists in code hosting, community discussions, financial market data, academic libraries, and vertical databases—systems outside the general web—where general crawling and indexing coverage is insufficient.
- Structure gap: Even when a match is found, the result is still a natural language fragment lacking verifiable fields such as entities, timestamps, values, units, and sources, so the agent cannot make conditional judgments based on it.
- Trust gap: Without item-by-item provenance and freshness annotations, generative answers cause agents to amplify hallucinations directly into wrong actions within automated pipelines.
3. Target Architecture: Six Planes of Unified Search Infrastructure
Abstracting these gaps into engineering problems yields a layered reference architecture that is independent of any specific vendor.
(1) Multi-Source Ingestion Plane
Use an adapter pattern to uniformly wrap heterogeneous data sources, where each source declares its capability boundaries, update frequency, and license constraints. An illustrative interface:
class SearchSource(Protocol):name: strdef capabilities(self) -> set[str]: ... # Supported retrieval dimensionsdef search(self, query: Query) -> SourceResult: ... # Return candidates and metadatadef freshness(self) -> timedelta: ... # Data freshness declaration
(2) Query Understanding Plane
Queries from agents are often long natural language sentences. They require intent decomposition, entity recognition, and time constraint extraction, then routing to the most suitable source. For example, “find a company’s outbound investments over the past two years” should be decomposed into entity (company) + relation (outbound investment) + time window (two years) + expected output (field table).
(3) Structured Output Plane
A unified result schema is the core of machine friendliness. Each result should contain at least: title, body summary, source identifier, publication time, accessible locator, structured field set, and confidence.
{"entity": {"type": "organization", "id": "..."},"facts": [{"key": "registered_capital", "value": 1000, "unit": "万元"}],"provenance": {"source": "...", "published_at": "2026-03-01"},"confidence": 0.86}
(4) Trust and Provenance Plane
Retain the source and crawl time for each fact to support secondary verification; for conflicting evidence, present items side by side rather than merging them arbitrarily, leaving the final judgment to the upper-layer policy.
(5) Latency and Cost Plane
Control response time through semantic caching, result prefetching, parallel multi-source recall, and tiered degradation (return a high-confidence subset first, then complete asynchronously); at the same time, constrain per-task cost with quotas and rate limiting.
(6) Integration Ecosystem Plane
Declare tool capabilities with a standard description file so that agents can automatically discover, register, and invoke search tools, reducing integration cost. In engineering practice, it is advisable to package search as an independent service, decouple long tasks with a message queue, and use logging services and monitoring alerts to observe recall rate, hit rate, and latency distribution.
4. Typical Scenario Practices
- Corporate due diligence: First obtain structured business registration and investment relationships, then supplement with public sentiment and risk alerts, outputting a field table plus timeline with a source attached to each conclusion.
- R&D code sourcing: Enforce filtering by license and activity level during retrieval, prioritizing implementations with tests and version tags, avoiding treating tutorials as production code.
- Threat intelligence assessment: Based on aggregated resolution and correlation information, output graded confidence and observation time; prohibit drawing conclusions without evidence.
- Industry research: Cross-validate key figures across multiple sources; when conflicts arise, present them side by side and annotate the reasons for the differences.
5. Evaluation Framework: Don’t Judge by Demo Alone
Search is a capability where “you only know the gap after using it.” It is recommended to use a reproducible offline evaluation set to measure four dimensions: factual accuracy, field completeness, end-to-end latency, and provenance verifiability; then add the success rate and manual rework rate of real tasks. If a combination of general cloud capabilities is adopted (object storage for corpus, container platform for hosting retrieval services, logging and monitoring systems for observability), this evaluation loop can be set up quickly.
6. Conclusion
For agents, retrieval quality and source selection are now as important as model capability: the same model, paired with stronger search and context, can differ in usefulness by orders of magnitude. Designing search as infrastructure—multi-source, structured, traceable, low-latency—is the path to enabling agents to truly reach and connect to the real world.
