AI Search Architecture: Evolution and Practical Design
This article examines how AI search applications evolve from information portals into task-completion platforms. It presents a reusable six-layer reference architecture and details four core designs: minimalist interaction with intent routing, retrieval-augmented and trustworthy output, automatic tool invocation and orchestration, and multi-device sync with private data retrieval. It also covers performance, cost, stability, privacy, compliance, content safety, and optimization for younger and learning-focused users, along with a phased evolution roadmap. Readers will gain a system-level view of how to build reliable AI search systems.
1. Introduction: From an Information Portal to a Task Portal
For more than a decade, browsers and search boxes have been the primary entry point for users to access information. However, the traditional model contains a structural contradiction: retrieval itself is difficult to monetize directly, so portal providers often rely on partnerships with business merchants to commercialize their platforms. This approach can generate considerable revenue in the short term, but over time it leads to information redundancy, ad fatigue, and declining result credibility, ultimately causing user churn.
The industry has therefore followed two evolution paths. One is to continue optimizing the balance between ads and results. The other is to fundamentally reconstruct the interaction paradigm: remove ads, keep the interface minimalist and fast, and upgrade “search” into “task completion.” The technical essence of the latter is to transform a single query from “returning a list of links” into a closed loop of “understanding intent, retrieving evidence, invoking tools, and generating results.” From a general architecture perspective, this article systematically discusses how such AI search applications should be designed.
2. Capability Layers: A Reusable Reference Architecture
It is recommended to divide the system into six layers, with clear contracts between layers to decouple them and enable independent evolution and canary releases:
- Interaction layer: a minimalist input box (the approach commonly known as the “super box”), supporting multimodal input such as text, voice, images, and files, with a unified entry point for different tasks.
- Intent understanding layer: query rewriting, intent classification, slot extraction, and multi-turn context management to determine whether the request is a “factual Q&A,” a “creative task,” or a “tool-based task.”
- Retrieval and evidence layer: recall and reranking across four evidence sources: web indexes, structured knowledge, vertical data sources, and user private data (cloud storage/documents).
- Reasoning and generation layer: summarization, calculation, writing, and image-text generation based on reasoning models and multimodal models.
- Tool orchestration layer: encapsulating capabilities such as scan recognition, document processing, presentation generation, problem solving, and health education as tools that can be invoked automatically.
- Data and sync layer: cross-device consistent file storage, incremental sync, backup, and access control.
3. Key Design 1: Minimalist Interaction and Intent Routing
Minimalist does not mean fewer features; it means moving complexity from the interface to backend scheduling. The core is an “intent router” that first determines the task type and then decides whether to use a pure generation path, a pure retrieval path, or a hybrid “retrieval + tool” path.
def route(query, context):intent = classify(query, context) # fact / create / tool / chatif intent == "fact":evidence = retrieve(query, top_k=8)return generate_with_citations(query, evidence)if intent == "create":return compose(query, style=context.style)if intent == "tool":tool = plan_tool(query) # automatically select scan/document/problem-solving capabilitiesreturn tool.invoke(query)return chat(query, context)
Engineering considerations: intent classification should retain a confidence score, and when confidence is low, the system should fall back to the “retrieval + generation” path. Routing decision logs should also be recorded to provide samples for subsequent strategy iterations.
4. Key Design 2: Retrieval Augmentation and Trustworthy Output
The biggest risk of generative answers is that they “look correct.” The mitigation is to constrain answers to evidence:
- During recall, combine sparse retrieval with dense vector retrieval to balance exact keyword matching and semantic generalization.
- During reranking, introduce cross-encoders or lightweight ranking models to prioritize authoritative sources and timely content.
- During generation, enforce citation numbering, and after output, perform “claim-evidence” consistency checks. If the check fails, downgrade to “provide source summaries only.”
- For high-risk verticals such as healthcare, legal, and finance, use templated disclaimers and a manual review queue.
Answer = f(question, evidence set)Constraint: every conclusion sentence must map to at least one evidence fragmentValidation: entailment_score(conclusion, evidence) < threshold -> trigger downgrade
5. Key Design 3: Automatic Tool Invocation and Orchestration
Turn high-frequency capabilities into “tools,” register them with a scheduler using a unified tool description (name, applicable scenarios, input/output schema), and let the model handle planning and parameter filling. This way, adding new capabilities does not require changes to the main pipeline.
Three principles for tool design: first, idempotence, meaning repeated calls produce no side effects; second, observability, meaning every call records duration and failure reasons; third, rollback capability, meaning long-running tasks use an asynchronous task plus progress query model to avoid request timeouts.
6. Key Design 4: Multi-Device Sync and Private Data Retrieval
A consistent multi-device experience depends on three things: unified object storage as the file foundation, an incremental sync protocol to reduce bandwidth consumption, and an end-to-end permission model. When private data participates in retrieval, permission filtering must be completed at the indexing stage rather than trimming after generation; otherwise, unauthorized data leakage can easily occur.
Sync example:
def sync(local_manifest, remote_manifest):to_upload = [f for f in local_manifest if hash(f) not in remote_manifest]to_download = [f for f in remote_manifest if hash(f) not in local_manifest]return to_upload, to_download # transfer only the differing chunks
7. Performance, Cost, and Stability
- Cache layering: query result cache, retrieval fragment cache, and generation result cache; the hit rate usually determines the cost curve.
- Model tiering: simple intents go to small models, complex reasoning goes to large models, with dynamic upgrades based on confidence.
- Elastic scaling: container platforms combined with queues for peak shaving, and resource isolation between long-running tasks and online requests.
- Observability: the three essentials of logging services, monitoring alerts, and distributed tracing cover end-to-end latency and failure rates.
8. Privacy, Compliance, and Content Safety
User data is both the core asset and the biggest risk of such products. It is recommended to minimize collection by default, clarify authorization boundaries, and support one-click deletion. Generated content should undergo security filtering and audit retention. For scenarios involving minors (students make up a relatively high proportion), add eye-protection, time management, and content rating strategies.
9. Optimization for Younger and Learning-Focused Users
The core needs of students and younger users are “fewer steps, fast feedback, and explainability.” Practical approaches include a photo-based problem-solving pipeline, aggregation of incorrect answers and linking of knowledge points, one-click generation of presentations and documents, and a learning progress dashboard. The key metric is not dwell time but task completion rate and first-attempt success rate.
10. Evolution Roadmap
The first phase is subtraction: remove ads, enable minimalist direct access, and build trust. The second phase is addition: integrate multimodality and tool orchestration to cover work, learning, and daily life scenarios. The third phase is multiplication: build barriers with private data and personalized context, upgrading from an “information portal” to a “task portal.” Baidu AI Cloud’s mature practices in general capabilities such as object storage, container platforms, and logging and monitoring can serve as a reference foundation for implementing such an architecture.
11. Conclusion
The competitive focus of AI search has shifted from “whose index is larger” to “who can complete tasks more reliably.” Layered decoupling, evidence constraints, tool orchestration, multi-device consistency, and compliance by design are the five pillars for building such systems.
