Nemotron Retrieval Recipes
NVIDIAOfficialCreated by NVIDIA Nemotron Team
- Skill
- Tool integration
- Software development
- Apache-2.0
- Medium risk
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
The nemotron-retrieval-recipes skill provides a structured interface for interacting with NVIDIA Nemotron embedding and reranking workflows. It assists users in planning, debugging, tuning, evaluating, and deploying retrieval models by providing access to recipe-specific CLI commands, configuration management, and best practices. The skill emphasizes a safe, iterative approach, prioritizing dry-runs and configuration reviews before executing resource-intensive tasks like fine-tuning or deployment.
What it does
- Routes retrieval tasks to the appropriate embedding or reranking recipe family.
- Provides CLI commands for managing the full lifecycle of retrieval recipes.
- Facilitates configuration management using dotlist overrides.
- Supports dry-run execution to validate commands and configurations before deployment.
- Offers guidance on interpreting evaluation metrics to diagnose retrieval failures.
- Ensures secure handling of credentials and environment configurations.
When to use it
- When you need to fine-tune or evaluate Nemotron embedding or reranking models.
- When diagnosing retrieval quality issues such as low Recall or poor nDCG.
- When planning the deployment of a retrieval model via NIM or vLLM.
- When you need to reconcile local recipe configurations with current source checkouts.
Advantages
- Reduces manual configuration errors through standardized CLI workflows.
- Promotes safe experimentation by separating preview and execution commands.
- Provides clear diagnostic paths for common retrieval failure modes.
- Ensures consistent evaluation practices across different model profiles.
Usage examples
- “My retrieval recall is low. How do I start tuning the embedding model?”
- The agent will recommend using the embed recipe, suggest a dry-run command like 'uv run nemotron embed run -c default -d --from sdg --to eval', and explain the importance of checking data governance before starting Stage 0 SDG.
- “I have acceptable recall but poor top-rank ordering. What should I do?”
- The agent will identify this as a reranking issue, suggest loading the rerank reference, and provide a command to run a preview of the rerank pipeline: 'uv run nemotron rerank run -c default -d --from prep --to eval'.
Install
Download the skill as a ZIP:
https://mp-staging.autogineer.com/agent-skills/nvidia/nemotron-retrieval-recipes/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip nemotron-retrieval-recipes.zip -d .agents/skills
Documentation by NVIDIA Nemotron Team
Nemotron Retrieval Recipes
Invocation: $nemotron-retrieval-recipes.
Purpose
Use this skill to work with public Nemotron embedding and reranking retrieval recipes in a source checkout or installed package. Prefer the current checkout over memory, because the recipe CLI, configs, containers, and output paths are actively changing. Treat each recipe family as available only after its recipe directory and matching CLI files are present.
This is a public product skill, not contributor-only guidance. Its value over static docs is to make an agent route the user's retrieval failure to the right recipe family, reconcile docs with the current checkout, avoid accidental long-running launches, preserve secrets, and return concrete preview/execution/run-report commands.
Use it only for tasks tied to the public Nemotron embed or rerank recipe flow. If the request is unrelated retrieval theory, generic vector database selection, generic benchmark advice, or non-recipe Docker/Slurm/NIM troubleshooting, stop with a short scope note and do not inspect recipe files in that turn.
Security Notes
Use Bash for repo-scoped inspection, help, dry-run, and user-approved execution commands. Do not run API, GPU, Docker, Slurm, NIM, or other long-running work unless the user explicitly asks for it. Before Stage 0 SDG for either family, confirm the user's data-governance policy permits sending corpus content to the configured inference endpoints; otherwise use an approved private or air-gapped path. Never run broad environment dumps or commands that expose secret values. Prefer dotlist overrides and config review over editing recipe defaults.
Source Priority
Resolve conflicts in this order:
Current checkout recipe, CLI, config, and source files.
Bundled references in this skill.
User-provided docs or saved snippets.
Memory.
For runnable commands, treat the current checkout as authoritative. If a required recipe directory, CLI command, config, or env profile is missing, report the blocker instead of guessing.
Prerequisites
Repo environment:
uv sync --all-extrasor the smallest relevant extra documented by the checkout.Stage 0 SDG:
NVIDIA_API_KEY; never ask users to paste secret values.Stages 1–3 GPU work: CUDA/NVIDIA driver availability and enough VRAM.
Stage 4 export: NeMo Export-Deploy container when using TensorRT. The default Nemotron 3 Embed profile intentionally skips export.
Stage 5 deploy: Docker. Default Nemotron 3 Embed can use the checked-in vLLM path with
backend=vllm, or a compatibleNEMOTRON3_EMBED_NIM_IMAGEwithbackend=nim; Llama Embed and rerank deployment may require NGC access andNGC_API_KEY.Remote execution: root
env.tomlprofile for--runor--batch; loadreferences/remote.mdwhen remote scheduling, logs, or GPU placement matter.
Instructions
Identify the recipe family.
Use
references/embed.mdfor embedding, embed, bi-encoder, vector search, first-stage retrieval, low Recall@k, missing relevant documents, NIM embeddings, ornemotron embed.Use
references/rerank.mdfor rerank, reranker, cross-encoder, second-stage retrieval, acceptable recall but poor top-rank ordering, low nDCG with good Recall, ornemotron rerank.Use both references only when the user asks about both families or asks which family to choose.
For
embed, choose one model profile before composing stage commands.Run
uv run nemotron embed infowhen the requested model is unclear.Use
-c defaultfornvidia/Nemotron-3-Embed-1B-BF16.Use
-c llamafornvidia/llama-nemotron-embed-1b-v2and its export path.Carry the selected profile and
artifact_rootthrough every stage; never combine artifacts from the two profiles.
Choose the model family to tune from the retrieval failure mode.
Prefer embedding fine-tuning when relevant documents are absent from the candidate set.
Prefer reranker fine-tuning when relevant documents are retrieved but ordered poorly near the top.
For production retrieval stacks, remember that these are complementary: embed first, rerank candidates second.
Identify the intent: plan a run, execute a stage, debug a failure, tune hyperparameters, interpret metrics, export/deploy a model, inspect configs, or propose dotlist overrides.
Inspect the current public surface before acting:
Recipe files:
src/nemotron/recipes/<embed|rerank>/CLI files:
src/nemotron/cli/commands/<embed|rerank>/Configs:
src/nemotron/recipes/<family>/stage*/config/<profile>.yamlHelp and dry runs:
uv run nemotron <family> --help,uv run nemotron <family> <stage> -c <profile> -d
Safe Workflow
Gather only context relevant to the task: recipe family, selected profile, corpus path, existing SDG/training/eval data, target stage range, artifact root, checkpoint path, execution mode, GPU IDs, and whether required secrets are configured. Never ask users to paste secret values.
Start with cheap checks before expensive work:
uv run nemotron <family> --helpuv run nemotron <family> <stage> --helpuv run nemotron <family> <stage> -c <profile> -duv run nemotron <family> run -c <profile> -d --from <stage> --to <stage>run --helpmay omit inherited-cand-doptions even thoughrun -c default -d ...works; validate by running the dry-run when unsure.In an already prepared checkout,
uv run --no-sync ... --helporuv run --no-sync ... -dcan avoid unexpected dependency sync during read-only checks.
Check prerequisites for the requested stage:
Repo environment:
uv sync --all-extrasor the smallest relevant extra if documented by the repo.Stage 0 SDG:
NVIDIA_API_KEY.Stages 1–3 GPU work: CUDA/NVIDIA driver availability and enough VRAM.
Stage 4 export: the NeMo Export-Deploy container when using TensorRT. Default Nemotron 3 Embed skips this stage.
Stage 5 deploy: Docker plus the selected backend's image and artifact contract; default Nemotron 3 may use the checked-in vLLM image without NIM credentials. Load the family reference before requiring NGC credentials.
Remote execution: root
env.tomlprofile for--runor--batch; loadreferences/remote.mdwhen remote scheduling, logs, or GPU placement matter.
Use dotlist overrides instead of editing defaults unless the user asks for reusable config changes. Keep the selected profile, artifact root, sequence length, prefixes, pooling/normalization, prompt templates, and hard-negative counts consistent across stages.
Avoid launching API, GPU, Docker, Slurm, NIM, or long-running jobs unless the user explicitly asked to run them. Offer or run dry-runs, config review, and small pilots first.
For local execution, scope requested GPU IDs with
CUDA_VISIBLE_DEVICES=<ids>. For--runor--batch, configure scheduler resources such asgpus_per_nodein the selectedenv.tomlprofile and let the scheduler assign devices; do not assume submit-shellCUDA_VISIBLE_DEVICESpropagates remotely.For multi-stage local runs, prefer
uv run nemotron <family> run -c <profile> --from <stage> --to <stage>. Usedefaultfor rerank. The defaultruntarget stops ateval;exportanddeployare opt-in.When evaluating quality, compare against the base model on a fixed held-out evaluation set before recommending deployment. Do not substitute a standalone public-benchmark eval for the recipe's own Stage 3 evaluation.
For long-running SDG, prep, finetune, or eval work, start the process in a session-safe way and poll at human-scale intervals: roughly 60 seconds for small pilots and 120-300 seconds for larger runs.
For failures, localize the failing stage, then inspect the stage config, expected inputs, output directory, and corresponding CLI wrapper or
run_uv.py.
References
references/embed.md: embedding recipe stages, commands, defaults, output paths, and operating patterns.references/rerank.md: rerank recipe stages, commands, defaults, output paths, and operating patterns.references/evaluation.md: metric interpretation, comparison hygiene, and deployment readiness checks.references/remote.md: remote execution profiles, batch/run mode, GPU scoping, logs, and polling.
Examples
User asks: "Recall is decent, but nDCG is poor and the right passage is around rank 40. Should I tune embed or rerank?"
Load references/rerank.md and references/evaluation.md, explain that acceptable recall with poor top-rank ordering points to reranker tuning, then offer a cheap preview before training.
uv run nemotron rerank run -c default -d --from prep --to evalTroubleshooting
Localize the failing stage, then inspect the stage config, expected inputs, output directory, and corresponding CLI wrapper or run_uv.py.
Limitations
Bundled references are condensed snapshots; verify commands, flags, defaults, and output paths against the active checkout before execution.
This skill does not provide datasets, checkpoints, credentials, GPU capacity, Docker images, or NIM services.
Output Style
For planning or debugging recommendations, use this shape when it helps: Decision, Why, Required inputs, Preview command, Execution command, Avoid, and Next step. Omit fields that are irrelevant to a short answer.
Give concrete commands and file paths. State assumptions, expected inputs, expected outputs, and the cheapest validation step that proves the next action is ready. For long-running stages, separate preview commands from execution commands so the user can choose deliberately.
When reporting a dry-run or real run, include a compact run report: command, mode, config, dotlist overrides, input paths, output paths, validation signal or metric file, and next cheapest check. Include the checkout commit when it is available.
Files
- ATTRIBUTION.mdAdded by AutoGineer950 B
- BENCHMARK.md3.1 KiB
- LICENSELicence file added by AutoGineer11.2 KiB
- SKILL.md10.2 KiB
- evals/.gitignore9 B
- evals/EVAL.md4.3 KiB
- evals/evals.json19.5 KiB
- references/embed.md11.3 KiB
- references/evaluation.md3.5 KiB
- references/remote.md2.0 KiB
- references/rerank.md9.3 KiB
- skill-card.md3.9 KiB
- skill.oms.sig5.8 KiB
skill-card.md
Description: <br>
Use when planning, debugging, tuning, evaluating, exporting, or deploying public Nemotron embed/rerank retrieval recipes. <br>
This skill is ready for commercial/non-commercial use. <br>
Owner
NVIDIA <br>
License/Terms of Use: <br>
Apache 2.0 <br>
Use Case: <br>
Developers and engineers who need to plan, debug, tune, evaluate, export, or deploy Nemotron embedding and reranking retrieval models using public recipes. <br>
Deployment Geography for Use: <br>
Global <br>
Requirements / Dependencies: <br>
Requires API Key or External Credential: [Yes] <br> Credential Type(s): [API key] <br>
Do not include secrets in prompts/logs/output; use least-privilege credentials; rotate keys as appropriate. <br>
Known Risks and Mitigations: <br>
Risk: Review before execution as proposals could introduce incorrect or misleading guidance into skills. <br> Mitigation: Review and scan skill before deployment. <br>
Reference(s): <br>
Skill Output: <br>
Output Type(s): [Shell commands, Configuration instructions, Analysis] <br> Output Format: [Markdown with inline bash code blocks] <br> Output Parameters: [1D] <br> Other Properties Related to Output: [None] <br>
Evaluation Agents Used: <br>
claude-code<br>codex<br>
Evaluation Tasks: <br>
Evaluated against 40 tasks in the NVSkills-Eval external profile within the astra-sandbox environment. <br>
Evaluation Metrics Used: <br>
Reported benchmark dimensions: <br>
Security: Checks whether skill-assisted execution avoids unsafe behavior such as secret leakage, destructive commands, or unauthorized access. <br>
Correctness: Checks whether the agent follows the expected workflow and produces the correct final output. <br>
Discoverability: Checks whether the agent loads the skill when relevant and avoids using it when irrelevant. <br>
Effectiveness: Checks whether the agent performs measurably better with the skill than without it. <br>
Efficiency: Checks whether the agent uses fewer tokens and avoids redundant work. <br>
Underlying evaluation signals used in this run: <br>
security: Checks for unsafe operations, secret leakage, and unauthorized access. <br>skill_execution: Verifies that the agent loaded the expected skill and workflow. <br>skill_efficiency: Checks routing quality, decoy avoidance, and redundant tool usage. <br>accuracy: Grades final-answer correctness against the reference answer. <br>goal_accuracy: Checks whether the overall user task completed successfully. <br>behavior_check: Verifies expected behavior steps, including safety expectations. <br>token_efficiency: Compares token usage with and without the skill. <br>
Evaluation Results: <br>
| Dimension | Num | claude-code | codex |
|---|---|---|---|
| Security | 8 | 100% (+0%) | 100% (+0%) |
| Correctness | 8 | 96% (+45%) | 90% (+28%) |
| Discoverability | 8 | 90% (+54%) | 84% (+42%) |
| Effectiveness | 8 | 89% (+36%) | 85% (+24%) |
| Efficiency | 8 | 83% (+40%) | 82% (+33%) |
Skill Version(s): <br>
0.2.0 (source: frontmatter) <br>
Ethical Considerations: <br>
NVIDIA believes Trustworthy AI is a shared responsibility and we have established policies and practices to enable development for a wide array of AI applications. When downloaded or used in accordance with our terms of service, developers should work with their internal team to ensure this skill meets requirements for the relevant industry and use case and addresses unforeseen product misuse. <br>
(For Release on NVIDIA Platforms Only) <br> Please report quality, risk, security vulnerabilities or NVIDIA AI Concerns here. <br>
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Needs an API key, Needs Python
Security
What our scanner noticed· Medium risk
- Large base64-encoded blobs
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Created by
- NVIDIA Nemotron Team
- Publisher
- NVIDIA (Official)
- Source
- NVIDIA/skills · skills/nemotron-retrieval-recipes · commit fce3cca
- Licence
- Apache License 2.0 (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE-APACHE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by NVIDIA Nemotron Team or NVIDIA.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download nemotron-retrieval-recipes.zip