Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 44 additions & 7 deletions .agents/skills/aiq-configure-workflow/assets/config-scaffold.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,49 @@ general:
# Web/API: copy general.front_end from config_web_default_llamaindex.yml

llms:
main_llm:
nemotron_llm_intent:
_type: nim
model_name: nvidia/nemotron-3-super-120b-a12b
base_url: "https://integrate.api.nvidia.com/v1"
temperature: 0.5
top_p: 0.9
max_tokens: 4096
num_retries: 5
chat_template_kwargs:
enable_thinking: true

nemotron_super_llm:
_type: nim
model_name: nvidia/nemotron-3-super-120b-a12b
base_url: "https://integrate.api.nvidia.com/v1"
temperature: 0.7
top_p: 0.7
max_tokens: 65536
num_retries: 5
chat_template_kwargs:
enable_thinking: true

nemotron_ultra_llm:
_type: nim
model_name: nvidia/nemotron-3-ultra-550b-a55b
base_url: "https://integrate.api.nvidia.com/v1"
api_key: ${NVIDIA_API_KEY}
temperature: 0.2
max_tokens: 16384
num_retries: 5
chat_template_kwargs:
enable_thinking: false

nemotron_ultra_writer_llm:
_type: nim
model_name: nvidia/nemotron-3-ultra-550b-a55b
base_url: "https://integrate.api.nvidia.com/v1"
api_key: ${NVIDIA_API_KEY}
temperature: 0.2
max_tokens: 32768
num_retries: 5
chat_template_kwargs:
enable_thinking: false

functions:
data_sources:
Expand All @@ -32,18 +68,19 @@ functions:

intent_classifier:
_type: intent_classifier
llm: main_llm
llm: nemotron_llm_intent

shallow_research_agent:
_type: shallow_research_agent
llm: main_llm
llm: nemotron_super_llm

deep_research_agent:
_type: deep_research_agent
orchestrator_llm: main_llm
planner_llm: main_llm
researcher_llm: main_llm
writer_llm: main_llm
orchestrator_llm: nemotron_ultra_llm
source_router_llm: nemotron_ultra_llm
planner_llm: nemotron_ultra_llm
researcher_llm: nemotron_ultra_llm
writer_llm: nemotron_ultra_writer_llm

workflow:
_type: chat_deepresearcher_agent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ repointing role fields — no Python changes.
| Parameter | Typical use | Notes |
|-----------|-------------|-------|
| `_type` | `nim` or `openai` | Provider plugin |
| `model_name` | required | e.g. `nvidia/nemotron-3-super-120b-a12b` |
| `model_name` | required | e.g. `nvidia/nemotron-3-ultra-550b-a55b` |
| `base_url` | NIM / compatible endpoint | Set explicitly for hosted NIM |
| `api_key` | optional | Falls back to `NVIDIA_API_KEY` for NIM |
| `temperature`, `top_p`, `max_tokens` | per role | See role table in configuration-reference |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ the file from `configs/`. For the full nine-profile table, see
3. **Model family**
- Nemotron → most profiles
- GPT-5.2 orchestration/planning/writing → `config_frontier_models.yml` (`OPENAI_API_KEY`)
- GPT-OSS-120B → `config_web_default_guardrails.yml` or `config_openshell.yml`
- Default split → existing Super profiles for intent/shallow, with Ultra for deep research and a larger writer budget

4. **Optional features** — copy blocks from:
- Guardrails → `config_web_default_guardrails.yml`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ an agent. Do not hard-code model names in Python.

```yaml
llms:
nemotron_super_llm:
nemotron_ultra_llm:
_type: nim
model_name: <a capable model>
gpt_oss_llm:
max_tokens: 16384
nemotron_ultra_writer_llm:
_type: nim # `openai` is also supported (also takes model_name)
model_name: <a cheaper model>
model_name: <the same capable model>
max_tokens: 32768 # larger report-writing budget
```

