Enterprise RAG module with chat context storage, vector search, session management, and model downloading. Rust implementation with Node.js compatibility.
useanyhow::Result;/// Clean and normalize text content
pubfnclean_text(text:&str)-> String{
text.trim().to_string()}/// Extract text from various formats
pubfnextract_text_content(content:&str)->Result<String>{Ok(clean_text(content))}