retrieval command group is the CLI surface for the retrieval subsystem — the layer between agent queries and your knowledge.
Commands
retrieval search
<query>(positional) — the text to search.--preset <preset-id>— use a saved preset (see below).--k <n>— top-K to return.--method vector|keyword|hybrid|kg_rooted— retrieval mode.--filters <json>— metadata filter expression.--include-subgraph— expand results to include related graph nodes.--graph-expansion— enable knowledge-graph traversal.
--preset, uses the workspace default preset.
retrieval diagnose
Presets
Presets bundle retrieval settings (top-K, weights, filters, reranker) so multiple Agents can share one config.List
Get
Upsert
<id>(positional, required) — the preset’s ID.--name <n>(required) — display name.--config <json>(required) — the full preset config. See Retrieval presets for the field reference.
Delete
Recipes
Iteratively tune a preset
Compare two presets side-by-side
Test retrieval isolation between tenants
Attach a preset via agents sources update
Once a preset is dialed in, attach it to an Agent’s data source:
nora agents for full source attachment options.
What the CLI does NOT do
- Save retrieval results to a dataset — use the app’s Trace view for that (search a trace, add the retrieval step to a dataset).
- Configure grounding graphs directly — grounding is enabled via preset config (
{"grounding": {"graph_id": "..."}}), but graph editing is vianora causal.
Debugging queries
- Add
--jsonfor the raw score breakdown per result. - Try
--method vector, then--method keywordseparately to see which pass is stronger. - If the right chunk exists but doesn’t rank,
retrieval diagnoseon a cluster containing similar queries usually explains why.