Quick Start
1
Declare the retriever and reranker
2
Run it
register_default_adapters() call happens for you before the agent starts (PraisonAI 4.7.9+).Retriever choices
Reranker choices
Choosing a retriever
Choosing a reranker
From the CLI
Same names, one-off from thepraisonai knowledge query sub-command:
Best Practices
Start with basic, upgrade when recall is low
Start with basic, upgrade when recall is low
Use
basic first — it needs no LLM calls or extra installs. Move to fusion only when ambiguous or paraphrased questions miss the right passage.Retrieve wide, rerank narrow
Retrieve wide, rerank narrow
Set
retrieval_k higher than the number of passages you actually want, then let the reranker trim to the best few. A common pairing is retrieval_k: 20 with an llm reranker returning the top 5.Match the reranker to your cost budget
Match the reranker to your cost budget
cross_encoder runs locally with no API cost; llm is highest quality but bills per candidate; cohere is a hosted API. Pick based on whether cost, quality, or zero-dependency matters most.No Python setup needed from YAML
No Python setup needed from YAML
The wrapper entry points auto-wire the built-in adapters, so a name like
retriever: fusion resolves without any register_default_adapters() call. You only call it yourself when using retriever/reranker classes directly from your own Python code.Related
Retrieval from Python
Configure retrieval from Python
Adapter registry
How the adapter registry works

