https://retellai.com/?utm_source=discord&utm_medium=seo logo
<@1145576664366055464> Is knowledge based on vecto...
# ❓・ai-evy-support
e
@AI Evy Is knowledge based on vector DB?
a
Thanks for tagging me @elias07070. I'll look through relevant sources and get back to you shortly.
### Answer Yes, Retell AI's Knowledge Base is based on vector database technology [(1) ]() . During the creation of knowledge bases, the system chunks the source content, embeds them, and stores them into a vector database . When an agent responds during a call, it uses the transcript to find the most relevant chunks from the knowledge base using vector similarity search . The system automatically retrieves relevant information from the knowledge base before responding, without requiring changes to your prompt . The retrieval process is optimized for real-time use with generally under 100ms of latency impact .
​ 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.
e
Can you tell which documents are best to create a good knowledge base, think about business process documents in pdf VS full web scrape in html or rather in json, etc.
@AI Evy Can you tell which documents are best to create a good knowledge base, think about business process documents in pdf VS full web scrape in html or rather in json, etc.
a
Thanks for the follow-up, @elias07070. I'll get back to you soon.
### Answer Based on the documentation, here are the best practices for creating effective knowledge bases in Retell AI: ## Supported Document Formats Retell AI supports a wide range of document formats including .pdf, .doc, .docx, .html, .txt, .md, .csv, .xls, .xlsx, and many others [(1) ]() . The maximum file size is 50MB per file . ## Best Practices for Document Types Use markdown format with clear paragraphs - this makes it easier to chunk and retrieve information effectively . For business process documents in PDF, these are well-supported, but the format and structure matter more than the file type itself . For web scraping vs HTML, Retell AI can import content from web pages and supports both single pages and entire websites with automatic updates when content changes [(1) ]() [(2) ]() . ## Format Considerations Avoid tabular data and image data when possible, as it's sometimes hard for the system to recognize the correct data and put relevant information together in one chunk, which might yield suboptimal results [(1) ]() . Group relevant information together in one chunk to improve retrieval accuracy . Use specificity and avoid ambiguity in references - when chunks are retrieved, they should contain specific references like names and dates, and fewer ambiguous terms like "it" or "this" . ## JSON Files Regarding JSON files specifically, there appears to be some uncertainty about official support. One Discord discussion indicates that JSON files don't appear to be officially supported for knowledge base uploads [(3) ]() . ## Recommended Approach For business process docu
ments, PDF format works well as long as you follow the formatting best practices. The key is ensuring your content is well-structured with clear paragraphs and specific references rather than focusing solely on the file format.
​ To learn more, see the sources I considered: [[1] Knowledge Base](https://docs.retellai.com/build/knowledge-base) [[2] Empower AI with Dynamic Knowledge Bases | Retell AI](https://www.retellai.com/features/knowledge-base) [[3] Uploading JSON to knowledgebase](https://discord.com/channels/1186424376300679209/1384543576792371200) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
e
@AI Evy So list me top 3 file types and formattings
a
Thanks for the follow-up, @elias07070. I'll get back to you soon.
### Answer Based on the documentation, here are the top 3 file types and formatting recommendations for creating effective knowledge bases in Retell AI: ## 1. Markdown (.md) Files with Clear Structure [(1) ]() Use markdown format for the source, with clear paragraphs - it will be easier to chunk and is easier to be retrieved . This is the most recommended format because it provides optimal chunking and retrieval performance. ## 2. PDF Files with Well-Structured Content PDF files are well-supported (maximum file size: 50MB per file) , but ensure they follow proper formatting guidelines. Group relevant information together in one chunk to improve retrieval accuracy . ## 3. Web Content via URL Scraping [(1) ]() [(2) ]() Import content from web pages - supports single pages or entire websites with automatic updates when content changes . This method provides dynamic syncing capabilities and eliminates manual work [(2) ]() . ## Key Formatting Guidelines for All Types: - Avoid ambiguity and use specificity in references - when chunks are retrieved, they should contain specific references like names, dates, and fewer ambiguous terms like "it" or "this" [(1) ]() - Avoid tabular data or image data when possible, as it's sometimes hard for the system to recognize the correct data and put relevant information together in one chunk - Group relevant information together in one chunk to improve retrieval accuracy
​ To learn more, see the sources I considered: [[1] Knowledge Base](https://docs.retellai.com/build/knowledge-base) [[2] Simplify Support with Retell AI’s Knowledge Base | Retell AI](https://www.retellai.com/blog/knowledge-base-feature) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
e
@AI Evy when creating knowledge base and use website as data, how does data scraping work on the back-end
a
Thanks for the follow-up, @elias07070. I'll get back to you soon.
### Answer Based on the documentation, here's how website data scraping works on the backend for Retell AI's Knowledge Base: ## Website Scraping Process Scrape from Webpages allows you to upload your website's sitemap, and the system will extract relevant content automatically [(1) ]() . The system supports both single pages and entire websites . ## Backend Processing Steps During the creation of knowledge bases, the system chunks the source content, embeds them and stores them into a vector database [(2) ]() . This process happens automatically when you add website content to your knowledge base. ## Dynamic Updates For the "Scrape from Webpages" method, you can select auto-sync every 24 hours or manually sync anytime [(3) ]() . The knowledge base automatically updates as new information becomes available, ensuring your AI voice agent always has access to the latest content [(1) ]() . ## Sitemap Requirements The system requires a sitemap to scrape website content [(4) ]() . If there is no sitemap, there is currently no way to just add one page at a time . This is standard in other RAG products . ## Content Processing The system will scrape all the text from the website and include it in the retrieval process [(5) ]() . During calls, when the agent is about to respond, it will use the transcript so far to find the most relevant chunks from the knowledge base, and feed them to the LLM as context [(2) ]() . ## Performance Opt
imization The Knowledge Base retrieval latency has been optimized for real-time use cases, so it should generally be under 100ms of latency impact .
​ To learn more, see the sources I considered: [[1] Simplify Support with Retell AI’s Knowledge Base | Retell AI](https://www.retellai.com/blog/knowledge-base-feature) [[2] Knowledge Base](https://docs.retellai.com/build/knowledge-base) [[3] Knowledge base, Verified phone number, Realtime API and more](https://www.retellai.com/changelog/knowledge-base-verified-phone-number-realtime-api-and-more) [[4] Trying to add a websites as a Knowledge Base and getting "Select Site Maps: 0"](https://discord.com/channels/1186424376300679209/1324801030654918729) [[5] Knowledge base feature does not seem to work](https://discord.com/channels/1186424376300679209/1298885502123905067) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.