From 0e763677e4c334af80f2b542cb269f3786d8403f Mon Sep 17 00:00:00 2001 From: dev2049 <130488702+dev2049@users.noreply.github.com> Date: Wed, 12 Apr 2023 14:17:25 -0700 Subject: [PATCH] Fix typo in qa eval chain prompt (#2797) --- langchain/evaluation/qa/eval_prompt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/langchain/evaluation/qa/eval_prompt.py b/langchain/evaluation/qa/eval_prompt.py index 5fa5c732..d270fddd 100644 --- a/langchain/evaluation/qa/eval_prompt.py +++ b/langchain/evaluation/qa/eval_prompt.py @@ -21,7 +21,7 @@ PROMPT = PromptTemplate( ) context_template = """You are a teacher grading a quiz. -You are given a question, the contex the question is about, and the student's answer You are asked to score the student's answer as either CORRECT or INCORRECT, based on the context. +You are given a question, the context the question is about, and the student's answer. You are asked to score the student's answer as either CORRECT or INCORRECT, based on the context. Example Format: QUESTION: question here @@ -41,7 +41,7 @@ CONTEXT_PROMPT = PromptTemplate( cot_template = """You are a teacher grading a quiz. -You are given a question, the contex the question is about, and the student's answer You are asked to score the student's answer as either CORRECT or INCORRECT, based on the context. +You are given a question, the context the question is about, and the student's answer. You are asked to score the student's answer as either CORRECT or INCORRECT, based on the context. Write out in a step by step manner your reasoning to be sure that your conclusion is correct. Avoid simply stating the correct answer at the outset. Example Format: