Skip to content

latent.agents.judges.consistency

ConsistencyJudge -- scores semantic equivalence of two responses.

Classes

ConsistencyScore

ConsistencyScore()

Score schema for semantic consistency.

Functions

ConsistencyJudge

ConsistencyJudge(model: str, kwargs = {}) -> Judge[ConsistencyScore]

Factory returning a Judge that scores semantic consistency.

Attributes

PROMPT_TEMPLATE

SYSTEM_PROMPT