π Title [deprecated]ΒΆ
Deprecation message: This template should be replaced with templates.qa.with_context as it adds an unnecessary instruction to the model to return a short answer.
templates.qa.with_context.title
MultiReferenceTemplate(
instruction="Answer the question based on the information provided in the {context_type} given below. The answer should be a single word or a number or a short phrase of few words.",
input_format="{context_type}:
{context}
Question:
{question}",
output_format="{answer}",
target_prefix="Answer:
",
references_field="answers",
title_fields=[
"context_type",
],
)
[source]Read more about catalog usage here.