https://retellai.com/?utm_source=discord&utm_medium=seo logo
why don't you guys use reranker
# ❓・ai-evy-support
n
@AI Evy why don't you guys use reranker?
a
Thanks for tagging me @Nameless. I'll look through relevant sources and get back to you shortly.
​ To learn more, see the sources I considered: [[1] Create Retell LLM](https://docs.retellai.com/api-references/create-retell-llm) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer I don't have information about why Retell AI doesn't use a reranker, and none of the sources I have mention rerankers or the reasoning behind that design choice. What I can say is how knowledge base retrieval is configurable. The Create Retell LLM API accepts a
kb_config
object with
top_k
and
filter_score
settings, which control how many results are retrieved and the score threshold used to filter them:
Copy code
json
"knowledge_base_ids": [
  "<string>"
],
"kb_config": {
  "top_k": 3,
  "filter_score": 0.6
},
[(1)]() If you're trying to improve retrieval quality, tuning
top_k
and
filter_score
is the documented lever I can point to. Check out these potentially useful sources: [Create Retell LLM](), [Documentation](), [Hire certified Retell partner]() If you'd like, I can try a general answer about rerankers based on my own knowledge instead.
n
@AI Evy how can you ensure each chunk is a good chunk
a
Thanks for the follow-up, @Nameless. I'll get back to you soon.
### Answer You can't directly control how chunks are split, but you can shape your source content so chunks come out cohesive, and you can verify what was retrieved on each turn. Format sources so chunks stay cohesive - Prefer
.md
files over
.txt
. Well-structured Markdown is chunked and retrieved more accurately.[(1)]() - Use clear, descriptive headings and keep each section focused and short. If a section gets long, split it into multiple sections.[(1)]() - Write short paragraphs and lists to separate concepts, and avoid walls of text.[(1)]() - Group related information in the same section so chunks stay cohesive.[(1)]() - Avoid ambiguous references like "it" or "this", since the neighboring chunk may not be retrieved with it. Include names, dates, and units.[(1)]() - Tables and image-heavy content can retrieve less reliably. Add explanatory text so related information stays in the same chunk.[(1)]() - Use the knowledge base for supporting information, and put agent instructions in the prompt.[(1)]() Tune retrieval Under the agent's Advanced Settings, you can adjust "Chunks to retrieve" (1-10, default 3) and "Similarity Threshold" (default 0.6). More chunks give the LLM more context but lengthen the prompt and can hurt generation quality.[(1)]() You can also set a Knowledge Base Instruction (up to 500 characters) to guide how the search query is built from the recent conversation. It shapes the query only and does not filter or rewrite chunks.[(1)](
dge-base) Verify chunk quality Open the call in Call History, go to the transcript, and select the Knowledge Base Retrieval link above an agent message. It lists each retrieved chunk, which is the exact text passed to the LLM.[(1)]() - If the right chunk wasn't retrieved, raise Chunks to retrieve, lower the Similarity Threshold, or improve your source formatting.[(1)]() - If the chunk was retrieved but ignored, fix the agent's prompt.[(1)]() Limits to know about Retrieval is semantic, so only a limited number of relevant chunks surface per query. For complete, finite lists (like a full menu), putting the items directly in the prompt is the recommended approach.[(2)]()
​ To learn more, see the sources I considered: [[1] Knowledge base setup and retrieval tuning](https://docs.retellai.com/build/knowledge-base) [[2] The knowledge base is useless.](https://discord.com/channels/1186424376300679209/1470697086981902513) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.