Package dev.langchain4j.adaptiverag
Class HallucinationGrader
java.lang.Object
dev.langchain4j.adaptiverag.HallucinationGrader
- All Implemented Interfaces:
Function<HallucinationGrader.Arguments,
HallucinationGrader.Score>
public class HallucinationGrader
extends Object
implements Function<HallucinationGrader.Arguments,HallucinationGrader.Score>
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Binary score for hallucination present in generation answer. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
HallucinationGrader
public HallucinationGrader()
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceFunction<HallucinationGrader.Arguments,
HallucinationGrader.Score>
-