AgentStack Docs

Configure retrieval

Choose how an agent searches its knowledge, tune confidence guidance, and test the result against real questions.

Open Sources → Retrieval to configure how one agent searches its selected knowledge. The page has an explicit Save Retrieval Settings action. Start with the defaults: Standard mode, a 30% Confidence Threshold, the Gemini 3.5 Flash search-model default, and 10 maximum documents where deep search is used.

Set the confidence threshold

The threshold ranges from 0% to 100%. It is a guidance threshold, not a refusal switch. When retrieval returns no result or a score below the threshold, AgentStack guides the agent to acknowledge that it may not have enough information and offer further help. Raise it only when low-confidence answers are genuinely unhelpful; test known and edge-case questions after changing it.

Choose a mode

Standard is fast embedding-based search and is available on every plan. Hybrid runs Standard first and uses a deeper step when confidence is low; it is available on Standard and above. Deep Search reads full documents and follows cross-references. Auto classifies a question and currently chooses Standard or Hybrid. Deep Search and Auto are available on Pro and Enterprise.

Hybrid invokes its deeper step only when Standard confidence is 80% or lower. If deep search fails, Hybrid retains its Standard result; a Deep Search failure falls back to Standard. Auto does not independently choose Deep Search, so treat it as automatic Standard-versus-Hybrid selection.

Deep-search controls

For a non-Standard mode that is available to the plan, the page shows Search Model and Max Documents. The document count ranges from 1 to 50. The picker lists several provider models, but the page does not make a per-model plan or cost promise; choose a model only after a controlled evaluation.

Save the configuration and compare the same prompts in Playground. Retrieval tuning cannot repair a source that is missing, stale, or contradictory; inspect Sources first.

On this page