Retrieval

Open in CMS

The Retrieval page contains the technical configuration that controls whether and how the agent retrieves and learns from your knowledge base. Most settings here do not need to change for general use, but tuning them for your specific content and query patterns can noticeably improve answer quality.

Navigate to Knowledge β†’ Retrieval in the left sidebar. The CMS lists this page under Knowledge; in these docs it belongs to the Fine-Tune Answer Quality stage. The one exception is the Enable Reference switch described below: turn it on as soon as you start adding knowledge.

For Atlas, Kirana Group's operations assistant, two rules guide this page. First, Enable Reference and Restrict Answer both stay on, so Atlas answers only from Kirana's SOPs and never guesses a rule. Second, you change the search settings only when an answer misses a section of an SOP, and then one setting at a time.


Before you start

  • Add and process your knowledge sources in Teach Your Agent (Documents, Websites, Videos).
  • Prepare a short list of test questions, including a few the agent currently answers badly. You will use them to judge every change. For Atlas: "Who has to approve a project worth $2.5 million?" and "What do I need to attach to a USD 400,000 capex request?".

Reference

These settings control whether the agent draws on your Knowledge base when forming answers.

Reference card with Enable Reference switched on (helper text: allows the agent to answer using your organization's documents and videos for accurate, context-specific responses) and Restrict Answer switched on (helper text: limits the agent's answers to your organization's knowledge base to ensure controlled and reliable responses)

Enable Reference

When enabled, the agent searches references derived from your uploaded Knowledge content (documents, videos, and websites) before responding. This allows it to give accurate, context-specific answers grounded in your own content rather than relying solely on the base AI model's knowledge.

Disable this only if your agent is intended for general-purpose conversation with no knowledge base of its own.

How content becomes references: Every document, video, and website you add through the Knowledge menu is parsed and broken into text chunks. These chunks are what the agent actually searches: they are the references. Uploading content is a prerequisite for reference-based answers to work.

If you clicked Yes, Enable when you saved your first document, both switches on this card are already on. See Documents.

Restrict Answer

Only available when Enable Reference is turned on.

SwitchWhat the agent doesHelper text shown under the switch
Off (default)Uses your knowledge as its main source, but may also answer from information outside the knowledge base."Allow the agent to respond using information from outside the knowledge base."
OnAnswers only from your knowledge base (and the results of its tools, such as web search when that is enabled). If the references cannot answer the question, it apologizes that it cannot answer instead of guessing or using general knowledge."Limits the agent's answers to your organization's knowledge base to ensure controlled and reliable responses."

The helper text under the switch describes the current state, so it changes when you flip the switch. Seeing "Allow the agent to respond using information from outside the knowledge base" simply means Restrict Answer is off.

Turning Enable Reference off also turns Restrict Answer off (and switches off citations).

Use this when accuracy and traceability to your documents is critical, for example legal, compliance, or policy agents. Atlas keeps it on: when someone asks about a rule that is not in Kirana's SOPs, Atlas says so and points to the person who can decide, instead of inventing an answer.


Content Scope

This card lets you restrict which content types the agent draws from during retrieval. By default, the agent searches across all content types in the knowledge base.

Under Content Types Configuration, click Add New Content Type to add a row, and type a content type in it (the placeholders suggest FAQ, Policy, and Documentation). Remove a row with the delete button next to it. When content types are defined here, the agent only retrieves chunks that match one of the listed types. Leave this list empty to allow all content types.

Content Scope card with Content Types Configuration, its helper text saying the agent only uses content of the defined types and that an empty list allows all content types, and the Add New Content Type button

Use content type filtering when your knowledge base contains a mix of materials (for example SOPs, FAQs, and vendor catalogs) and you want the agent to scope its searches to specific categories. Atlas leaves the list empty, so it searches all of its sources.


These settings directly control how many results the agent considers per query and how strictly it matches against the user's question.

Search card with Reference per-Query set to 3, the Search Tolerance slider at 5 on a scale of 1 to 10, and the Tolerance Increment slider at 2 on a scale of 1 to 3
SettingDescription
Reference per-QueryThe number of chunks retrieved and fed to the AI per user query. Higher values give the AI more context but increase response latency and token cost. Default for a new agent: 3.
Search ToleranceA slider from 1 to 10 that controls how closely chunk content must match the query. Lower values require a tighter match and may return no results for ambiguous queries; higher values cast a wider net but may include loosely relevant chunks. The screenshot shows 5.
Tolerance IncrementA slider from 1 to 3. When no results are found at the current tolerance, the search widens step by step by this amount until results are found or the maximum tolerance is reached. The screenshot shows 2.

Tuning guidance

ScenarioRecommended adjustment
Agent often says it cannot answer questions you expect it to answerIncrease Search Tolerance or Tolerance Increment
Agent returns off-topic answersDecrease Search Tolerance
Agent answers are shallow or missing detailIncrease Reference per-Query
Response times are too slowDecrease Reference per-Query

Example with Atlas. Someone asks "What do I need to attach to a USD 400,000 capex request?". Atlas names form KG-F12 but leaves out the three vendor quotations that section 4 of SOP-FIN-007 requires above USD 250,000. First check in Chunks that the section 4 text exists and is Active. If it is, raise Reference per-Query from 3 to 4, save, and ask again in a fresh conversation. Leave Restrict Answer on while you do this.


Reranker

The reranker adds a second scoring pass after the initial vector search. Vector search is fast but operates on embedding similarity, which can surface chunks that are topically adjacent without being the best answer to the specific question asked. The reranker reads the actual text of each candidate chunk against the query and re-orders them by contextual relevance before the final selection is passed to the AI.

The effect is better answer precision, especially for knowledge bases with many similar-sounding chunks, without needing to lower Search Tolerance or increase Reference per-Query.

Reranker card with Enable Reranker switched off, Reranker AI Model set to Organization default (β†’ Smart) with its description and estimated credit ratio 3x, and Documents to Rerank set to 10 with the note that it must be greater than the Reference per-Query limit

How it works

  1. The vector search retrieves a larger candidate pool, controlled by Documents to Rerank.
  2. The reranker AI model scores every candidate against the query.
  3. The top Reference per-Query chunks (from the Search card) are selected from that re-ranked pool.
  4. Those chunks are sent to the AI to generate the final answer.

Documents to Rerank must be greater than Reference per-Query. The reranker needs a wider pool than the final selection: for example, retrieve 10 candidates, rerank them, then pass the best 3 to the AI.

Settings

SettingDescription
Enable RerankerTurns the reranking pass on or off. Off by default. When off, the top chunks from the vector search are used as they are.
Reranker AI ModelThe AI model used to score candidates. It can be changed only while the reranker is on. Default: Organization default, which uses the model your organization has set (the arrow shows which one, for example β†’ Smart).
Documents to RerankHow many candidates the vector search retrieves for the reranker to score. Must be a positive whole number greater than Reference per-Query. Default: 10.

When to enable the reranker

Enable it when:

  • Your knowledge base has many chunks with similar vocabulary, for example a large FAQ or a library of SOPs that all talk about approvals
  • The agent retrieves technically relevant chunks but misses the most directly applicable one
  • Answer quality is inconsistent despite adequate Search Tolerance settings

Leave it disabled when:

  • Your knowledge base is small and well structured, so vector search alone is enough. Atlas, with one SOP, a web page and a video, leaves it off.
  • Latency is a priority: the reranking pass adds an extra AI model call per query

Training

SettingDescription
Content Training AI ModelThe AI model used for knowledge base training and embedding generation. Default: Organization default (in the screenshot β†’ Thinker). Changing this affects how new content is indexed; existing indexed content is not automatically re-indexed.
Training card with Content Training AI Model set to Organization default (β†’ Thinker), described as a strong reasoning model with an estimated credit ratio of 90x

Saving changes

Click Save at the bottom right and confirm. Retrieval settings are part of the agent's draft: the Preview uses them right away, and your live agent uses them after you click Publish (see Preview and Publish Changes). Changes to the Training card affect only newly indexed content; existing embeddings are not updated.


Check the result

Change one setting at a time. After each save, click the reload button in the preview panel on the right side of the page and ask your test questions again:

  • Answers should use your sources (and cite them, if citations are on). For Atlas, "Who has to approve a project worth $2.5 million?" should still return Group Risk Office review, Regional Director, and CFO, with SOP-FIN-007 as the source.
  • With Restrict Answer on, questions outside your knowledge should not get answers made up from general knowledge.
  • If an answer is still missing, check in Chunks whether the right chunk exists, is active, and its text is correct.

For a repeatable before-and-after comparison across many questions, use Test Automation.


Next steps

  • Chunks: inspect and correct the chunks the agent retrieves with your current settings (next step).
  • Documents: the primary source of content that is trained and searched.
  • Websites: web-extracted content subject to the same search settings.

Coming from the Chat page? Enable Reference and Restrict Answer used to live on Chat. They are now here.