π ExtractiveΒΆ
templates.qa.extractive
MultiReferenceTemplate(
instruction="Answer the question directly based on the information provided in the {context_type}. Extract the exact phrase from the {context_type} that directly answers the question, without any alterations.",
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.