Skip to main content
Knowledge only is a setting for an AI agent that must answer from your own documents, such as a policy or a handbook. It is one of the agent’s guardrails, the rules it always follows. With it on, the agent answers only from its knowledge bases and says so when they do not cover a question, instead of filling the gap from the model’s general knowledge. It used to be called strict mode.
Who: the agent’s creator and Admins · Where: Workforce › Agents, then the agent’s Guardrails section · Works on: Enterprise and SaaS

When to use it

Without it, an agent combines what it finds in its knowledge bases with the model’s general knowledge. That suits a general assistant. Switch Knowledge only on when answers must rest on your organization’s documents and be traceable to them, or when general knowledge could mislead. Legal, medical and policy questions are typical cases, because your rules may differ from the usual ones. An assistant for your leave policy is an example: people asking it need your company’s rules. Knowledge and citations explains how an agent finds and cites its sources.

Turn it on

1

Open the agent

On Agents, click the agent to open it in the studio.
2

Edit the guardrails

In the Guardrails section, click Edit and switch on Knowledge only (“Answer only from the knowledge bases and say so when they do not cover a question”).
3

Save and publish

Click Save changes, then Publish in the header. People keep the old behaviour until you publish.
You can also ask the builder for it, for example “answer only from the policy documents”. The Guardrails section then shows the line Knowledge: “Answers only from the knowledge bases; says so when they do not cover a question.” For it to be useful, the agent needs knowledge bases under What it knows, with Knowledge search switched on under What it can do.

How it behaves

Guardrails are added to the agent’s instructions every time it runs. With Knowledge only on, the agent is told to answer only from its knowledge bases and to say so when they do not cover the question. The agent words that reply itself; there is no fixed “no answer” message to set. The agent follows this as an instruction. Nothing filters its answers afterwards, so test it with questions your documents do not cover before you publish.

Guardrails that go well with it

When an agent has no Knowledge only, no Scope and no rule in its instructions for questions it cannot answer, the Checks tab warns “No rule for questions it cannot answer”.
Knowledge only is set in the studio’s Guardrails section. The full form has no switch for it, and saving the full form keeps whatever the studio set.