Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.contextual.ai/llms.txt

Use this file to discover all available pages before exploring further.

Description

Allows the agent to perform a final filtering step prior to generation. When enabled, chunks are checked against the filter prompt and irrelevant chunks are filtered out. This acts like a final quality control checkpoint, helping to ensure that only relevant chunks are passed to the generator. This filter can improve response accuracy and relevance, but also increase the false refusal rate if the configuration is too strict.