FactualityJudgePrompt
FactualityJudgePrompt =
object
Prompt payload sent to the configured judge harness.
Example
Section titled “Example”import type { FactualityJudgePrompt } from "vitest-evals";
const payload: FactualityJudgePrompt = { system: "Grade factual consistency.", prompt: "Compare these answers.",};Properties
Section titled “Properties”prompt
Section titled “prompt”prompt:
string
User prompt containing the question, expert answer, submitted answer, and rubric.
system
Section titled “system”system:
string
System prompt for the judge model.