Structs§
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
RuleDeffrom persisted bytes. - default_
max_ edges - Default
RuleDef.max_edgesfor suggest, auto-FK, demo, and HTTP omit. - evaluate
- is_
keymatch_ rooted - KeyMatch itself, or
Allwhose first element is KeyMatch-rooted.Anyis never KeyMatch-rooted — the FK fast-path does not apply to OR. - predicate_
is_ vector_ similar_ rooted - Returns true when the predicate is
VectorSimilaritself, or anAllwhose first element isVectorSimilar— the only predicates that may use the IVF-Flat approximate candidate path (approximate: true).