Format support
Which file types each document operation reads.
An operation refuses a file type it doesn't read with unsupported_file_type. The document service decides a file's type from its first bytes, and the extension when those don't settle it.
| File type | Extensions | Parse | Split | Classify | Extract | Ground |
|---|---|---|---|---|---|---|
.pdf | Yes | Yes | Yes | Yes | Yes | |
| Spreadsheet | .xlsx .xlsm .xls .csv | Yes | Yes | Yes | Yes | Yes |
| Parquet | .parquet | Yes | No | Yes | No | Yes |
| Word document | .docx .doc .docm | Yes | Yes | Yes | Yes | Yes |
| Image | .png .jpg .jpeg .tiff .tif .webp | Yes | Yes | Yes | Yes | Yes |
| Bitmap | .bmp | No | Yes | Yes | Yes | Yes |
| Presentation | .pptx .ppt | Yes | Yes | Yes | Yes | Yes |
| HTML | .html .htm | Yes | Yes | Yes | Yes | Yes |
| Plain text | .txt .log .xml | Yes | Yes | Yes | Yes | Yes |
| Diagram | .vsdx .vsd | Yes | Yes | Yes | Yes | Yes |
| Markdown | .md .mdx | Yes | Yes | Yes | Yes | Yes |
| JSON | .json | Yes | Yes | Yes | Yes | Yes |
| JSON Lines | .jsonl | No | No | No | No | Yes |
.eml .msg .oft | Yes | Yes | Yes | Yes | Yes | |
| Video | .mp4 .mov .avi .mkv | Yes | No | No | No | Yes |
| Audio | .mp3 .wav .m4a .flac .mpga .oga .ogg | Yes | No | No | No | Yes |
- Audio and video: Parse transcribes them. See Parse.
- Markdown is passed through as it is, without parsing.
- Large plain text: Parse reads
.txtfiles up to 1 GiB and returns the complete text throughdocument.content_url. Split, Extract and Ground read.txtfiles up to 256 MiB.