Summarizer
def Summarizer(
llm, prompt_template:Optional=None, map_prompt:Optional=None, reduce_prompt:Optional=None,
refine_prompt:Optional=None, **kwargs
):Summarizer summarizes one or more documents
Args:
- llm: An
onprem.LLMobject - prompt_template: A model specific prompt_template with a single placeholder named “{prompt}”. All prompts (e.g., Map-Reduce prompts) are wrapped within this prompt. If supplied, overrides the
prompt_templatesupplied to theLLMconstructor. - map_prompt: Map prompt for Map-Reduce summarization. If None, default is used.
- reduce_prompt: Reduce prompt for Map-Reduce summarization. If None, default is used.
- refine_prompt: Refine prompt for Refine-based summarization. If None, default is used.