## Assign a model to an agent role
Expand Down Expand Up @@ -54,11 +56,11 @@ There is **no** generic `llm` field on the deep research agent.
functions:
deep_research_agent:
_type: deep_research_agent
orchestrator_llm: nemotron_super_llm # required; also the default for unset roles
source_router_llm: nemotron_super_llm
researcher_llm: nemotron_super_llm
planner_llm: gpt_oss_llm # cheaper model for planning
writer_llm: gpt_oss_llm
orchestrator_llm: nemotron_ultra_llm # required; also the default for unset roles
source_router_llm: nemotron_ultra_llm
researcher_llm: nemotron_ultra_llm
planner_llm: nemotron_ultra_llm
writer_llm: nemotron_ultra_writer_llm
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
```

This mirrors the real configs (for example
Expand Down
6 changes: 3 additions & 3 deletions .secrets.baseline

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

47 changes: 23 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,16 @@ The checked-in default CLI and web profiles use these core components:

- [NVIDIA NeMo Agent Toolkit 1.8.0](https://docs.nvidia.com/nemo/agent-toolkit/latest/)
- [LangChain Deep Agents](https://docs.langchain.com/oss/python/deepagents/overview) 0.6.5 or newer
- [NVIDIA Nemotron 3 Super 120B A12B](https://build.nvidia.com/nvidia/nemotron-3-super-120b-a12b/modelcard) for intent classification, shallow research, and deep-research writing in the default profiles
- [NVIDIA Nemotron 3 Ultra 550B A55B](https://build.nvidia.com/nvidia/nemotron-3-ultra-550b-a55b/modelcard) for deep-research source routing, orchestration, planning, and research in the default profiles
- [NVIDIA nemotron-mini-4b-instruct](https://build.nvidia.com/nvidia/nemotron-mini-4b-instruct/modelcard) (document summary, if used)
- [NVIDIA llama-nemotron-embed-vl-1b-v2](https://build.nvidia.com/nvidia/llama-nemotron-embed-vl-1b-v2) (embedding model for llamaindex knowledge layer implementation, if used)
- [NVIDIA nemotron-nano-12b-v2-vl](https://build.nvidia.com/nvidia/nemotron-nano-12b-v2-vl) (vision-language model for llamaindex knowledge layer implementation, if used)
- [NVIDIA Nemotron 3 Super](https://build.nvidia.com/nvidia/nemotron-3-super-120b-a12b) for intent classification and shallow research in the default profiles
- [NVIDIA Nemotron 3 Ultra](https://build.nvidia.com/nvidia/nemotron-3-ultra-550b-a55b) for clarification and every deep-research role in the default profiles
- [Google Gemma 4 31B IT](https://build.nvidia.com/google/gemma-4-31b-it) (document summary, if used)
- [NVIDIA Nemotron 3 Embed 1B](https://build.nvidia.com/nvidia/nemotron-3-embed-1b) (embedding model for the knowledge layer, if used)
- [NVIDIA Nemotron 3 Nano Omni 30B A3B Reasoning](https://build.nvidia.com/nvidia/nemotron-3-nano-omni-30b-a3b-reasoning) (vision-language model for the LlamaIndex knowledge layer, if used)
- [Tavily Search API](https://tavily.com/) for web search
- Serper, SerpAPI, or SearchAPI for Google Scholar paper search

Focused profiles can instead use [GPT-OSS-120B](https://build.nvidia.com/openai/gpt-oss-120b/modelcard)
for deep-research orchestration, planning, and writing, or GPT-5.2 for those roles in the
frontier-model example. Refer to [Configuration Files](#configuration-files); there is no single
Focused profiles can instead use GPT-5.2 or other supported frontier models for selected
deep-research roles. Refer to [Configuration Files](#configuration-files); there is no single
all-features profile.

## Target Audience
Expand Down Expand Up @@ -151,11 +150,11 @@ When using [NVIDIA API Catalog](https://build.nvidia.com/) (the default), infere

| Component | Default Model | Self-Hosted Hardware Reference |
|-----------|---------------|-------------------------------|
| LLM (intent, shallow research, deep-research writer) | `nvidia/nemotron-3-super-120b-a12b` | [Nemotron 3 Super model card](https://build.nvidia.com/nvidia/nemotron-3-super-120b-a12b/modelcard) |
| LLM (deep-research source router, orchestrator, planner, researcher) | `nvidia/nemotron-3-ultra-550b-a55b` in default profiles; GPT-OSS-120B or GPT-5.2 for selected roles in focused profiles | [Nemotron 3 Ultra model card](https://build.nvidia.com/nvidia/nemotron-3-ultra-550b-a55b/modelcard) |
| Document summary (optional) | `nvidia/nemotron-mini-4b-instruct` | [Nemotron Mini 4B](https://build.nvidia.com/nvidia/nemotron-mini-4b-instruct/) |
| Text embedding | `nvidia/llama-nemotron-embed-vl-1b-v2` | [NeMo Retriever embedding support matrix](https://docs.nvidia.com/nim/nemo-retriever/text-embedding/latest/support-matrix.html) |
| VLM (image/chart extraction, optional) | `nvidia/nemotron-nano-12b-v2-vl` | [Vision language model support matrix](https://docs.nvidia.com/nim/vision-language-models/latest/support-matrix.html#nemotron-nano-12b-v2-vl) |
| LLM (intent classifier, shallow researcher) | `nvidia/nemotron-3-super-120b-a12b` | [Nemotron 3 Super](https://build.nvidia.com/nvidia/nemotron-3-super-120b-a12b) |
| LLM (clarifier and all deep-research roles) | `nvidia/nemotron-3-ultra-550b-a55b` | [Nemotron 3 Ultra](https://build.nvidia.com/nvidia/nemotron-3-ultra-550b-a55b) |
| Document summary (optional) | `google/gemma-4-31b-it` | [Gemma 4 31B IT](https://build.nvidia.com/google/gemma-4-31b-it) |
| Text embedding | `nvidia/nemotron-3-embed-1b` | [NeMo Retriever embedding support matrix](https://docs.nvidia.com/nim/nemo-retriever/text-embedding/latest/support-matrix.html) |
| VLM (image/chart extraction, optional) | `nvidia/nemotron-3-nano-omni-30b-a3b-reasoning` | [Nemotron 3 Nano Omni](https://build.nvidia.com/nvidia/nemotron-3-nano-omni-30b-a3b-reasoning) |
| Knowledge layer (Foundational RAG, optional) | -- | [RAG Blueprint support matrix](https://docs.nvidia.com/rag/latest/support-matrix.html) |

For detailed installation instructions, refer to [Installation -- Hardware Requirements](docs/source/get-started/installation.md#hardware-requirements).
Expand Down Expand Up @@ -288,17 +287,17 @@ The `configs/` directory holds YAML workflow configs that define agents, tools,

| Config | Models | Description |
|--------|--------|-------------|
| `config_cli_default.yml` | Nemotron 3 Ultra; Nemotron 3 Super | CLI chat pipeline with Tavily and clarification; no knowledge backend. Paper search is a commented opt-in. |
| `config_web_default_llamaindex.yml` | Nemotron 3 Ultra; Nemotron 3 Super; Nemotron Mini summary | Default web/API chat pipeline with LlamaIndex/ChromaDB and Tavily. Paper search is commented out. |
| `config_web_frag.yml` | Nemotron 3 Ultra; Nemotron 3 Super | Web/API and Helm base with Foundational RAG plus Tavily. Requires separately deployed RAG query and ingestion services. |
| `config_web_opensearch.yml` | Nemotron 3 Ultra; Nemotron 3 Super; NVIDIA embedding model | Web/API with built-in OpenSearch knowledge retrieval plus Tavily; supports self-hosted, `es`, and `aoss` authentication modes. |
| `config_web_azure_ai_search.yml` | Nemotron 3 Ultra; Nemotron 3 Super; NVIDIA embedding model | Web/API with Azure AI Search knowledge retrieval plus Tavily; supports API-key and Azure identity authentication. |
| `config_frontier_models.yml` | GPT-5.2; Nemotron 3 Ultra; Nemotron 3 Super; Nemotron Mini summary | LlamaIndex profile using GPT-5.2 for orchestration/planning/writing, Nemotron Ultra for routing/research, and Nemotron Super for shallow research. Requires `OPENAI_API_KEY`. |
| `config_web_default_guardrails.yml` | GPT-OSS-120B; Nemotron 3 Ultra; Nemotron 3 Super; Nemotron Mini summary | LlamaIndex profile with workflow Guardrails explicitly attached, shallow-agent Guardrails dynamically attached through `workflow_functions`, and async deep-agent Guardrails applied by the AI-Q runner from the same target configuration. |
| `config_web_frag_mcp_auth.yml` | Nemotron 3 Ultra; Nemotron 3 Super | Foundational RAG plus an opt-in protected per-user OAuth MCP source example. Requires a real MCP endpoint and shared token store. |
| `config_domain_routing_and_skills.yml` | Nemotron 3 Ultra; Nemotron 3 Super; Nemotron Mini summary | Direct deep-research profile with domain routing, DuckDuckGo news, Polymarket, enabled Serper paper search, LlamaIndex, built-in skills, and a fresh per-job Modal sandbox. |
| `config_openshell.yml` | Nemotron 3 Ultra; Nemotron 3 Super; Nemotron Mini summary | Experimental web/API skills profile with artifact capture, fail-closed policy attestation, and one OpenShell sandbox per deep-research job. |
| `config_mcp.yml` | Nemotron 3 Ultra; Nemotron 3 Super | Standalone MCP server. Public NIM + Tavily research with PostgreSQL-backed stateless submit/poll/report. Requires `NVIDIA_API_KEY`, `TAVILY_API_KEY`, and `AIQ_CHECKPOINT_DB`. |
| `config_cli_default.yml` | Nemotron 3 Super/Ultra | CLI chat pipeline with Tavily and clarification; no knowledge backend. Paper search is a commented opt-in. |
| `config_web_default_llamaindex.yml` | Nemotron 3 Super/Ultra; Gemma 4 summary | Default web/API chat pipeline with LlamaIndex/ChromaDB and Tavily. Paper search is commented out. |
| `config_web_frag.yml` | Nemotron 3 Super/Ultra | Web/API and Helm base with Foundational RAG plus Tavily. Requires separately deployed RAG query and ingestion services. |
| `config_web_opensearch.yml` | Nemotron 3 Super/Ultra; Nemotron 3 Embed | Web/API with built-in OpenSearch knowledge retrieval plus Tavily; supports self-hosted, `es`, and `aoss` authentication modes. |
| `config_web_azure_ai_search.yml` | Nemotron 3 Super/Ultra; Nemotron 3 Embed | Web/API with Azure AI Search knowledge retrieval plus Tavily; supports API-key and Azure identity authentication. |
| `config_frontier_models.yml` | GPT Sol/Luna; Nemotron 3 Super/Ultra; Gemma 4 summary | LlamaIndex profile using GPT Sol/Luna for deep research and Super for intent/shallow. Requires `OPENAI_API_KEY` and `NVIDIA_API_KEY`. |
| `config_web_default_guardrails.yml` | Nemotron 3 Super/Ultra; Gemma 4 summary | LlamaIndex profile with workflow Guardrails explicitly attached, shallow-agent Guardrails dynamically attached through `workflow_functions`, and async deep-agent Guardrails applied by the AI-Q runner from the same target configuration. |
| `config_web_frag_mcp_auth.yml` | Nemotron 3 Super/Ultra | Foundational RAG plus an opt-in protected per-user OAuth MCP source example. Requires a real MCP endpoint and shared token store. |
| `config_domain_routing_and_skills.yml` | Nemotron 3 Ultra; Gemma 4 summary | Direct deep-research profile with domain routing, DuckDuckGo news, Polymarket, enabled Serper paper search, LlamaIndex, built-in skills, and a fresh per-job Modal sandbox. |
| `config_openshell.yml` | Nemotron 3 Super/Ultra; Gemma 4 summary | Experimental web/API skills profile with artifact capture, fail-closed policy attestation, and one OpenShell sandbox per deep-research job. |
| `config_mcp.yml` | Nemotron 3 Super/Ultra | Standalone MCP server. Public NIM + Tavily research with PostgreSQL-backed stateless submit/poll/report. Requires `NVIDIA_API_KEY`, `TAVILY_API_KEY`, and `AIQ_CHECKPOINT_DB`. |

## Ways to Run the Agents

Expand Down
23 changes: 18 additions & 5 deletions configs/config_cli_default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,25 @@ llms:
_type: nim
model_name: nvidia/nemotron-3-ultra-550b-a55b
base_url: "https://integrate.api.nvidia.com/v1"
temperature: 0.7
api_key: ${NVIDIA_API_KEY}
temperature: 0.2
top_p: 0.7
max_tokens: 65536
max_tokens: 16384
num_retries: 5
chat_template_kwargs:
enable_thinking: true
enable_thinking: false

nemotron_ultra_writer_llm:
_type: nim
model_name: nvidia/nemotron-3-ultra-550b-a55b
base_url: "https://integrate.api.nvidia.com/v1"
api_key: ${NVIDIA_API_KEY}
temperature: 0.2
top_p: 0.7
max_tokens: 32768
num_retries: 5
chat_template_kwargs:
enable_thinking: false

functions:
# =========================================================================
Expand Down Expand Up @@ -109,7 +122,7 @@ functions:

clarifier_agent:
_type: clarifier_agent
llm: nemotron_super_llm
llm: nemotron_ultra_llm
# tools: omitted -> inherits all from data_source_registry
# exclude_tools: []
max_turns: 3
Expand All @@ -132,7 +145,7 @@ functions:
source_router_llm: nemotron_ultra_llm
researcher_llm: nemotron_ultra_llm
planner_llm: nemotron_ultra_llm
writer_llm: nemotron_super_llm
writer_llm: nemotron_ultra_writer_llm
exclude_tools:
- web_search_tool

Expand Down
26 changes: 14 additions & 12 deletions configs/config_domain_routing_and_skills.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,35 +47,37 @@ general:
- "*"

llms:
nemotron_super_llm:
nemotron_ultra_llm:
_type: nim
model_name: nvidia/nemotron-3-super-120b-a12b
model_name: nvidia/nemotron-3-ultra-550b-a55b
base_url: "https://integrate.api.nvidia.com/v1"
temperature: 0.7
api_key: ${NVIDIA_API_KEY}
temperature: 0.2
top_p: 0.7
max_tokens: 65536
max_tokens: 16384
num_retries: 5
chat_template_kwargs:
enable_thinking: true
enable_thinking: false

nemotron_ultra_llm:
nemotron_ultra_writer_llm:
_type: nim
model_name: nvidia/nemotron-3-ultra-550b-a55b
base_url: "https://integrate.api.nvidia.com/v1"
temperature: 0.7
api_key: ${NVIDIA_API_KEY}
temperature: 0.2
top_p: 0.7
max_tokens: 65536
max_tokens: 32768
num_retries: 5
chat_template_kwargs:
enable_thinking: true
enable_thinking: false

# LLM for document summaries (required when generate_summary: true)
summary_llm:
_type: nim
model_name: nvidia/nemotron-mini-4b-instruct
model_name: google/gemma-4-31b-it
base_url: "https://integrate.api.nvidia.com/v1"
api_key: ${NVIDIA_API_KEY}
temperature: 0.3
temperature: 0.1
max_tokens: 100

functions:
Expand Down Expand Up @@ -214,7 +216,7 @@ functions:
source_router_llm: nemotron_ultra_llm
researcher_llm: nemotron_ultra_llm
planner_llm: nemotron_ultra_llm
writer_llm: nemotron_super_llm
writer_llm: nemotron_ultra_writer_llm
# tools: omitted -> inherits all from data_source_registry
exclude_tools: # Remove basic variant; deep uses advanced_web_search_tool
- web_search_tool
Expand Down
4 changes: 2 additions & 2 deletions configs/config_frontier_models.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ llms:
# LLM for document summaries (required when generate_summary: true)
summary_llm:
_type: nim
model_name: nvidia/nemotron-mini-4b-instruct
model_name: google/gemma-4-31b-it
base_url: "https://integrate.api.nvidia.com/v1"
api_key: ${NVIDIA_API_KEY}
temperature: 0.3
temperature: 0.1
max_tokens: 100

functions:
Expand Down
23 changes: 18 additions & 5 deletions configs/config_mcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,25 @@ llms:
_type: nim
model_name: nvidia/nemotron-3-ultra-550b-a55b
base_url: "https://integrate.api.nvidia.com/v1"
temperature: 0.7
api_key: ${NVIDIA_API_KEY}
temperature: 0.2
top_p: 0.7
max_tokens: 65536
max_tokens: 16384
num_retries: 5
chat_template_kwargs:
enable_thinking: true
enable_thinking: false

nemotron_ultra_writer_llm:
_type: nim
model_name: nvidia/nemotron-3-ultra-550b-a55b
base_url: "https://integrate.api.nvidia.com/v1"
api_key: ${NVIDIA_API_KEY}
temperature: 0.2
top_p: 0.7
max_tokens: 32768
num_retries: 5
chat_template_kwargs:
enable_thinking: false

functions:
data_sources:
Expand Down Expand Up @@ -87,7 +100,7 @@ functions:
# Defined for workflow compatibility but disabled at the workflow boundary.
clarifier_agent:
_type: clarifier_agent
llm: nemotron_super_llm
llm: nemotron_ultra_llm
max_turns: 3
log_response_max_chars: 2000
verbose: true
Expand All @@ -107,7 +120,7 @@ functions:
source_router_llm: nemotron_ultra_llm
researcher_llm: nemotron_ultra_llm
planner_llm: nemotron_ultra_llm
writer_llm: nemotron_super_llm
writer_llm: nemotron_ultra_writer_llm
exclude_tools:
- web_search_tool

Expand Down
Loading
Loading