a
    •˜ëj  ã                   @   sH   d dl mZ dZeg d¢ed�ZdZeddged�Zedd	d
gd�ZdS )é    )ÚPromptTemplateaÇ  The original question is as follows: {question}
We have provided an existing answer, including sources: {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 you do update it, please update the sources as well. If the context isn't useful, return the original answer.)ÚquestionZexisting_answerÚcontext_str)Úinput_variablesÚtemplatez°Context information is below. 
---------------------
{context_str}
---------------------
Given the context information and not prior knowledge, answer the question: {question}
r   r   z(Content: {page_content}
Source: {source}Zpage_contentÚsource)r   r   N)Zlangchain_core.promptsr   ZDEFAULT_REFINE_PROMPT_TMPLZDEFAULT_REFINE_PROMPTZDEFAULT_TEXT_QA_PROMPT_TMPLZDEFAULT_TEXT_QA_PROMPTZEXAMPLE_PROMPT© r   r   ún/mnt/bigstor/www/usecases/.venv/lib/python3.9/site-packages/langchain/chains/qa_with_sources/refine_prompts.pyÚ<module>   s   ÿþÿÿþ