[Feature Request] Jev-style structured judgments for CrossEncoder — working implementation in KaLM-Jev
Hi! We recently released KaLM-Jev, a local, Jev-style judgment engine built on KaLM-Reranker-R2, available in Nano, Small, and Large.
It is already working with real model inference, supporting three structured judgment primitives without generating answer text:
- Choice: select among named candidates and return their probabilities.
- Score: return a continuous score over user-defined ordered levels.
- Noul: evaluate conditions independently on a 0–1 scale.
These are useful for agent tool selection, support-ticket routing, severity scoring, and workflow automation.
Feature request
Would Sentence Transformers consider adding a similar high-level interface for compatible CrossEncoder models?
Users could provide a state, instructions, and criteria, then receive structured judgments through an optional wrapper around the existing scoring APIs. Mixed-question requests could combine all three primitives.
Reference implementation
https://github.com/KaLM-Embedding/KaLM-Jev
KaLM-Jev includes Python/HTTP APIs, task-specific templates, structured aggregation, candidate/rule representation caching, and recorded GPU validation results.
It could serve as a concrete starting point for this feature. Templates and caching would remain model-dependent, and normalized scores should not be treated as calibrated correctness probabilities.
Would you prefer this as an example integration, a standalone wrapper, or an extension to the CrossEncoder API? Happy to discuss the design!
Source: huggingface/sentence-transformers