prompt_with_output_parser.json — langchain Source File
Architecture documentation for prompt_with_output_parser.json, a json file in the langchain codebase.
Entity Profile
Source Code
{
"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",
"_type": "prompt"
}
Source
Frequently Asked Questions
What does prompt_with_output_parser.json do?
prompt_with_output_parser.json is a source file in the langchain codebase, written in json.
Where is prompt_with_output_parser.json in the architecture?
prompt_with_output_parser.json is located at libs/core/tests/unit_tests/examples/prompt_with_output_parser.json (directory: libs/core/tests/unit_tests/examples).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free