Module rag

Module rag 

Source
Expand description

CPU-optimized text-based context retrieval with scoring

Provides parallel processing capabilities using rayon for efficient text matching and relevance scoring of stored contexts.

Structsยง

BatchProcessor
Batch processing for multiple queries
RagConfig
RAG processor configuration
RagProcessor
CPU-optimized RAG processor
RetrievalQuery
Query for RAG retrieval
RetrievalResult
RAG retrieval results
ScoreBreakdown
Breakdown of score components
ScoredContext
Result from RAG retrieval with scoring