Uses of Class
dev.langchain4j.test.judge.JudgeRequest.Builder
Packages that use JudgeRequest.Builder
-
Uses of JudgeRequest.Builder in dev.langchain4j.test.judge
Methods in dev.langchain4j.test.judge that return JudgeRequest.BuilderModifier and TypeMethodDescriptionstatic JudgeRequest.BuilderJudgeRequest.builder()Creates a builder of a request: the text to judge and the criteria are required.JudgeRequest.Builder.context(JudgeContext context) What the text responds to, created withJudgeContext.from(String)for a user message orJudgeContext.from(List)for a conversation.JudgeRequest.Builder.criteria(JudgeCriterion... criteria) The criteria to check the text against.JudgeRequest.Builder.criteria(Collection<JudgeCriterion> criteria) The criteria to check the text against.JudgeRequest.Builder.sources(Collection<String> sources) The sources the text should be based on, for example retrieved documents.The text to judge.