Skip to content

Commit 0d49850

Browse files
committed
Refine FactCheckingEvaluator prompt to specify yes/no answer.
1 parent 9c7af56 commit 0d49850

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spring-ai-core/src/main/java/org/springframework/ai/evaluation/FactCheckingEvaluator.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@
6464
public class FactCheckingEvaluator implements Evaluator {
6565

6666
private static final String DEFAULT_EVALUATION_PROMPT_TEXT = """
67+
Evaluate whether or not the following claim is supported by the provided document.
68+
Respond with "yes" if the claim is supported, or "no" if it is not.
69+
6770
Document: \\n {document}\\n
6871
Claim: \\n {claim}
6972
""";

0 commit comments

Comments
 (0)