route#
- scikitplot.corpus.route(query, *, has_dense=True, has_graph=False)[source]#
Choose evidence paths by deterministic rule (autonomy level A1).
- Parameters:
- querystr
- has_densebool, optional
Whether a dense index is available.
- has_graphbool, optional
Whether a graph view is available.
- Returns:
- RoutePlan
- Parameters:
- Return type:
Notes
Developer. Rule-based, never model-controlled: the guide forbids beginning with a model router, and a deterministic router is also the only kind whose behaviour can be regression-tested.
A quoted phrase routes lexical-only, because a caller who quoted a phrase asked for that phrase, not for something semantically nearby.