pub mod types;
pub mod documents;
pub mod vector;
mod web;
pub mod agents;
pub mod agent;
pub mod embed;
pub mod error;
pub mod memory;
#[deprecated(since = "0.5.0", note = "use `ragrig::memory` instead")]
pub mod history;
pub mod history_persistence;
pub mod fs_session_store;
pub mod parsers;
pub mod prompts;
pub mod store;
#[cfg(feature = "test-fixtures")]
pub mod fixtures;
#[cfg(feature = "internal-generate")]
pub mod generate;
pub use types::{
ChunkConfig, ContextSizeMode, DocumentType,
EpubParserBackend, GenerationParams, PaperResult, PdfParserBackend,
};
pub use agents::{ChatAgentSpec, Generator};
pub use embed::{Embedder, EmbedderSpec, NoopEmbedder, OllamaEmbedder};
#[cfg(feature = "internal-embed")]
pub use embed::FastembedEmbedder;
pub use parsers::{DocumentParser, DocumentParsers, VisionPdfParser, build_parsers, chunk_text, extract_text};
pub use history_persistence::{
HistoryStrategy, LogHistory, MemoryStrategyKind, SessionConfig, SessionData, SessionId,
SessionStore, SummaryHistory, Turn, TurnPairs, TurnPerf, TurnRole,
};
pub use fs_session_store::FsSessionStore;
#[deprecated(since = "0.9.0", note = "use `ragrig::RagAgent::builder().rewriter()` instead")]
pub use memory::MemoryStrategy;
#[deprecated(since = "0.9.0", note = "use `ragrig::RagAgent::builder().rewriter()` instead")]
pub use memory::RewriteMemory;
#[deprecated(since = "0.9.0", note = "use `ragrig::RagAgent::builder()` without `.rewriter()` instead")]
pub use memory::TranscriptMemory;
#[deprecated(since = "0.9.0", note = "use `ragrig::RagAgent::builder().system_prompt()` instead")]
pub use prompts::SystemPrompts;
pub use agent::{RagAgent, RagResponse};
pub use store::{ScoredChunk, VectorStore};
pub use error::RagrigError;
pub use documents::FileIndexResult;
pub use vector::{
collect_documents, collect_documents_with_stats, embed_documents,
index_folder, scan_document_files,
};
pub use web::{
download_and_ingest_url, search_arxiv, search_semantic_scholar,
};