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)
Memory search
Best Practices
Enable rerank for accuracy-critical tasks
Enable rerank for accuracy-critical tasks
Reranking adds an LLM call — disable for high-throughput pipelines.
Set retrieval_threshold for noisy corpora
Set retrieval_threshold for noisy corpora
Raise
retrieval_threshold to 0.6–0.7 when documents overlap heavily.Combine with task quality_check
Combine with task quality_check
Use
Task(quality_check=True) so only high-quality outputs enter long-term memory.Weight metrics for your domain
Weight metrics for your domain
Pass custom
weights to compute_quality_score() — weight accuracy higher for factual Q&A.Related
Quality Checking
Automatic task output assessment
Knowledge
Knowledge base setup and retrieval

