Source Citations
Source citations show users where the information in responses comes from, building trust and enabling verification.
Source Settings
show_sourcesbooleandefault: trueWhether to display source references with responses
source_display_modestringdefault: expandableHow sources are displayed: inline, footer, or expandable
max_sources_to_showintegerdefault: 5Maximum number of sources to display (1-20)
include_confidence_scoresbooleandefault: falseShow relevance scores alongside sources
Display Modes
Expandable (Default)
Sources are hidden behind a collapsible section. Users can click to view citations.
- Clean interface, doesn't clutter responses
- Users can easily verify when needed
- Best for general use cases
Our return policy allows returns within 30 days of purchase...
View 3 sources
- 📄 Return Policy - Help Center
- 📄 FAQ - Refunds and Returns
- 📄 Customer Service Guide
Footer
Sources are always visible at the bottom of each response.
- Transparent — users always see where info comes from
- Good for compliance-sensitive applications
- Takes more space in the interface
Our return policy allows returns within 30 days of purchase...
- 📄 Return Policy - Help Center
- 📄 FAQ - Refunds and Returns
Inline
Source references are embedded directly in the response text.
- Academic/research style citations
- Clear attribution for each fact
- Best for documentation or research applications
Our return policy allows returns within 30 days of purchase [1]. Items must be in original condition [2]...
Confidence Scores
When enabled, each source shows its relevance score (0-100%). This helps users understand how well each source matched their query.
Sources:
- 📄 Return Policy - Help Center (94%)
- 📄 FAQ - Refunds (87%)
- 📄 Shipping Guide (62%)
When to show scores
Confidence scores are most useful for internal tools, research applications, or when users need to evaluate source quality. For customer-facing bots, they may add unnecessary complexity.
Source Information
Each source citation includes:
- Title: Document or section title
- Data source: Where it came from (Notion, PDF, etc.)
- URL: Link to original document (if available)
- Snippet: Preview of matched content
Best Practices
For Customer Support
- Use expandable mode to keep interface clean
- Show 3-5 sources maximum
- Disable confidence scores for simplicity
For Documentation
- Use inline or footer mode for transparency
- Include more sources (5-10)
- Enable confidence scores for power users
For Compliance
- Use footer mode — always visible
- Enable confidence scores for audit trails
- Link to original documents when possible
API Response Format
Sources are included in API responses:
{
"response": "Our return policy allows...",
"sources": [
{
"rank": 1,
"title": "Return Policy",
"dataSourceName": "Help Center",
"dataSourceType": "web",
"sourceUrl": "https://help.example.com/returns",
"content": "...returns within 30 days...",
"score": 0.94
}
]
}Disabling Sources
If you don't want to show sources (e.g., for a conversational bot where citations feel unnatural), set show_sources: false.
Transparency
Consider the trade-off: hiding sources removes transparency but may improve user experience for casual conversations. For factual or support contexts, sources build trust.

