https://retellai.com/?utm_source=discord&utm_medium=seo logo
Hello, in Conversation flow chat agent config, it ...
# ❓・ai-evy-support
r
@AI Evy Hello, in Conversation flow chat agent config, it looks like it doesn't always use the knowledge base that I provide, either global one or node-level one. How can I ensure that it is always used?
a
Thanks for tagging me @raptor512. I'll look through relevant sources and get back to you shortly.
### Answer When a knowledge base is linked to an agent, the agent will always try to retrieve information from the knowledge base before responding—there's no need to change your prompt for it to trigger, as it's done automatically for every response generation. [(1) ]() However, retrieval depends on similarity matching. During the call, the system uses the transcript so far (prompt is not included) to find the most relevant chunks from the knowledge base. Here are a few things you can adjust to improve retrieval consistency: 1. Adjust KB Retrieval Settings After connecting a knowledge base to your agent, you can configure: - **Chunks to retrieve**: The max number of chunks to retrieve (range 1–10, default: 3) - **Similarity Threshold**: Adjust how strict the system is when matching chunks to the context. A higher setting gives you fewer, but more similar, matches. Default: 0.6. Lowering the similarity threshold may help retrieve content more often if your queries aren't closely matching the KB content. 2. Follow Best Practices for KB Content - Prefer
.md
(Markdown) files over `.txt`—well-structured Markdown is chunked and retrieved more accurately. - Use clear, descriptive headings and keep each section focused and reasonably short. - Write short paragraphs and lists to separate concepts; avoid walls of text. - Avoid ambiguity—include names, dates, units, and avoid ambiguous pronouns like "it" or "this" because prior chunks may not be present. - Group related information within the same section so chunks remain cohesive and relevant. 3. Use Node-Level KB for Specific Topics For Conversation Flow Agents, you can configure knowledge base at the Conversation Node level. Node-level knowledge base will be combined with the agent's global knowledge base to provide more accurate context for
a specific topic. If retrieval still seems inconsistent, consider restructuring your KB content so the information more closely matches how users phrase their questions during the conversation.
​ To learn more, see the sources I considered: [[1] Knowledge Base](https://docs.retellai.com/build/knowledge-base) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the feedback, glad I was helpful.