Skip to content

FactualityJudgePrompt

FactualityJudgePrompt = object

Prompt payload sent to the configured judge harness.

import type { FactualityJudgePrompt } from "vitest-evals";
const payload: FactualityJudgePrompt = {
system: "Grade factual consistency.",
prompt: "Compare these answers.",
};

prompt: string

User prompt containing the question, expert answer, submitted answer, and rubric.


system: string

System prompt for the judge model.