Commit Graph
2 Commits
Author SHA1 Message Date
Satya Devineni f9004ca0a8 Adding zero-shot classifier support (#3952)
* main into zero shot, post refactoring

* cleanup

* cleanup

* CR feedback: fixed the residency document clarification bug

* cr feedback: fake tests with propoer assertions

* pr feedback: better policy checks and logging for backend failures

* pr feedback: adding on_truncation

* pr feedback: adding the truncation support for classifier and fixing documentation issues

* CI fix and doc enhancement

* pr feedback: fixed edge cases

* added check for 0.3.7 truncated verification

* Added the example lfm2 ONNX model

* pr feedback: added max-length and 3 flag truncate flags

* pin bump to 0.4.0 and more tests for zero-shot

* CI fix

* pr feedback: clarified on the PII detector
2026-10-29 17:21:53 +00:00
Slawomir Nowaczyk 78ace86310 Router/2382 RoutingPolicyEngine — assembly + evaluate() (M8) (#2499)
* RoutingPolicyEngine implementation

* Added CI tests

* test(router): drive deterministic leaves through the engine

Wire make_deterministic_leaf_factories() into the engine and add keywords_any/regex/min_chars/metadata route() tests mirroring the l1 fixtures (#2382).

* test(router): exercise a true classifier failure in fall-open test

Bind a throwing run_classifier so test_classifier_failure_falls_open drives Score::ok=false with default on_error=match_false, the symmetric case to the match_true test (#2382).
2026-07-01 15:20:42 +00:00