Document Summarizer

Functionality

The "Document Summarizer" module is designed to provide comprehensive summaries of entire documents. This module allows users to specify a document for summarization, and it will generate key takeaways and a full summary of the document, regardless of its length and based on the user's wishes for the style of summarization.

The process involves:

  1. Partial Summarization: Summarizing parts of the document.

  2. Combining Summaries: Merging the partial summaries into a full summary.

The user can specify a document for summarization, and the system will guide the user through the process, ensuring the whole document is considered for context, not just specific parts. This differs from the module, which focuses on answering specific questions.

Input

A user message requesting a summarization of a specific document.

Example scenario:

  1. User query: "Please summarize the document I uploaded."

    image-20240522-130559.png
  2. User clicks on the correct document and sends the request then the system process: Summarizes parts of the document and then combines these into a full summary.

    image-20240522-130719.png

Output

A comprehensive summary of the specified document, capturing key takeaways and essential information based on the user's wishes for the style of summarization.

Configuration settings (technical)

This section contains all configurable parameters as seen in the JSON.

General parameters

Parameter

Description

Parameter

Description

languageModel: string

Specifies the language model used.

Default: AZURE_GPT_35_TURBO_16K

Prompts

Only adjust prompts if you are fully familiar with the code logic. Small changes can break the module or reduce the output quality.

Parameter

Description

Parameter

Description

systemPromptCombineSummaries: string

triggerPromptCombineSummaries: string

System and trigger prompt used to combine partial summaries

systemPromptPartialSummary: string

triggerPromptPartialSummary: string

System and trigger prompt used for partial summarization of document parts

systemPromptNameExtraction: string triggerPromptNameExtraction: string

System and trigger prompt used to extract the name of the document


Author

@Pascal Hauri

 

© 2024 Unique AG. All rights reserved. Privacy PolicyTerms of Service