### 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) ](
) .