"""Contextual relevancy metric prompt template."""

from __future__ import annotations

TEMPLATE = """\
<task>
Evaluate whether the retrieved context chunks are relevant to answering the \
question. This measures retrieval quality, not answer quality.
</task>

<data>
<question>{question}</question>
<context>
{context}
</context>
</data>

<rubric>
Examine each context chunk and assess whether it contains information useful \
for answering the question.

Scoring anchors:
- 1.0: All context chunks are highly relevant and contain information needed \
to answer the question.
- 0.7-0.9: Most chunks are relevant; a few may be tangential but not \
distracting.
- 0.4-0.6: A mix of relevant and irrelevant context chunks.
- 0.1-0.3: Most context chunks are irrelevant to the question.
- 0.0: None of the context chunks are relevant to the question.

If the context is empty, score 0.0."""
