
    ghR                     r    d Z ddlmZ dZdZdZ ej        defdg          Z ej        defdg          Zd	S )
a  Prompts for scoring the outputs of a models for a given question.

This prompt is used to score the responses and evaluate how it follows the instructions
and answers the question. The prompt is based on the paper from
Zheng, et. al. https://arxiv.org/abs/2306.05685
    )ChatPromptTemplatezYou are a helpful assistant.zKFor this evaluation, you should primarily consider the following criteria:
z Your evaluation should consider factors such as the helpfulness, relevance, accuracy, depth, creativity, and level of detail of the response.system)humana  [Instruction]
Please act as an impartial judge and evaluate the quality of the response provided by an AI assistant to the user question displayed below. {criteria}Begin your evaluation by providing a short explanation. Be as objective as possible. After providing your explanation, you must rate the response on a scale of 1 to 10 by strictly following this format: "[[rating]]", for example: "Rating: [[5]]".

[Question]
{input}

[The Start of Assistant's Answer]
{prediction}
[The End of Assistant's Answer])r   a  [Instruction]
Please act as an impartial judge and evaluate the quality of the response provided by an AI assistant to the user question displayed below. {criteria}[Ground truth]
{reference}
Begin your evaluation by providing a short explanation. Be as objective as possible. After providing your explanation, you must rate the response on a scale of 1 to 10 by strictly following this format: "[[rating]]", for example: "Rating: [[5]]".

[Question]
{input}

[The Start of Assistant's Answer]
{prediction}
[The End of Assistant's Answer]N)	__doc__langchain_core.prompts.chatr   SYSTEM_MESSAGECRITERIA_INSTRUCTIONSDEFAULT_CRITERIAfrom_messagesSCORING_TEMPLATESCORING_TEMPLATE_WITH_REFERENCE     `/var/www/FlaskApp/flask-venv/lib/python3.11/site-packages/langchain/evaluation/scoring/prompt.py<module>r      s     ; : : : : :/ S 9  4%3	>"
	
  " #C"4"B	>"	
# #   r   