Skip to main content

Overview

When you don’t specify loaders 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 omit loaders and splitters — KnowledgeBase figures out the rest:
Behind the scenes, KnowledgeBase will:
  • 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:

Use Cases

Optimize the auto-detection strategy for your specific use case:

Configuration Hints

Pass configuration hints to the auto-detection system via loader_config and splitter_config:
These hints are passed to the auto-detected components, giving you control without manually instantiating loaders and splitters.