### Answer
To use knowledge bases in Retell AI, follow these steps:
1. Create a Knowledge Base [(1) ](
)
Navigate to your dashboard, select the "Knowledge Base" tab, and click "Add" . You can add three types of sources :
- **URL**: Import content from web pages (supports single pages or entire websites)
- **File**: Upload documents in formats like PDF, TXT, DOCX, etc. (max 50MB)
- **Text**: Add custom content by pasting or typing directly
2. Connect to Your Agent
Open the agent editor, locate the "Knowledge Base" section, and select the knowledge base items you want to use .
3. Configure Retrieval Settings
After connecting a knowledge base, you can adjust:
- **Chunks to retrieve**: Max number of chunks (1-10, default: 3)
- **Similarity Threshold**: How strict matching is (default: 0.6)
4. Optional: Node-Level Knowledge Base
For Conversation Flow agents, you can configure knowledge bases at the node level for more specific context . Click the Conversation Node you want to configure and add knowledge base items .
Best Practices :
- Prefer
.md
(Markdown) files over
.txt
for better chunking and retrieval
- Use clear, descriptive headings and keep sections focused
- Group related information within the same section
- Use specific references (names, dates, units) and avoid ambiguous pronouns
The agent will automatically retrieve information from the knowledge base during calls without needing prompt changes . Retrieved content appears under the header "Related Knowledge Base Contexts" .
**