https://retellai.com/?utm_source=discord&utm_medium=seo logo
do knowledge bases cost tokens and also whats the ...
# ❓・ai-evy-support
h
@AI Evy do knowledge bases cost tokens and also whats the best practices for knowledge bases should i put the data in a google doc or what
a
Thanks for tagging me @hans_70884. I'll look through relevant sources and get back to you shortly.
### Answer Yes, knowledge bases do incur token usage—when the agent retrieves content from a knowledge base and sends it to the LLM, those tokens count toward your usage and billing [(1) ]() . As for best practices: - Use well-structured Markdown (.md) files instead of Google Docs or plain text. Markdown with clear headings and short sections is chunked and retrieved more accurately [(2) ]() [(3) ](

▾

) . - Supported formats for file uploads include .md, .pdf, .docx, .txt, and others. Each file can be up to 50MB, and you can upload up to 25 files per knowledge base [(2) ]() . - For web sources, you can add URLs directly, and for custom content, you can paste text snippets . - Group related info in the same section, use short paragraphs, and avoid walls of text. For tables or images, add supporting explanatory text to keep context together [(2) ]() [(3) ](

▾

) . Google Docs are not directly supported as a source—you’d need to export your content to a supported format like Markdown or PDF, then upload it [(2) ]() .
​ To learn more, see the sources I considered: [[1] Will knowledge base use tokens?](https://discord.com/channels/1186424376300679209/1375421036291428452) [[2] Knowledge Base](https://docs.retellai.com/build/knowledge-base) [[3] Master The Future of Voice AI - Conversation Design & Agent Persona](

https://www.youtube.com/watch?v=42V0bDQIsb0▾

) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
h
whats teh difference then witha knowledge base does it add to my assistants costs? if so why wouldnt i use a prompt to store info instead @AI Evy also be spefici as to what i shoudl store the info in
a
Thanks for the follow-up, @hans_70884. I'll get back to you soon.
### Answer Using a knowledge base does add to your assistant's costs, because when your agent retrieves content from the knowledge base and sends it to the LLM, those tokens are counted toward your usage and billing [(1) ]() [(2) ]() . The difference between prompt and knowledge base usage is: - Prompts are static instructions or information directly embedded in your agent’s configuration. They’re best for concise, always-relevant instructions, rules, or short lists. - Knowledge bases are designed for larger, more dynamic content—like FAQs, product details, or troubleshooting guides—that would be too long or unwieldy to fit into a prompt . The system automatically retrieves only the most relevant chunks from the knowledge base for each response, improving both accuracy and efficiency. Best practice for storing info: - Use well-structured Markdown (.md) files with clear headings and short sections for best retrieval. Retell AI supports uploading .md, .pdf, .docx, .txt, and more . - Google Docs aren’t directly supported; export them as Markdown or PDF before uploading [(1) ]() . - For website content, add URLs; for custom info, paste text directly . - Group related info together, use short paragraphs, and avoid long walls of text . In summary: use prompts for short, static instructions; use knowledge bases for larger, frequently updated, or reference-heavy content. Knowledge base usage incurs token costs when its content is retrieved and sent to the LLM [(1) ]() [(2) ]() .
​ 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.