L2 Hub
Pontus
analysis
Summarize

L2 Construct: summarize

summarization

Description

The summarizer L2 evaluates text input to generate a concise summary that captures the main points of the text. It employs natural language processing techniques and pre-trained models to identify key information and condense it into a shorter form. The L2 outputs a summary that is tailored to a specific audience, word length, and style, enabling effective communication of complex ideas in a clear and concise manner.

L2 Data

  1. Provider: pontus
  2. Module: analysis
  3. Action: summarize

Example Step

{
  "name": "insert-your-step-name",
  "type": "l2",
  "l2_data": {
    "provider": "pontus",
    "module": "analysis",
    "action": "summarize"
  }
}
 

Input

Example

{
  "text": "There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable.",
  "audience": "general",
  "word_length": 100,
  "style_hint": "funny, bullet points"
}
 

Schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://pontus.bpa/pkgs/l2/pontus/analysis/summarizer-input",
  "$ref": "#/$defs/SummarizerInput",
  "$defs": {
    "SummarizerInput": {
      "properties": {
        "text": {
          "type": "string"
        },
        "audience": {
          "type": "string"
        },
        "word_length": {
          "type": "integer"
        },
        "style_hint": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": ["text", "audience", "word_length", "style_hint"]
    }
  }
}
 

Output

Example

{
  "summary": "- Many versions of Lorem Ipsum roam the wild, but most have been tampered with by mischievous elves.\n\t\t- Random words and jokes sneak in, making them look about as believable as a unicorn in a tuxedo.\n\t\t- The result? A lot of Lorem Ipsum that's more gibberish than Latin, but definitely good for a chuckle!"
}
 

Schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://pontus.bpa/pkgs/l2/pontus/analysis/summarizer-output",
  "$ref": "#/$defs/SummarizerOutput",
  "$defs": {
    "SummarizerOutput": {
      "properties": {
        "summary": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": ["summary"]
    }
  }
}