Skip to main content

synwire_index/
lib.rs

1//! Semantic indexing pipeline for Synwire VFS providers.
2//!
3//! Orchestrates directory walking, AST-aware chunking, embedding, and vector
4//! storage into a single [`SemanticIndex`] that VFS providers delegate to.
5
6#![forbid(unsafe_code)]
7
8mod cache;
9mod config;
10mod hashes;
11mod index;
12mod pipeline;
13mod walker;
14mod watcher;
15
16pub mod xref;
17
18#[cfg(feature = "code-graph")]
19pub mod graph;
20
21#[cfg(feature = "community-detection")]
22pub mod community;
23
24#[cfg(feature = "hybrid-search")]
25mod bm25;
26
27#[cfg(feature = "hybrid-search")]
28mod hybrid;
29
30pub use config::IndexConfig;
31pub use index::SemanticIndex;
32pub use index::StoreFactory;
33pub use xref::{XrefDirection, XrefEdge, XrefGraph, rebuild_project_xrefs, xref_query};
34
35#[cfg(feature = "hybrid-search")]
36pub use bm25::{Bm25Error, Bm25Index};
37
38#[cfg(feature = "hybrid-search")]
39pub use hybrid::{HybridResult, HybridSearchConfig, hybrid_search};