Skip to main content

Module candidate_search

Module candidate_search 

Source
Expand description

Runs tree traversal and final ranking from host-provided in-memory candidate scores.

Structs§

CandidateSearchOutcome
Tree paths and flattened ranked nodes produced by one in-memory search.
ScoredNodeCandidate
One scored node candidate supplied by an external retrieval adapter.

Enums§

CandidateSearchError
Validation failure returned by strict external-score entry points.

Functions§

resolve_search_mode
Resolves Auto mode with the same hierarchy ratio used by the SQLite adapter.
search_with_candidates
Searches from a flat candidate list, merging duplicate document/node pairs by maximum score.
search_with_candidates_strict
Strictly validates a flat candidate list and rejects duplicate node identities.
search_with_scores
Searches a document forest using a host-provided nested score map.
search_with_scores_strict
Strictly validates a nested score map before running candidate search.

Type Aliases§

CandidateScoreMap
Initial lexical or hybrid scores grouped by document ID and then node ID.