https://retellai.com/?utm_source=discord&utm_medium=seo logo
how to fix incorrect knowledge base retrievals aft...
# ❓・ai-evy-support
x
@AI Evy how to fix incorrect knowledge base retrievals after asking a second question
a
Thanks for tagging me @xmangomelon. I'll look through relevant sources and get back to you shortly.
### Answer Based on the sources, this appears to be a known issue with knowledge base retrieval in Retell AI, particularly with conversation flows [(1) ]() . Several users have reported that knowledge base retrieval works for the first question but fails on subsequent questions . Here are the documented troubleshooting approaches: For Conversation Flow Issues: - Knowledge base retrieval may not work consistently in conversation flows, especially after the first question - Some users report that web pages configured in knowledge bases are not being consulted properly, while uploaded documents work correctly General Troubleshooting Steps: - Ensure your knowledge base is properly linked to your agent - Try re-indexing the data if retrieval isn't working - Check that your knowledge base status is "complete" rather than "in_progress" [(2) ]() Best Practices for Knowledge Base Setup: - Use markdown format for sources with clear paragraphs - Group relevant information together in chunks - Avoid ambiguity and use specific references like names and dates rather than terms like "it" or "this" - Structure your content so each chunk contains specific references that can be understood without prior context Monitoring Knowledge Base Usage: After calls end, you can check the
knowledge_base_retrieved_contents_url
in the call response to see what content was actually retrieved [(3) ]() . This can help you understand if the issue is with retrieval or with the content structure . If these steps don't resolve the issue, you may need to contact support with specific call IDs for further investigation, as this appears to be an ongoing technical issue with the platform [(1) ](
com/channels/1186424376300679209/1352014353922002975) .
​ To learn more, see the sources I considered: [[1] Knowledge base retrieval is not happening](https://discord.com/channels/1186424376300679209/1352014353922002975) [[2] Knowledge Base](https://docs.retellai.com/build/knowledge-base) [[3] Update Call](https://docs.retellai.com/api-references/update-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
x
how do i bug fix this is there anything i can add to my prompt
@AI Evy how do i bug fix this is there anything i can add to my prompt
a
Thanks for the follow-up, @xmangomelon. I'll get back to you soon.
### Answer Based on the available sources, the knowledge base retrieval happens automatically without requiring specific prompts [(1) ]() . The system automatically retrieves information from the knowledge base before responding, using the transcript so far to find the most relevant chunks . However, there are some technical considerations for debugging knowledge base issues: File Format Issues: One documented bug relates to file format mismatches [(2) ]() . If you're uploading XML files with
.md
extensions, they may be processed incorrectly as markdown format . Ensure you use the correct file extension (like
.xml
for XML files) for better performance . Knowledge Base Configuration: You can configure knowledge bases in your agent's basic settings [(3) ]() . The knowledge base feature works by chunking your sources, embedding them, and storing them in a vector database [(1) ]() . During calls, it uses the transcript to find relevant chunks and feeds them to the LLM as context . Monitoring Retrieval: To debug what's actually being retrieved, you can check the
knowledge_base_retrieved_contents_url
field in your call responses [(4) ]() [(5) ]() [(6) ]() . This URL contains the respond ID and retrieved contents related to each response, allowing you to verify what information was actually pulled from your knowledge base [(4) ]() [(5) ]() . The sources don't indicat
e that adding specific prompts will fix knowledge base retrieval issues, as the retrieval process is automatic [(1) ]() . The debugging should focus on proper file formatting, knowledge base configuration, and monitoring the actual retrieval results through the API responses.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.