Skip to main content
Settings

Context

Set how many context passages are retrieved from the knowledge base per interaction.

Context

The Context tab tunes how the agent retrieves information from its knowledge base (RAG).

Reach it through the Settings icon in the editor's side navigation, Context tab.


Top K (RAG)

How many of the most relevant passages are pulled from the Context documents on each interaction. Range: 1 to 20 (default: 5).

ValueWhat it does
LowerLess context sent to the model — more direct answers, fewer tokens
HigherMore context sent — better-grounded answers, more tokens
tip

Raise Top K when the agent has to draw on different parts of a long document. For simpler uses, the default of 5 is usually enough.