Skip to main content

turbovault_vector/
lib.rs

1//! Optional hybrid (dense + lexical) semantic search engine for TurboVault.
2//!
3//! Host-agnostic: this crate does not depend on `turbovault-core`,
4//! `turbovault-vault`, or `turbovault-plugin-api`, and performs no I/O of its
5//! own beyond CPU-bound embedding. [`IndexEngine`] is fed note content and
6//! hands back what to persist; a host owns reading notes, deciding what
7//! changed, and storing the result. `crates/plugins/turbovault-plugin-vector`
8//! is that host today, wiring this engine to the TurboVault plugin boundary.
9//!
10//! See the crate README for the stack this is built on and why, and for
11//! credit to the prototype this design started from.
12
13#![warn(missing_docs, unreachable_pub)]
14
15pub mod chunk;
16pub mod config;
17pub mod dense;
18pub mod embedding;
19pub mod engine;
20pub mod error;
21pub mod lexical;
22pub mod router;
23pub mod store;
24
25pub use chunk::{chunk_text, content_hash, diff_chunks};
26pub use config::VectorConfig;
27pub use dense::DenseIndex;
28pub use embedding::{EmbeddingEngine, Model2VecEmbedder};
29pub use engine::{IndexEngine, IndexStats, SearchHit};
30pub use error::{Result, VectorError};
31pub use lexical::LexicalIndex;
32pub use router::{FusedResult, reciprocal_rank_fusion};
33pub use store::{ChunkRecord, IndexMeta, NoteRecord};