Ë
    ž¤IgJ	  ã                   ó  — d dl mZmZ d dlmZmZmZmZ d dlm	Z	 dZ
 e	j                  e
«      ZdZ ej                  dddefg«      Z eeeefg¬	«      Zd
Z e	j                  e«      ZdZ ej                  defdg«      Z eeeefg¬	«      Zy)é    )ÚConditionalPromptSelectorÚis_chat_model)ÚAIMessagePromptTemplateÚChatPromptTemplateÚHumanMessagePromptTemplateÚSystemMessagePromptTemplate)ÚPromptTemplatea}  The original question is as follows: {question}
We have provided an existing answer: {existing_answer}
We have the opportunity to refine the existing answer (only if needed) with some more context below.
------------
{context_str}
------------
Given the new context, refine the original answer to better answer the question. If the context isn't useful, return the original answer.a  We have the opportunity to refine the existing answer (only if needed) with some more context below.
------------
{context_str}
------------
Given the new context, refine the original answer to better answer the question. If the context isn't useful, return the original answer.)Úhumanz
{question})Úaiz{existing_answer}r
   )Údefault_promptÚconditionalszžContext information is below. 
------------
{context_str}
------------
Given the context information and not prior knowledge, answer the question: {question}
z‘Context information is below.
------------
{context_str}
------------
Given the context information and not prior knowledge, answer any questionsÚsystemN)Ú langchain.chains.prompt_selectorr   r   Úlangchain_core.prompts.chatr   r   r   r   Úlangchain_core.prompts.promptr	   ÚDEFAULT_REFINE_PROMPT_TMPLÚfrom_templateÚDEFAULT_REFINE_PROMPTÚrefine_templateÚfrom_messagesÚCHAT_REFINE_PROMPTÚREFINE_PROMPT_SELECTORÚDEFAULT_TEXT_QA_PROMPT_TMPLÚDEFAULT_TEXT_QA_PROMPTÚchat_qa_prompt_templateÚCHAT_QUESTION_PROMPTÚQUESTION_PROMPT_SELECTOR© ó    úo/var/www/html/answerous/venv/lib/python3.12/site-packages/langchain/chains/question_answering/refine_prompts.pyú<module>r!      sî   ðç U÷ó õ 9ð	?ð ð 5˜×4Ñ4Ð5OÓPÐ ð?ð ð 6Ð'×5Ñ5ØÐ9¸GÀ_Ð;UÐVóÐ ñ 3Ø(Ø Ð"4Ð5Ð6ôÐ ð(ð ð 6˜×5Ñ5Ð6QÓRÐ ðð ð 8Ð)×7Ñ7ØÐ'Ð(Ð*AÐBóÐ ñ 5Ø)Ø Ð"6Ð7Ð8ôÑ r   