Skip to main content
Retrieve with quality scoring — filter low-quality chunks and rerank before the agent answers.
The user asks a question; retrieval scores and filters chunks before the agent answers from high-quality sources.

How It Works

Quick Start

1

Simple Usage

Enable reranking on the agent’s knowledge base:
2

With Configuration

Filter memory search by quality score:

How It Works

Quality spans retrieval and memory:

Configuration Options

KnowledgeConfig (retrieval)


Best Practices

Reranking adds an LLM call — disable for high-throughput pipelines.
Raise retrieval_threshold to 0.6–0.7 when documents overlap heavily.
Use Task(quality_check=True) so only high-quality outputs enter long-term memory.
Pass custom weights to compute_quality_score() — weight accuracy higher for factual Q&A.

Quality Checking

Automatic task output assessment

Knowledge

Knowledge base setup and retrieval