§
    ‡ìNgJ	  ã                   ó  — 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dS )é    )Ú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© ó    ún/var/www/html/ai-engine/env/lib/python3.11/site-packages/langchain/chains/question_answering/refine_prompts.pyú<module>r!      sh  ðà UÐ UÐ UÐ UÐ UÐ UÐ UÐ Uðð ð ð ð ð ð ð ð ð ð ð ð 9Ð 8Ð 8Ð 8Ð 8Ð 8ð	?ð ð 5˜Ô4Ð5OÑPÔPÐ ð?ð ð 6Ð'Ô5ØÐ9¸GÀ_Ð;UÐVñô Ð ð 3Ð2Ø(Ø Ð"4Ð5Ð6ðñ ô Ð ð(ð ð 6˜Ô5Ð6QÑRÔRÐ ðð ð 8Ð)Ô7ØÐ'Ð(Ð*AÐBñô Ð ð 5Ð4Ø)Ø Ð"6Ð7Ð8ðñ ô Ð Ð Ð r   