Skip to main content

Module def

Module def 

Source

Structs§

NodeView
RuleDef

Enums§

Predicate
Score-combination conventions for composed predicates:

Constants§

DEFAULT_KEYMATCH_TOP_K
Per-source top-k when a KeyMatch-rooted rule omits max_edges.
DEFAULT_SCORED_TOP_K
Per-source top-k when a scored (non-KeyMatch-rooted) rule omits max_edges.
MAX_PREDICATE_NESTING_DEPTH
Maximum nesting depth for compound predicates (All / Any).

Functions§

cosine_early_exit
Cosine similarity with Cauchy-Schwarz suffix-norm early exit.
decode_rule_def
Decode a bincode-encoded RuleDef from persisted bytes.
default_max_edges
Default RuleDef.max_edges for suggest, auto-FK, demo, and HTTP omit.
evaluate
is_keymatch_rooted
KeyMatch itself, or All whose first element is KeyMatch-rooted. Any is never KeyMatch-rooted — the FK fast-path does not apply to OR.
predicate_is_vector_similar_rooted
Returns true when the predicate is VectorSimilar itself, or an All whose first element is VectorSimilar — the only predicates that may use the IVF-Flat approximate candidate path (approximate: true).