π With ContextΒΆ
templates.qa.with_context
MultiReferenceTemplate
(
instruction="Answer the question based on the information provided in the given {context_type}.",
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.