Expand description
Main indexing service.
Re-exportsยง
use chrono::Utc;๐use ragfs_chunker::ChunkerRegistry;๐use ragfs_core::Chunk;๐use ragfs_core::ChunkConfig;๐use ragfs_core::ChunkMetadata;๐use ragfs_core::ChunkOutput;๐use ragfs_core::ContentType;๐use ragfs_core::DirectoryScope;๐use ragfs_core::EmbeddingConfig;๐use ragfs_core::Error;๐use ragfs_core::FileEvent;๐use ragfs_core::FileRecord;๐use ragfs_core::FileStatus;๐use ragfs_core::IndexStats;๐use ragfs_core::Indexer;๐use ragfs_core::Result;๐use ragfs_core::VectorStore;๐use ragfs_embed::EmbedderPool;๐use ragfs_extract::ExtractorRegistry;๐use std::path::Path;๐use std::path::PathBuf;๐use std::sync::Arc;๐use std::sync::atomic::AtomicUsize;๐use std::sync::atomic::Ordering;๐use tokio::sync::Notify;๐use tokio::sync::RwLock;๐use tokio::sync::broadcast;๐use tokio::sync::mpsc;๐use tracing::debug;๐use tracing::error;๐use tracing::info;๐use tracing::warn;๐use uuid::Uuid;๐use crate::exclude::ExclusionMatcher;๐use crate::exclude::ExclusionOptions;๐use crate::exclude::default_exclude_patterns;๐use crate::watcher::FileWatcher;๐
Structsยง
- Indexer
Config - Configuration for the indexer.
- Indexer
Service - Main indexing service.
Enumsยง
- Index
Update - Index update events.
Functionsยง
- build_
chunk ๐ - Build a Chunk from chunk output and embedding.
- chunk_
has_ ๐content - Unicode general categories L* and Nd; unlike
is_alphanumeric, this deliberately excludesLetter_NumberandOther_Number(e.g. fractions). - compute_
hash ๐ - Compute blake3 hash of file content.
- confirmed_
missing ๐ - determine_
content_ ๐type - Determine content type from path, MIME type, and extracted content.
- finish_
pending ๐ - glob_
match_ ๐bytes - glob_
match_ ๐path - glob_
match_ ๐segment - glob_
match_ ๐segments - path_
matches_ pattern - Match a path against a glob-style include/exclude pattern.
- process_
file ๐ - Process a file through the full pipeline: extract โ chunk โ embed โ store.
- queue_
event_ ๐blocking - scan_
directory ๐ - Scan a directory and send file events.