Expand description
Core traits for RAGFS components.
This module defines the trait interfaces that all RAGFS components implement:
ContentExtractor: Extract content from filesChunker: Split content into chunksEmbedder: Generate vector embeddingsVectorStore: Store and search vectorsIndexer: Coordinate the indexing pipeline
These traits enable a pluggable architecture where different implementations can be swapped without changing the rest of the system.
Re-exportsยง
use async_trait::async_trait;๐use std::path::Path;๐use crate::error::ChunkError;๐use crate::error::EmbedError;๐use crate::error::ExtractError;๐use crate::error::StoreError;๐use crate::types::Chunk;๐use crate::types::ChunkConfig;๐use crate::types::ChunkOutput;๐use crate::types::ContentType;๐use crate::types::EmbeddingConfig;๐use crate::types::EmbeddingOutput;๐use crate::types::ExtractedContent;๐use crate::types::FileRecord;๐use crate::types::IndexStats;๐use crate::types::Modality;๐use crate::types::SearchQuery;๐use crate::types::SearchResult;๐use crate::types::StoreStats;๐
Traitsยง
- Chunker
- Trait for splitting content into chunks.
- Content
Extractor - Trait for extracting content from files.
- Embedder
- Trait for generating embeddings.
- Indexer
- Trait for file indexing coordination.
- Vector
Store - Trait for vector storage and search.