Uses of Class
dev.langchain4j.test.judge.DecisionModelJudge
Packages that use DecisionModelJudge
-
Uses of DecisionModelJudge in dev.langchain4j.test.judge
Methods in dev.langchain4j.test.judge that return DecisionModelJudgeModifier and TypeMethodDescriptionstatic DecisionModelJudgeJudge.from(DecisionModel decisionModel) Returns a judge backed by the given decision model: each criterion is asked as a yes/no question, all in a single request.DecisionModelJudge.withQuestion(Function<JudgeCriterion, YesNoQuestion> questions) Returns a judge that asks each criterion with the question returned by the given function, instead of the default question.DecisionModelJudge.withThreshold(double threshold) Returns a judge with the given threshold: a criterion is satisfied when the probability of "yes" is greater than or equal to it.