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    BuildProgress, EngineEdgeDelta, GraphMut, RuleEngine, RuleIvfExport, SideIvfExport,
13    MAX_CHAIN_DEPTH,
14};
15pub use hnsw::HnswIndex;
16#[doc(hidden)]
17#[cfg(any(test, feature = "test-hooks"))]
18pub use hnsw::{
19    hnsw_dist_evals, hnsw_dist_evals_pairwise, hnsw_dist_evals_reset, hnsw_insert_count,
20    hnsw_insert_count_reset, hnsw_remove_scanned, hnsw_remove_scanned_reset, hnsw_search_count,
21    hnsw_search_count_reset,
22};
23pub use index::{
24    candidate_spec, ef_max, hnsw_vector_present, vector_scan_forced, with_ef_max,
25    with_hnsw_build_batch, with_ivf_drift_rebuild, with_vector_scan, CandidateSpec, RuleIndex,
26    SideIndex, EF_MAX, HNSW_BUILD_BATCH, IVF_DRIFT_REBUILD,
27};
28pub use suggest::{
29    RuleSuggestion, SuggestConfig, SuggestReport, DEFAULT_SEED as SUGGEST_DEFAULT_SEED,
30};
31pub use views::{AggFn, ViewDef, ViewSource, ViewStore};