ai-summarizer
Reactive icon

AI Summarizer

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded
 on 17 Jul (yesterday)
 by 
0.0
 (0 ratings)
ai-summarizer

AI Summarizer

Documentation
1.0.0

The AI Summarizer can be used to generate different types of summaries in varied lengths and formats, such as sentences, paragraphs, bullet point lists, and more. We believe this API is useful in the following scenarios:

  • Summarizing the key points of an article or a chat conversation.
  • Suggesting titles and headings for articles.
  • Creating a concise and informative summary of a lengthy text.
  • Generating a teaser for a book based on a book review.


The AI Summarizer has set of 4 client actions, listed below -

1.CheckAvailability -

To determine if the model is ready to use, It returns availability status with the following values -

"unavailable" means that the implementation does not support the requested options.

"downloadable" means that the implementation supports the requested options, but first, the browser has to download something, such as a model (in Chrome's case, Gemini Nano) or fine-tuning for the model.

"downloading" means that the implementation supports the requested options, but it has to finish an ongoing download before it can proceed.

"available" means that the implementation supports the requested options and the summarizer can proceed.


2.DownloadModel -

To trigger the model download call this function. If the response to CheckAvailability->AvailabilityStatus was downloadable or downloading,


3.CheckInputQuota -

Returns the input quota available to the browser for generating summaries.


1.Summarize -

Summarizes a given body of text via a browser's internal AI model (which may differ between browsers).

This action has following input para,eters to sumarize text -

  • InputText - The text that you want to summarize.
  • SharedContext - Additional shared context that can help the summarizer.
  • Type - The type of the summarization, with the allowed values key-points (default), tldr, teaser, and headline.
  • Format - The format of the summarization, with the allowed values markdown and plain-text (default) .
  • Length - The length of the summarization, with the allowed values short, medium (default), and long. The meanings of these lengths vary depending on the type requested. For example, in Chrome's implementation, a short key-points summary consists of three bullet points, and a short summary is one sentence.