The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
Improve eval chain prompt (#2798)
dev2049a094b7f807f7
diff --git a/langchain/evaluation/qa/eval_prompt.py b/langchain/evaluation/qa/eval_prompt.pyindex d270fdddbc..1fff5fa596 100644--- a/langchain/evaluation/qa/eval_prompt.py+++ b/langchain/evaluation/qa/eval_prompt.py@@ -2,7 +2,7 @@from langchain.prompts import PromptTemplatetemplate = """You are a teacher grading a quiz.-You are given a question, the student's answer, and the true answer, and are asked to score it as either CORRECT or INCORRECT.+You are given a question, the student's answer, and the true answer, and are asked to score the student answer as either CORRECT or INCORRECT.Example Format:QUESTION: question here@@ -10,7 +10,7 @@ STUDENT ANSWER: student's answer hereTRUE ANSWER: true answer hereGRADE: CORRECT or INCORRECT here-Please remember to grade them based on being factually accurate. Begin!+Grade the student answers based ONLY on their factual accuracy. Ignore differences in punctuation and phrasing between the student answer and true answer. It is OK if the student answer contains more information than the true answer, as long as it does not contain any conflicting statements. Begin!QUESTION: {query}STUDENT ANSWER: {result}@@ -29,7 +29,7 @@ CONTEXT: context the question is about hereSTUDENT ANSWER: student's answer hereGRADE: CORRECT or INCORRECT here-Please remember to grade them based on being factually accurate. Begin!+Grade the student answers based ONLY on their factual accuracy. Ignore differences in punctuation and phrasing between the student answer and true answer. It is OK if the student answer contains more information than the true answer, as long as it does not contain any conflicting statements. Begin!QUESTION: {query}CONTEXT: {context}@@ -51,7 +51,7 @@ STUDENT ANSWER: student's answer hereEXPLANATION: step by step reasoning hereGRADE: CORRECT or INCORRECT here-Please remember to grade them based on being factually accurate. Begin!+Grade the student answers based ONLY on their factual accuracy. Ignore differences in punctuation and phrasing between the student answer and true answer. It is OK if the student answer contains more information than the true answer, as long as it does not contain any conflicting statements. Begin!QUESTION: {query}CONTEXT: {context}