Skip to main content

core_rules/
lib.rs

1pub mod def;
2pub mod engine;
3pub mod hnsw;
4pub mod index;
5pub mod suggest;
6pub mod views;
7pub use def::{
8    decode_rule_def, default_max_edges, evaluate, is_keymatch_rooted, NodeView, Predicate, RuleDef,
9    DEFAULT_KEYMATCH_TOP_K, DEFAULT_SCORED_TOP_K, MAX_KEYMATCH_LIST,
10};
11pub use engine::{
12    EngineEdgeDelta, GraphMut, RuleEngine, RuleIvfExport, SideIvfExport, MAX_CHAIN_DEPTH,
13};
14pub use hnsw::HnswIndex;
15#[doc(hidden)]
16#[cfg(any(test, feature = "test-hooks"))]
17pub use hnsw::{hnsw_search_count, hnsw_search_count_reset};
18pub use index::{
19    candidate_spec, with_ivf_drift_rebuild, CandidateSpec, RuleIndex, SideIndex, IVF_DRIFT_REBUILD,
20};
21pub use suggest::{
22    RuleSuggestion, SuggestConfig, SuggestReport, DEFAULT_SEED as SUGGEST_DEFAULT_SEED,
23};
24pub use views::{AggFn, ViewDef, ViewSource, ViewStore};