rag-module 0.6.7

Enterprise RAG module with chat context storage, vector search, session management, and model downloading. Rust implementation with Node.js compatibility.
1
2
3
4
5
6
7
8
9
10
11
use anyhow::Result;

/// Clean and normalize text content
pub fn clean_text(text: &str) -> String {
    text.trim().to_string()
}

/// Extract text from various formats
pub fn extract_text_content(content: &str) -> Result<String> {
    Ok(clean_text(content))
}