Skip to main content

Overview

When KnowledgeBase is used as context, you can fine-tune retrieval behavior directly on the Task. These parameters control how many results are returned, how they’re ranked, and what minimum quality threshold to enforce.

Available Parameters

Controlling Result Count

Increase top_k when you need comprehensive context, decrease it for focused answers:

Setting Similarity Threshold

Filter out low-quality matches by setting a minimum similarity score:
Control how dense vector search and full-text search are blended:

Metadata Filtering

Scope search to specific documents or categories using metadata filters:

Combining Parameters

All parameters can be combined for precise control: