Install
Works with Drupal: ^10.4 || ^11 || ^12Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
161.49 KB
MD5: a4b561366f8a04c2dc017fe3ccea981b
SHA-1: 2b56e4138bce24e8ae9813571fc53a4c5685cae0
SHA-256: 6b1ee52cbd09bc30d6865665583d51397a84b5b26af02e1dbcc9c617dc6b0c51
Download zip
297.45 KB
MD5: 33f8948aea4135f277c2b5aed011bef4
SHA-1: 5fb7f283dc5448b838e1dc36ec8b565c73259242
SHA-256: df1369253809c36abf0e36985d66fb0c8f49f3e1948195c9e1207c352e32a77a
Release notes
Heads up: if you use the optional ai_empathy_ccc
submodule, update AI Context
to 1.0.0-beta5 or newer before updating this module. Older
versions fatal at plugin discovery rather than failing gracefully. Sites not
using that submodule are unaffected.
Added
- Caller-supplied AI request tags —
evaluateScenario()andevaluateScenarioBatch()now
accept an$additional_tagsarray, so callers can pass their own
provider tags (for example the OpenAI provider'sskip_moderation).
Tags are additive: the tags this module builds are always kept, so
observability and context scoping keep working. They apply to both provider
calls made for an evaluation — the evaluation and the scoring pass — and reach
theai_empathy.prompt_alterevent, so prompt-alter subscribers and
the AI Request Tags context scope can react to them.
(#3616670) - Split metric scoring and a v2 clinical-trust rubric
(ai_empathy_healthcare) — two new opt-in settings, both defaulting
to existing behaviour:scoring_mode:joint(default) scores both
governance metrics in one call;splitscores each in its own
call with the other metric's concerns excluded. Joint scoring lets the two
metrics anchor to each other, with clinical trust absorbing variance that
belongs to data protection. Split costs one extra call per evaluation and
restores their independence.trust_rubric_version:v1(default) is the
original criterion;v2scores reasoning and calibration only
and ignores any review or referral step. v1 credits deferral to a qualified
clinician, which carries no information when the care pathway is held
constant across compared responses, compressing the metric.
Both are overridable per call. Single-metric responses now throw rather than
clamp, so a model echoing a number out of the evaluated text is no longer
indistinguishable from a genuine low rating.
Changed
- Context Control Centre integration
(ai_empathy_ccc) now targets AI Context 1.0.0-beta5, which renamed
several of the surfaces this submodule builds on.composer.json
now requiresdrupal/ai_context ^1.0.0-beta5.
(#3616671) - Context injected into empathy evaluations now follows the Context Control
Centre's site-wide selection mode (Relevant unless changed).
Previously the API this submodule calls used a fixed mode, so sites that have
raised the selection mode to Broad will see more context in
empathy prompts than before.
Fixed
- Request-tag-scoped context no longer leaks into untagged
requests (ai_empathy_ccc) — when a request carries no AI
request tags, context items scoped to specific tags are now excluded outright
rather than left to subscription scoring, which could admit them. Global and
unscoped items are unaffected.
(#3612824)
Upgrading
- Update AI Context
to 1.0.0-beta5 or newer before updating, if you use
ai_empathy_ccc. - No database updates are required.
ai_empathy_healthcaredefaults are unchanged
(jointscoring, rubricv1), so scores stay comparable
with previous runs unless you opt in. Changing either setting changes scores
and breaks comparability with historical results — treat it as starting a new
benchmark series.