xberg 1.0.5

High-performance document intelligence library for Rust. Extract text, metadata, and structured data from PDFs, Office documents, images, and 98 formats and 306 programming languages via tree-sitter code intelligence with async/sync APIs.
Documentation
//! Document summarisation.
//!
//! Two backends are exposed:
//!
//! - [`textrank::summarize`] — pure-Rust extractive summary that builds a TF-IDF
//!   cosine-similarity graph over sentences and runs PageRank. Deterministic and
//!   compiled into every target (including WASM and Android).
//! - [`llm::summarize_with_llm`] — abstractive summary produced by an LLM via
//!   the shared [`crate::llm::text_completion`] helper. Gated on the
//!   `summarization-llm` feature.
//!
//! The post-processor that ties both backends to
//! [`crate::types::ExtractedDocument::summary`] lives in
//! `crate::plugins::processor::builtin::summarization`.

pub mod textrank;

#[cfg(feature = "summarization-llm")]
pub mod llm;