Test that an LLM response does not contain hallucinated information when compared against ground truth.
expect_no_hallucination(
response,
ground_truth,
model = NULL,
tolerance = 0.1,
info = NULL
)The LLM response to check.
The factual information to check against.
Model to use for checking.
Allowed deviation (0 = strict, 1 = lenient).
Additional information for failure message.