easyiec.evaluators.LLMJudge#
- class easyiec.evaluators.LLMJudge(client, problem=None, *, goal=None, criteria=None, persona=None, modality='auto', layout='grid', image_size=224, debias='reverse', n_views=2, critique=False, auto_steer=False, max_retries=2, language='English', context='', max_tokens=700, seed=None, name=None)[source]#
Bases:
EvaluatorAn LLM/VLM acting as the evaluator of an IEC session.
- Parameters:
- client
LLMClient Any client of
easyiec.evaluators.llm.clients(or the mock).- problem
Problem,optional Renders candidates; taken from the session when omitted.
- goal
str,optional Goal text (default: the query goal, i.e. the session goal).
- criteria
strorlistofstr,optional Rubric items in order of importance.
- persona
str,optional “an experienced brewmaster”, “a process control engineer”, …
- modality{“auto”, “image”, “text”, “both”}
What the model sees;
autousesproblem.modality.- layout{“grid”, “separate”}
One labelled gallery image, or one image per candidate.
- image_size
int Tile size in pixels.
- debias{“reverse”, “permute”, “none”}
Presentation-order strategy (see the module docstring).
- n_views
int Number of presentation orders (
"permute";"reverse"uses 2).- critiquebool
Ask for an improvement suggestion; with
auto_steerit becomes the feedbackcommentand drives verbal steering.- max_retries
int Re-asks after unparseable answers.
- seed
int,optional Seeds the presentation orders.
- client
Examples using easyiec.evaluators.LLMJudge#
An AI judge in the loop: prompts, images and debiasing
Hybrid evaluation: the AI answers, people decide the hard cases
Psychometric audit: how small a difference can the judge see?
May the AI replace the annotators? The alt-test and prediction-powered inference