Skip to content

Dev/mahikaw/agentic enhancements#2274

Draft
mahikaw wants to merge 6 commits into
mainfrom
dev/mahikaw/agentic-enhancements
Draft

Dev/mahikaw/agentic enhancements#2274
mahikaw wants to merge 6 commits into
mainfrom
dev/mahikaw/agentic-enhancements

Conversation

@mahikaw

@mahikaw mahikaw commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

Description

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

mahikaw added 4 commits June 26, 2026 17:06
The --agentic path wrapped the run in quiet_capture(), which discards stdout/
stderr on success, so a multi-step ReAct query produced no feedback. Mirror the
`pipeline run` logging setup (logging.basicConfig at INFO; defaults to stderr) so
the operators' existing per-query/step/tool-call logs surface, while stdout stays
clean JSON. Dense path unchanged.

Signed-off-by: Mahika Wason <mwason@nvidia.com>
Agentic retrieval reduced each hit to {doc_id,text,score} at the agent boundary
and returned bare doc_ids, unlike the dense path which returns full RetrievalHit.
Cache the full hit (keyed by doc_id) in _retrieve_for_agent, then re-hydrate the
selected doc_ids at output time so agentic_query_documents returns RetrievalHit
metadata (text/source/page_number/pdf_page/metadata/...) plus the agentic
annotations (doc_id/rank/result_source). Addresses review feedback (jperez999).

Signed-off-by: Mahika Wason <mwason@nvidia.com>
--agentic-llm-model is no longer required: it defaults to
nvidia/llama-3.3-nemotron-super-49b-v1.5 (also settable via the
NEMO_RETRIEVER_AGENTIC_LLM_MODEL env var), so --agentic works standalone.

Signed-off-by: Mahika Wason <mwason@nvidia.com>
These retrieval-shaping flags were silently dropped in agentic mode. Thread them
from QueryRetrievalOptions into AgenticRetrievalConfig and forward to the per-hop
Retriever.query call (candidate_k floored at the hop's top_k), matching how the
dense path applies them.

Signed-off-by: Mahika Wason <mwason@nvidia.com>
…nhancements

# Conflicts:
#	nemo_retriever/src/nemo_retriever/cli/query/options.py
@copy-pr-bot

copy-pr-bot Bot commented Jun 30, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@mahikaw mahikaw force-pushed the dev/mahikaw/agentic-enhancements branch from dea4482 to fed8ce0 Compare June 30, 2026 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant