kreuzberg 4.6.1

High-performance document intelligence library for Rust. Extract text, metadata, and structured data from PDFs, Office documents, images, and 88+ formats with async/sync APIs.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use thiserror::Error;

#[derive(Error, Debug)]
pub enum LayoutError {
    #[error("ORT error: {0}")]
    Ort(#[from] ort::Error),
    #[error("Image error: {0}")]
    Image(#[from] image::ImageError),
    #[error("Session not initialized")]
    SessionNotInitialized,
    #[error("Invalid model output: {0}")]
    InvalidOutput(String),
    #[error("Model download failed: {0}")]
    ModelDownload(String),
}