Package dev.dokimos.core.evaluators
Class HallucinationEvaluator
java.lang.Object
dev.dokimos.core.BaseEvaluator
dev.dokimos.core.evaluators.HallucinationEvaluator
- All Implemented Interfaces:
Evaluator
Evaluator that uses an LLM to detect hallucinations in the actual output.
A hallucination occurs when the actual output contains information that is not supported by the provided context. The score represents the ratio of hallucinated statements to total statements (lower is better).
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new builder for constructing the hallucination evaluator.Methods inherited from class dev.dokimos.core.BaseEvaluator
evaluate, evaluateAsync, evaluateAsync, name, threshold
-
Method Details
-
builder
Creates a new builder for constructing the hallucination evaluator.
-