"""Answer relevancy metric prompt template."""

from __future__ import annotations

TEMPLATE = """\
<task>
Evaluate whether the answer directly addresses the question asked. Focus on \
relevance and directness, not on factual accuracy or completeness.
</task>

<data>
<question>{question}</question>
<answer>{answer}</answer>
</data>

<rubric>
Consider: Does the answer address what was asked? Is it on-topic? Does it \
provide a direct response rather than tangential information?

Scoring anchors:
- 1.0: The answer directly and precisely addresses the question.
- 0.7-0.9: The answer addresses the question but includes tangential \
information or could be more direct.
- 0.4-0.6: The answer partially addresses the question but misses key \
aspects or is largely tangential.
- 0.1-0.3: The answer is mostly off-topic with only incidental relevance.
- 0.0: The answer is completely unrelated to the question."""
