Module rag

Module rag 

Source
Expand description

RAG (Retrieval-Augmented Generation) utilities for intelligent mock data generation RAG (Retrieval-Augmented Generation) for enhanced data synthesis

This module has been refactored into sub-modules for better organization:

  • config: RAG configuration and settings management
  • engine: Core RAG engine and retrieval logic
  • providers: LLM and embedding provider integrations
  • storage: Document storage and vector indexing
  • utils: Utility functions and helpers for RAG operations

Re-exports§

pub use engine::StorageStats as EngineStorageStats;
pub use storage::StorageStats as StorageStorageStats;
pub use config::*;
pub use providers::*;
pub use utils::*;

Modules§

config
RAG configuration and settings management
engine
Core RAG engine and retrieval logic
providers
LLM and embedding provider integrations
rag_utils
RAG-enhanced data generation utilities
storage
Document storage and vector indexing
utils
Utility functions and helpers for RAG operations

Structs§

DocumentChunk
Document chunk for RAG indexing
RagConfig
RAG configuration
RagEngine
RAG engine for enhanced data generation
SearchResult
Search result with similarity score

Enums§

EmbeddingProvider
Supported embedding providers
LlmProvider
Supported LLM providers