Skip to main content

kindling_provider/
lib.rs

1//! Local FTS5 retrieval provider.
2//!
3//! Implements deterministic, tiered retrieval over the SQLite FTS5 index:
4//! pins first (non-evictable), then the current capsule summary, then BM25-
5//! ranked candidates normalised to [0, 1].
6//!
7//! The public surface mirrors `LocalFtsProvider` in
8//! `packages/kindling-provider-local` and the retrieval orchestrator in
9//! `packages/kindling-core/src/retrieval/orchestrator.ts` — identical queries
10//! against the same database produce the same ranked results.
11
12mod error;
13mod orchestrator;
14mod provider;
15
16pub use error::{ProviderError, ProviderResult};
17pub use orchestrator::{retrieve, retrieve_at};
18pub use provider::{LocalFtsProvider, RetrievalProvider};