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: Evaluator

An LLM/VLM acting as the evaluator of an IEC session.

Parameters:
clientLLMClient

Any client of easyiec.evaluators.llm.clients (or the mock).

problemProblem, optional

Renders candidates; taken from the session when omitted.

goalstr, optional

Goal text (default: the query goal, i.e. the session goal).

criteriastr or list of str, optional

Rubric items in order of importance.

personastr, optional

“an experienced brewmaster”, “a process control engineer”, …

modality{“auto”, “image”, “text”, “both”}

What the model sees; auto uses problem.modality.

layout{“grid”, “separate”}

One labelled gallery image, or one image per candidate.

image_sizeint

Tile size in pixels.

debias{“reverse”, “permute”, “none”}

Presentation-order strategy (see the module docstring).

n_viewsint

Number of presentation orders ("permute"; "reverse" uses 2).

critiquebool

Ask for an improvement suggestion; with auto_steer it becomes the feedback comment and drives verbal steering.

max_retriesint

Re-asks after unparseable answers.

seedint, optional

Seeds the presentation orders.

Examples using easyiec.evaluators.LLMJudge#

An AI judge in the loop: prompts, images and debiasing

An AI judge in the loop: prompts, images and debiasing

Hybrid evaluation: the AI answers, people decide the hard cases

Hybrid evaluation: the AI answers, people decide the hard cases

Auditing a judge before trusting it

Auditing a judge before trusting it

Psychometric audit: how small a difference can the judge see?

Psychometric audit: how small a difference can the judge see?

May the AI replace the annotators? The alt-test and prediction-powered inference

May the AI replace the annotators? The alt-test and prediction-powered inference

A judge-substitution study

A judge-substitution study

Claude as the evaluator of a session

Claude as the evaluator of a session

Validating Claude as a judge

Validating Claude as a judge

You and Claude together in a notebook gallery

You and Claude together in a notebook gallery