https://retellai.com/?utm_source=discord&utm_medium=seo logo
For knowledge base, it says that "Retrieved knowle...
# ❓・ai-evy-support
r
@AI Evy For knowledge base, it says that "Retrieved knowledge base content will be appended to the LLM prompt under the header ## Related Knowledge Base Contexts." but, with subsequent turns and retrievals, is that content replaced with the most recent retrieval or doe they continue to append more chunks to the prompt?
a
Thanks for tagging me @Roell. I'll look through relevant sources and get back to you shortly.
### Answer --- The documentation confirms that retrieved knowledge base content is appended under the header
## Related Knowledge Base Contexts
. [(1) ]() However, I don't have explicit information in the available sources about whether content from subsequent turns replaces the previous retrieval or accumulates with each turn. What the documentation does state is that during the call, "when the agent is about to respond, it will use the transcript so far (prompt is not included) to find the most relevant chunks from the knowledge base, and feed them to the LLM as context." This suggests retrieval happens fresh for each response based on the current transcript, but doesn't explicitly clarify the append vs. replace behavior across turns. Check out these potentially useful sources: - [Knowledge Base]() Would you like me to provide a general answer based on typical RAG implementation patterns, or would you prefer to reach out to Retell support for confirmation on this specific behavior?
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Knowledge Base](https://docs.retellai.com/build/knowledge-base) ​
r
Please reach out to Retell support - I need to understand if I need to memorialize retrievals into dynamic variables or metadata, to avoid the agent changing it's point of reference over the call.