mirror of
https://github.com/hwchase17/langchain
synced 2024-10-29 17:07:25 +00:00
87e502c6bc
Co-authored-by: jacoblee93 <jacoblee93@gmail.com> Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
20 lines
608 B
JSON
20 lines
608 B
JSON
{
|
|
"input_variables": [
|
|
"question",
|
|
"student_answer"
|
|
],
|
|
"output_parser": {
|
|
"regex": "(.*?)\nScore: (.*)",
|
|
"output_keys": [
|
|
"answer",
|
|
"score"
|
|
],
|
|
"default_output_key": null,
|
|
"_type": "regex_parser"
|
|
},
|
|
"partial_variables": {},
|
|
"template": "Given the following question and student answer, provide a correct answer and score the student answer.\nQuestion: {question}\nStudent Answer: {student_answer}\nCorrect Answer:",
|
|
"template_format": "f-string",
|
|
"validate_template": true,
|
|
"_type": "prompt"
|
|
} |