
    ihS                         d dl mZmZ d dlmZmZmZ d dlmZ dZ	dZ
 ej                   ej                  e	       ej                  e
      g      ZdZ ej                  e      Z eeeefg      Zy)	    )ConditionalPromptSelectoris_chat_model)ChatPromptTemplateHumanMessagePromptTemplateSystemMessagePromptTemplate)PromptTemplatea  You are a smart assistant designed to help high school teachers come up with reading comprehension questions.
Given a piece of text, you must come up with a question and answer pair that can be used to test a student's reading comprehension abilities.
When coming up with this question/answer pair, you must respond in the following format:
```
{{
    "question": "$YOUR_QUESTION_HERE",
    "answer": "$THE_ANSWER_HERE"
}}
```

Everything between the ``` must be valid json.
zyPlease come up with a question/answer pair, in the specified JSON format, for the following text:
----------------
{text}aU  You are a smart assistant designed to help high school teachers come up with reading comprehension questions.
Given a piece of text, you must come up with a question and answer pair that can be used to test a student's reading comprehension abilities.
When coming up with this question/answer pair, you must respond in the following format:
```
{{
    "question": "$YOUR_QUESTION_HERE",
    "answer": "$THE_ANSWER_HERE"
}}
```

Everything between the ``` must be valid json.

Please come up with a question/answer pair, in the specified JSON format, for the following text:
----------------
{text})default_promptconditionalsN) langchain.chains.prompt_selectorr   r   langchain_core.prompts.chatr   r   r   langchain_core.prompts.promptr   templ1templ2from_messagesfrom_templateCHAT_PROMPTtemplPROMPTPROMPT_SELECTOR     c/var/www/html/dev/engine/venv/lib/python3.12/site-packages/langchain/chains/qa_generation/prompt.py<module>r      s    U 
 9


 / ..1#11&90"008	
 
&	%	%e	,+-)E(Fr   