adlee-was-taken
9a3926544a
feat(local-encoder): swap from NLI cross-encoding to embedding+centroid classification
...
Replace transformers.pipeline('zero-shot-classification', bart-large-mnli)
with AutoModel/AutoTokenizer + mean-pool + L2-normalize + cosine
similarity + softmax (BAAI/bge-large-en-v1.5). One forward pass for the
input, cost independent of category count.
Preserves the exact public interface (ensure_available, classify_zero_shot)
— dispatcher.py needs zero changes.
Also updates LocalEncoderConfig's default model and class docstring in
config.py, and rewrites test_local_encoder.py with 13 offline tests
mocking both transformers and torch.
This is Phase 1 of Wave 5.1 in plans/token-waste-waves.md — implementation
only. Phase 2 (re-tuning confidence_threshold against real traffic) and
Phase 3 (delta-detector) are not included.
2026-09-18 01:50:37 -04:00
..
2026-09-09 19:16:08 -04:00
2026-09-08 18:39:17 -04:00
2026-09-09 19:16:08 -04:00
2026-09-06 18:33:14 -04:00
2026-09-08 18:30:06 -04:00
2026-09-05 23:54:43 -04:00
2026-09-07 18:47:40 -04:00
2026-09-18 00:45:08 -04:00
2026-09-18 00:45:08 -04:00
2026-09-01 23:04:59 -04:00
2026-08-30 00:03:05 -04:00
2026-09-18 00:45:08 -04:00
2026-09-08 10:59:04 -04:00
2026-09-12 00:43:55 -04:00
2026-09-08 18:33:50 -04:00
2026-09-05 21:02:23 -04:00
2026-09-12 11:54:25 -04:00
2026-09-08 20:49:36 -04:00
2026-09-08 18:30:06 -04:00
2026-09-06 02:02:57 -04:00
2026-09-08 18:33:50 -04:00
2026-09-18 00:45:08 -04:00
2026-09-03 21:37:19 -04:00
2026-08-30 00:03:05 -04:00
2026-09-08 20:49:36 -04:00
2026-09-06 18:33:14 -04:00
2026-08-30 00:03:05 -04:00
2026-09-06 12:47:49 -04:00
2026-09-13 20:11:56 -04:00
2026-08-23 16:02:25 -04:00
2026-09-18 00:45:08 -04:00
2026-09-05 23:53:44 -04:00
2026-09-09 22:55:26 -04:00
2026-09-06 02:43:19 -04:00
2026-09-15 21:24:13 -04:00
2026-09-06 01:43:52 -04:00
2026-08-23 22:23:08 -04:00
2026-09-18 01:50:37 -04:00
2026-09-06 02:43:19 -04:00
2026-09-09 21:00:24 -04:00
2026-09-13 19:38:12 -04:00
2026-09-06 19:10:24 -04:00
2026-09-06 12:50:27 -04:00
2026-09-06 14:12:54 -04:00
2026-09-10 22:21:09 -04:00
2026-09-08 14:05:16 -04:00
2026-09-07 11:14:16 -04:00
2026-09-06 22:36:10 -04:00
2026-09-01 23:05:09 -04:00
2026-08-28 19:02:47 -04:00
2026-09-01 22:10:22 -04:00
2026-09-18 00:00:19 -04:00
2026-09-18 00:00:19 -04:00
2026-09-06 02:43:19 -04:00
2026-09-13 20:53:34 -04:00
2026-09-18 00:32:55 -04:00
2026-09-04 20:55:41 -04:00
2026-08-30 00:03:05 -04:00
2026-09-08 14:05:16 -04:00
2026-09-04 21:01:04 -04:00
2026-09-18 01:50:37 -04:00
2026-09-01 00:20:10 -04:00
2026-08-22 21:52:58 -04:00
2026-09-13 19:47:24 -04:00
2026-09-16 14:34:27 -04:00
2026-09-16 14:34:27 -04:00
2026-09-13 11:19:13 -04:00
2026-09-08 22:26:39 -04:00
2026-09-13 11:04:02 -04:00
2026-09-06 18:11:01 -04:00
2026-09-06 01:16:27 -04:00
2026-09-05 02:43:39 -04:00
2026-09-08 18:55:16 -04:00
2026-09-06 01:29:15 -04:00
2026-09-09 18:34:35 -04:00
2026-09-13 11:37:59 -04:00
2026-09-08 21:24:58 -04:00
2026-09-10 22:05:12 -04:00
2026-09-13 11:37:59 -04:00
2026-08-23 20:19:46 -04:00
2026-09-13 12:25:39 -04:00
2026-09-09 21:19:09 -04:00
2026-09-13 20:53:34 -04:00
2026-08-12 00:03:43 -04:00
2026-09-02 02:09:59 -04:00
2026-09-04 20:56:15 -04:00
2026-08-26 20:58:12 -04:00
2026-09-01 00:20:10 -04:00
2026-09-08 18:51:22 -04:00
2026-09-03 19:33:14 -04:00
2026-09-08 14:15:35 -04:00
2026-08-21 19:03:17 -04:00
2026-09-08 14:15:35 -04:00
2026-09-13 11:37:59 -04:00
2026-09-13 11:19:13 -04:00
2026-09-10 23:27:13 -04:00
2026-08-21 19:02:07 -04:00