Skip to main content

Module rag

Module rag 

Source

Re-exports§

pub use pipeline::Chunk;
pub use pipeline::EmbeddedChunk;
pub use pipeline::FileContent;
pub use pipeline::PipelineConfig;
pub use pipeline::PipelineEvent;
pub use pipeline::PipelineGovernorConfig;
pub use pipeline::PipelineResult;
pub use pipeline::PipelineSnapshot;
pub use pipeline::PipelineStats;
pub use pipeline::run_pipeline;
pub use provider::AicxChunkProvider;
pub use provider::ChunkOpts;
pub use provider::ChunkProvider;
pub use provider::ChunkerKind;
pub use provider::FlatChunkProvider;
pub use provider::OnionChunkProvider;
pub use provider::detect_default_chunker;

Modules§

pipeline
Async pipeline for concurrent RAG indexing.
provider
structured

Structs§

AuditProgress
AuditResult
ChunkQuality
ContextPrefixConfig
Configuration for context prefix injection
CrossStoreRecoveryBatchReport
CrossStoreRecoveryReport
EnrichedChunk
An enriched chunk with context prefix and metadata
MergeProgress
OnionSlice
A slice in the onion hierarchy
OnionSliceConfig
Configuration for onion slicing
RAGPipeline
ReindexProgress
RepairResult
ReprocessProgress
SearchOptions
Options for search operations
SearchResult

Enums§

AuditRecommendation
CrossStoreRecoveryState
IndexResult
Result of indexing operation with deduplication
OuterSynthesis
Strategy for producing the outer (~100 char) layer.
QualityTier
SliceLayer
Layer in the onion-like slice hierarchy
SliceMode
Slicing mode for document indexing

Functions§

compute_content_hash
Compute SHA256 hash of content and return as hex string
create_enriched_chunks
Create enriched chunks with context prefix injection
create_onion_slices
Create onion slices from content
create_onion_slices_async
Async variant of create_onion_slices that resolves the outer layer via the configured OuterSynthesis strategy.
create_onion_slices_fast
Create fast onion slices (outer + core only) - 2x faster than full onion
create_onion_slices_fast_async
Async variant of create_onion_slices_fast mirroring the LLM-or-keyword resolution from create_onion_slices_async.
inspect_cross_store_recovery
repair_cross_store_recovery
replace_outer_slice
Replace the outer slice in a four-layer (or outer+core) onion stack with a new content string, regenerating the outer ID and patching the parent’s children_ids so the hierarchy stays internally consistent.
synthesize_outer_via_ollama
Synthesize an outer summary by asking a local Ollama model (spec P3).