Skip to main content

Module indexer

Module indexer 

Source
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ยง

IndexerConfig
Configuration for the indexer.
IndexerService
Main indexing service.

Enumsยง

IndexUpdate
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 excludes Letter_Number and Other_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.