Skip to content

latent.agents.judges.hallucination

HallucinationJudge -- detects fabricated facts in responses.

Classes

HallucinationScore

HallucinationScore()

Score schema for hallucination detection.

Functions

HallucinationJudge

HallucinationJudge(model: str, kwargs = {}) -> Judge[HallucinationScore]

Factory returning a Judge that detects hallucinations.

Attributes

PROMPT_TEMPLATE

SYSTEM_PROMPT