Overview
When you don’t specifyloaders or splitters, KnowledgeBase automatically detects and creates the optimal components for each source based on file type, content analysis, and your quality preferences.
This means you can pass a mix of PDFs, Markdown, JSON, and code files — and KnowledgeBase will handle each one with the right strategy.
Basic Auto-Detection
Simply omitloaders and splitters — KnowledgeBase figures out the rest:
- Use a PDF loader for
report.pdf - Use a Markdown loader for
guide.md - Use a JSON loader for
config.json - Use a code-aware loader for
app.py - Select appropriate chunking strategies for each file type
Quality Preferences
Control the speed vs quality trade-off for auto-detected splitters:| Preference | Behavior |
|---|---|
"fast" | Optimized for speed — simple recursive chunking |
"balanced" | Good balance between speed and quality (default) |
"quality" | Optimized for retrieval quality — may use semantic chunking |
Use Cases
Optimize the auto-detection strategy for your specific use case:Configuration Hints
Pass configuration hints to the auto-detection system vialoader_config and splitter_config:

