Module bm25

Module bm25 

Source
Expand description

Local lexical retrieval.

The default retrieval engine is BM25 over the compiled OKF corpus: warm, in process, and fast enough that memory can be prepared speculatively while the user is still speaking. Semantic retrieval is a fallback for the queries lexical search genuinely cannot serve, not the default path.

Re-exports§

pub use explain::BoostKind;
pub use explain::ScoreComponent;
pub use explain::SearchExplanation;
pub use index::MemoryIndex;
pub use index::Query;
pub use index::SearchHit;
pub use schema::Field;
pub use schema::IndexedMemory;
pub use schema::MemoryOrigin;
pub use schema::tokenize;

Modules§

explain
Search explanation.
index
A fielded BM25 index over a single user’s memory.
schema
The lexical surface of a memory: which text is indexed, in which field, and how much each field is worth.