https://retellai.com/?utm_source=discord&utm_medium=seo logo
should knowledge base be in
# ❓・ai-evy-support
p
@AI Evy should knowledge base be in .pdf file or word file?
a
Thanks for tagging me @papakojo_12. I'll look through relevant sources and get back to you shortly.
### Answer Retell AI's Knowledge Base supports both PDF and Word files, along with other formats [(1) ]() . The Knowledge Base supports popular formats, including PDF, TXT, and DOCX . You can upload files in supported formats (e.g., PDF, DOCX, or CSV) , with file sizes limited to less than 100MB [(2) ]() . When uploading files through the API, you can use the
knowledge_base_files
parameter to add files to your knowledge base [(3) ]() :
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
async function main() {
 const knowledgeBaseResponse = await client.knowledgeBase.addSources({
 knowledge_base_texts: [
 {
 text: "Hello, how are you?",
 title: "Sample Question",
 },
 ],
 knowledge_base_urls: [
 "<https://www.retellai.com%22,>
 "<https://docs.retellai.com%22,>
 ],
 knowledge_base_files: [
 fs.createReadStream("../sample.txt") ,
 ],
 }) ;
 console.log(knowledgeBaseResponse.knowledge_base_id) ;
}
main() ;
The API allows you to upload up to 25 files at once, with each file limited to 50MB . So you can use either PDF or Word (DOCX) files for your knowledge base - both formats are fully supported.
​ To learn more, see the sources I considered: [[1] Empower AI with Dynamic Knowledge Bases | Retell AI](https://www.retellai.com/features/knowledge-base) [[2] Simplify Support with Retell AI’s Knowledge Base | Retell AI](https://www.retellai.com/blog/knowledge-base-feature) [[3] Add Knowledge Base Sources](https://docs.retellai.com/api-references/add-knowledge-base-sources) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.