Package dev.langchain4j.adaptiverag
Class AnswerGrader
java.lang.Object
dev.langchain4j.adaptiverag.AnswerGrader
- All Implemented Interfaces:
Function<AnswerGrader.Arguments,
AnswerGrader.Score>
public class AnswerGrader
extends Object
implements Function<AnswerGrader.Arguments,AnswerGrader.Score>
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Binary score to assess answer addresses question. -
Constructor Summary
-
Method Summary
-
Constructor Details
-
AnswerGrader
public AnswerGrader()
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceFunction<AnswerGrader.Arguments,
AnswerGrader.Score>
-