NeMo Retriever
Use the retriever CLI. Prefer it over hand-built retrieval
code.
Install only when missing
Create a project-local Python environment:
Install the package variant required by the workflow:
Do not clone NeMo Retriever or install from a Git URL. If retriever is already
on PATH, use that installation.
Local workflow
Build a local index:
Query it:
Use retriever ingest batch only for an explicitly requested Ray batch run.
Service workflow
Use these forms for an already deployed Retriever service:
Set NEMO_RETRIEVER_API_TOKEN when the service requires Bearer authentication.
Do not pass local LanceDB flags to the service commands.
Rules
- Use the existing index or service when one is provided; do not rebuild it.
- Use
retriever ingest --help,retriever query --help, or the relevantbatch/servicehelp for options not shown here. - Answer only from retrieved evidence; preserve source and page metadata when the task requests citations.
