You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain-hub/prompts/summarize/refine/prompt.yaml

14 lines
509 B
YAML

input_variables: [existing_answer, text]
output_parser: null
template: "
Your job is to produce a final summary\n
We have provided an existing summary up to a certain point: {existing_answer}\n
We have the opportunity to refine the existing summary
(only if needed) with some more context below.\n
------------\n
{text}\n
------------\n
Given the new context, refine the original summary
If the context isn't useful, return the original summary."
template_format: f-string