services/source_rag_service library
High-level RAG service for managing sources and chunks.
This service provides a convenient API that combines:
- Rust semantic chunking for document splitting (Unicode sentence/word boundaries)
- EmbeddingService for vector generation
- Rust source_rag APIs for storage and search
- ContextBuilder for LLM context assembly
- Hybrid search combining vector and BM25 keyword search
Classes
- RagSearchResult
- Search result with assembled context.
- SourceAddResult
- Result of adding a source document with automatic chunking.
- SourceRagService
- High-level service for source-based RAG operations.