kreuzberg 4.8.4

High-performance document intelligence library for Rust. Extract text, metadata, and structured data from PDFs, Office documents, images, and 91+ formats and 248 programming languages via tree-sitter code intelligence with async/sync APIs.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Configuration types for text chunking.

use serde::{Deserialize, Serialize};

// Re-export ChunkingConfig and ChunkerType from core config (canonical location)
pub use crate::core::config::processing::{ChunkSizing, ChunkerType, ChunkingConfig};

/// Result of a text chunking operation.
///
/// Contains the generated chunks and metadata about the chunking.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ChunkingResult {
    /// List of text chunks
    pub chunks: Vec<crate::types::Chunk>,
    /// Total number of chunks generated
    pub chunk_count: usize,
}