Architecture Overview

July 28, 2026 ยท View on GitHub

The NVIDIA AI-Q Blueprint is a multi-agent research system built on the NVIDIA NeMo Agent Toolkit. It uses a two-tier research architecture that keeps simple queries fast while reserving multi-phase deep research for complex topics.

System Flow

The following diagram shows the full request lifecycle from user query to final response. Every query enters through the Intent Classifier, which decides whether to respond directly (meta), perform a quick tool-augmented lookup (shallow), or initiate a comprehensive multi-agent investigation (deep).

:alt: AI-Q Architecture
:align: center

Reading the Diagram

  • The deep-research path is dynamic rather than a fixed linear chain. The optional source router informs planning, and the orchestrator dispatches independent research queries to reusable researcher workers concurrently before delegating final synthesis to the writer.
  • Shared Research State represents the DeepAgents state and virtual /shared/ filesystem used for the plan, research notes, progress, and final output. It is distinct from external data sources and the durable generated artifact store.
  • Skill Definitions are host-side, read-only instructions assigned to specific roles. Research skills are exposed to researcher workers and synthesis skills to the writer by the shipped skills profile.
  • Job-Scoped Sandbox is optional. When configured, agent-generated code runs through one provider sandbox per deep-research job; Modal and OpenShell are alternative providers. Inference, source-tool calls, credentials, and shared research state remain in the AI-Q process.

Core Components

ComponentRoleLocation
Intent ClassifierSingle LLM call: classifies intent (meta/research) and depth (shallow/deep)agents/chat_researcher/nodes/intent_classifier.py
Clarifier AgentOptionally gathers missing context and the requested output type before deep researchagents/clarifier/agent.py
Shallow ResearcherFast, bounded tool-augmented researchagents/shallow_researcher/agent.py
Deep ResearcherOrchestrates optional source routing, structured planning, concurrent research workers, and writer-first synthesisagents/deep_researcher/agent.py
Chat Researcher OrchestratorLangGraph state machine coordinating all agentsagents/chat_researcher/agent.py
Data Source RegistryApplies per-request source selection and exposes the active source-tool set to research agentscommon/data_source_registry.py
Knowledge LayerPluggable document ingestion and retrieval through LlamaIndex, Foundational RAG, Azure AI Search, or OpenSearchsources/knowledge_layer/
Shared Research StateHost-side DeepAgents state and /shared/ virtual filesystem for plans, research notes, progress, and final outputagents/deep_researcher/deepagents_runtime.py
Skills and Execution RuntimeExposes role-assigned, read-only skill definitions and optionally routes generated code to a job-scoped sandboxagents/deep_researcher/skills/, agents/deep_researcher/sandbox/

Orchestrator State Machine

The ChatResearcherAgent builds a LangGraph StateGraph over ChatResearcherState with four nodes and conditional edges:

graph LR
    IC[intent_classifier] -->|meta| END_NODE[END]
    IC -->|"research/deep"| CL[clarifier]
    IC -->|"research/shallow"| SR[shallow_research]
    SR -->|"escalate"| CL
    SR -->|"done"| END_NODE
    CL --> DR[deep_research]
    DR --> END_NODE

    style IC fill:#fff3e0
    style SR fill:#f3e5f5
    style CL fill:#fce4ec
    style DR fill:#e8eaf6

Routing logic:

  1. route_after_orchestration -- After the intent classifier runs, the graph inspects state.user_intent.intent. If meta, the response is already in state.messages and the graph routes to END. If research, it checks state.depth_decision.decision to choose shallow_research or clarifier.

  2. should_escalate -- After shallow research completes, the graph evaluates whether the response warrants escalation to deep research. It checks for empty responses and escalation keywords ("unable to find", "need more research", "i don't have enough information") in the last 800 characters of the AI response. When escalation triggers, the graph routes to the clarifier node (not directly to deep_research), so it can gather any missing context or output-shape preference before research. Research planning then occurs inside the deep-research workflow. Escalation is gated by the enable_escalation config flag.

ChatResearcherState

The central state model carries data through the entire workflow:

FieldTypePurpose
messageslist[AnyMessage]Conversation history (LangGraph message reducer)
user_infodict or NoneAuthenticated user information for personalization
data_sourceslist[str] or NoneHard per-request filter for registry-mapped source tools. Unmapped configured or utility tools remain active.
user_intentIntentResult or NoneClassification result: meta or research
depth_decisionDepthDecision or NoneRouting decision: shallow or deep
final_reportstr or NoneFinal report output from deep research
shallow_resultShallowResult or NoneResult from shallow research path
clarifier_resultstr or NoneClarification log containing missing context or output-shape preferences
original_querystr or NonePreserved user query for deep research
available_documentslist[AvailableDocument] or NoneUser-uploaded documents with summaries

Design Decisions

  • Two-tier routing: Keeps common queries fast (single tool-calling loop) while reserving multi-stage deep research for complex cases. The intent classifier makes the routing decision in a single LLM call to minimize latency.

  • LangGraph state machine: Provides explicit, testable routing with conversation checkpointing using InMemorySaver or persistent backends (SQLite, PostgreSQL).

  • Separated coordination and execution: The deep-research orchestrator invokes optional source-router, planner, and writer task subagents. Research queries run through run_research_batch as concurrent invocations of a reusable researcher worker, not as task() subagents. The writer is the normative final-synthesis stage. If /shared/output.md is missing, the runtime can defensively accept a substantive orchestrator-authored Markdown report, but rejects short workflow chatter.

  • Toolkit-independent agents: All agents receive dependencies through constructor injection for testability. NeMo Agent Toolkit registration is a thin layer in register.py files.

  • Data source filtering: data_sources filters tools mapped in the data source registry before the active research agents are constructed. Unmapped configured tools remain active and are absent from the router catalog. Routing is advisory, and ResearchQuery preferred and fallback tool names are prompt guidance, while workers remain bound to the full request-filtered set.

  • Evaluation-driven defaults: Routing and research budgets are tuned through benchmarks (FreshQA, Deep Research Bench) and can evolve as evaluation scores improve.

  • Citation verification and auditability: Research paths capture sources for deterministic citation checks and URL sanitization. Deep-research citation verification is enabled by default and configurable with enable_citation_verification; it is not an unconditional workflow stage. Refer to Deep Researcher -- Citation Verification for details.

References