code-chunker 0.2.0

AST-aware code chunking and late chunking for RAG
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Error types for code-chunker.

/// Errors that can occur during chunking.
#[derive(Debug, thiserror::Error)]
pub enum Error {
    /// Embedding model error.
    #[error("embedding error: {0}")]
    Embedding(String),
}

/// Result type for code-chunker operations.
pub type Result<T> = std::result::Result<T, Error>;