Auto-Detection
The simplest approach —auto_convert() handles format detection:
Available Converters
| Converter | Input Type | Description |
|---|---|---|
PlainTextConverter | str | Pass-through with cleanup |
MarkdownConverter | str | Markdown content / files |
ChatHistoryConverter | list[dict] | OpenAI message format |
RAGConverter | list[dict] | RAG chunks with metadata |
JSONConverter | dict / str | Arbitrary JSON data |
auto_convert() | any | Auto-detects format |
Chat History
Convert OpenAI-compatible message arrays:RAG Chunks
Convert retrieval-augmented generation chunks with metadata:Custom Converters
SubclassInputConverter and implement convert():