rig-core 0.44.0

An opinionated library for building LLM powered applications.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! EPUB loading with raw or XML-stripped chapter text.
//!
//! ```no_run
//! use rig_core::loaders::{EpubFileLoader, StripXmlProcessor};
//!
//! let documents = EpubFileLoader::<_, StripXmlProcessor>::with_glob("books/*.epub")?
//!     .read().into_iter().collect::<Result<Vec<_>, _>>()?;
//! # let _ = documents;
//! # Ok::<(), rig_core::loaders::epub::EpubLoaderError>(())
//! ```

mod errors;
mod loader;
mod text_processors;

pub use errors::EpubLoaderError;
pub use loader::{EpubFileLoader, IntoIter};
pub use text_processors::{RawTextProcessor, StripXmlProcessor, TextProcessor};