https://retellai.com/?utm_source=discord&utm_medium=seo logo
does adding a knowledge base add latency
# ❓・ai-evy-support
h
@AI Evy does adding a knowledge base add latency
a
Thanks for tagging me @hintenjoyer. I'll look through relevant sources and get back to you shortly.
### Answer Adding a knowledge base to your Retell AI agent does add minimal latency [(1) ]() . The knowledge base retrieval latency has been optimized for real-time use cases and should generally be under 100ms of latency impact . The knowledge base feature works by automatically retrieving relevant information during each response generation without requiring any changes to your prompt . During calls, when the agent is about to respond, it uses the transcript so far to find the most relevant chunks from the knowledge base and feeds them to the LLM as context . You can also configure the retrieval settings to balance performance and accuracy by adjusting the number of chunks retrieved (1-10, default: 3) and the similarity threshold (default: 0.6) . Increasing the chunks retrieved gives the LLM more context but also increases prompt length, which can affect generation quality .
​ 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.