Use for Nemotron embed/rerank recipes, including Nemotron 3.5 multimodal SDG, tuning, evaluation, and deployment. Not for generic retrieval.
85%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Invocation: $nemotron-retrieval-recipes.
Use this skill to plan, run, and debug public Nemotron embedding and reranking recipes. The bundled references support planning without a Nemotron checkout or network access. Before execution, verify the installed CLI's capabilities and the selected configuration because recipe interfaces can change.
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.
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.
Resolve references/ links relative to this skill folder, not the working
directory. External source links are optional, commit-pinned background.
Do not require repository documentation to answer a planning question.
Execution examples assume a prepared Nemotron checkout. At the bundled
revision, the CLI resolves recipe scripts from the working directory: run
from the checkout root even if nemotron is installed globally. Use
uv run nemotron there, or nemotron directly in an activated environment.
Do not run uv sync in an unrelated project. Without a checkout or runtime,
provide a plan from the bundled references and identify setup as an execution
prerequisite. Never require a checkout just to explain the workflow.
For a new execution workspace, this setup selects the bundled revision. Use the user's existing checkout and revision when they already chose one:
git clone https://github.com/NVIDIA-NeMo/Nemotron.git
cd Nemotron
git checkout db6312b2d2aac53a341afd6b45c7784ee966b47c
uv sync --python 3.12Resolve conflicts in this order:
Before execution, confirm the command, profile, input paths, and required environment exist. Missing runtime dependencies block execution, not planning.
Gather only what the requested task needs:
references/embed.md for embedding, embed, bi-encoder, vector search, first-stage retrieval, low Recall@k, missing relevant documents, NIM embeddings, or nemotron embed.references/rerank.md for rerank, reranker, cross-encoder, second-stage retrieval, acceptable recall but poor top-rank ordering, low nDCG with good Recall, or nemotron rerank.-c nemotron-3 for Nemotron 3 Embed, -c llama for Llama Nemotron Embed, or -c nemotron-3.5 for Nemotron 3.5 Embed with text, images, or paired documents.-c default for Llama Nemotron Rerank or -c nemotron-3.5 for Nemotron 3.5 Rerank.nemotron <family> info if model identity is unclear. Read the selected profile's section in the family reference before composing commands.artifact_root through every stage; never combine artifacts from different profiles.src/nemotron/recipes/<embed|rerank>/src/nemotron/cli/commands/<embed|rerank>/src/nemotron/recipes/<family>/stage*/config/<profile>.yamluv run nemotron <family> --help, uv run nemotron <family> <stage> -c <profile> -dCheck only the prerequisites for the requested stage:
uv sync --python 3.12 at the checkout root; preserve isolated stage environments. Skip synchronization if that environment is already prepared.NVIDIA_API_KEY and the selected profile's model-role configuration.nemotron-3 embedding profile skips this stage; Nemotron 3.5 has no export profile.env.toml profile for --run or --batch; load references/remote.md when remote scheduling, logs, or GPU placement matter.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>-c and -d options work with run, even when they are absent from run --help output. Confirm with run -c <model-profile> -d ... when unsure.uv run --no-sync ... --help or uv run --no-sync ... -d can avoid unexpected dependency sync during read-only checks.CUDA_VISIBLE_DEVICES=<ids>. For Docker deployment, select the host GPU explicitly with gpus='device=0', replacing 0 with the requested device; CUDA_VISIBLE_DEVICES in the shell does not select the container's GPU. For --run or --batch, configure scheduler resources such as gpus_per_node in the selected env.toml profile and let the scheduler assign devices; do not assume submit-shell CUDA_VISIBLE_DEVICES propagates remotely.uv run nemotron <family> run -c <profile> --from <stage> --to <stage>. Check the family reference for profile-specific stage and executor restrictions. Stop at evaluation before choosing export or deployment.Localize the failing stage, then inspect its config, required inputs, output
directory, and corresponding CLI wrapper or run_uv.py. Use the family reference's
recovery guidance before rerunning or replacing artifacts.
Select only the guidance needed for the chosen profile and stage. All bundled references are linked here; the individual guides contain procedures and contracts.
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 evaldb6312b2d2aac53a341afd6b45c7784ee966b47c. Verify commands, flags, defaults, and output paths against the selected runtime before execution.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.
NVIDIA-NeMo/Nemotron
6442e0f
Also appears in
last in sync Sep 6, 2026
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.