https://retellai.com/?utm_source=discord&utm_medium=seo logo
Hey, my knowledgebase not working, even though i c...
# ❓・ai-evy-support
a
@AI Evy Hey, my knowledgebase not working, even though i connected it to my flow.
a
Thanks for tagging me @afrah_85175. I'll look through relevant sources and get back to you shortly.
### Answer There are several potential issues that could cause knowledge base retrieval problems in conversation flows [(1) ]() . Based on the available information, here are the key things to check: Knowledge Base Connection: First, verify that your knowledge base IDs are properly configured in your conversation flow [(2) ]() . The conversation flow should include the
knowledge_base_ids
field with your knowledge base IDs :
Copy code
javascript
"knowledge_base_ids": [
 "kb_001",
 "kb_002"
]
Knowledge Base Status: Check that your knowledge base has completed processing [(3) ]() . The knowledge base status should be "complete" rather than "in_progress" or "error" . You can verify this by retrieving your knowledge base details :
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const knowledgeBaseResponse = await client.knowledgeBase.retrieve('kb_1234567890') ;
console.log(knowledgeBaseResponse.knowledge_base_id) ;
Common Issues: According to community reports, there are known issues where knowledge base retrieval may not work consistently in conversation flows [(1) ]() . Some users have experienced problems where web pages configured in knowledge bases are not being consulted, while uploaded files work correctly . Additionally, there may be indexing delays or misconfigured retrieval settings . Troubleshooting Steps: 1. Ensure the knowledge base is properly linked to the conversation flow 2. Try re-indexing the data if possible 3. Test with uploaded documents instead of web URLs to isolate the issue If these steps don't resolve the issue, I'd recommend visiting [Contact Sales]() or [) for additional support. Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Knowledge base retrieval is not happening](https://discord.com/channels/1186424376300679209/1352014353922002975) [[2] Get Conversation Flow](https://docs.retellai.com/api-references/get-conversation-flow) [[3] Get Knowledge Base](https://docs.retellai.com/api-references/get-knowledge-base) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
It is only working in manual web chat
@AI Evy It is only working in manual web chat
a
Thanks for the follow-up, @afrah_85175. I'll get back to you soon.
### Answer If your knowledge base is only working in manual web chat but not during actual phone calls, this suggests the knowledge base retrieval is functioning but may have configuration issues specific to voice interactions [(1) ]() . How Knowledge Base Works in Retell AI: The knowledge base automatically retrieves information during every response generation without needing prompt changes . During calls, the system uses the transcript so far (excluding the prompt) to find the most relevant chunks from the knowledge base and feeds them to the LLM as context . Potential Issues to Check: 1. Knowledge Base Status: Verify your knowledge base status is "complete" rather than "in_progress" or "error" [(2) ]() . You can check this using:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const knowledgeBaseResponses = await client.knowledgeBase.list() ;
console.log(knowledgeBaseResponses) ;
2. Agent Configuration: Ensure your conversation flow properly includes the knowledge base IDs [(3) ]() :
Copy code
javascript
"knowledge_base_ids": [
 "kb_001",
 "kb_002"
]
3. Source Format: The knowledge base works best with markdown format and clear paragraphs [(1) ]() . For tabular or image data, the system might have difficulty recognizing correct data and grouping relevant information . Known Issues: Community reports indicate inconsistent knowledge base retrieval in conversation flows [(4) ]() . Some users experience problems where web pages aren't consulted while uploaded files work correctly . Optimization Settings: Knowledge base retrieval is optimized for real-time use with generally under 100ms latency impact [(1) ]() . The system automatically appends retrieved content to the LLM prompt under the header "///## Related Knowledge Base Contexts" . If the issue persists, visit [Contact Sales]() or [) for additional support.
​ To learn more, see the sources I considered: [[1] Knowledge Base](https://docs.retellai.com/build/knowledge-base) [[2] List Knowledge Bases](https://docs.retellai.com/api-references/list-knowledge-bases) [[3] Get Conversation Flow](https://docs.retellai.com/api-references/get-conversation-flow) [[4] Knowledge base retrieval is not happening](https://discord.com/channels/1186424376300679209/1352014353922002975) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.