AiBrow
  • Welcome
  • AiBrow web API
    • Getting started
    • Feature comparison
  • AiBrow Extension
    • Getting started
    • Web polyfill
    • Helping users install the AiBrow extension
    • Remove the on-device helper or models
  • Examples
    • CoreModel API
    • Embedding API
    • LanguageDetector API
    • LanguageModel API
    • Rewriter API
    • Summarizer API
    • Translator API
    • Writer API
    • Using different models
    • Model download feedback
    • Getting JSON output
  • API Reference
    • AI
      • AiBrowAI
      • BrowserAI
      • WebAI
    • AiBrow
      • CoreModelFactory
        • CoreModel
        • CoreModelCapabilities
      • EmbeddingFactory
        • Embedding
        • EmbeddingCapabilities
      • LanguageDetectorFactory
        • LanguageDetector
        • LanguageDectectorCapabilities
      • LanguageModelFactory
        • LanguageModel
        • LanguageModelCapabilities
      • RewriterFactory
        • Rewriter
        • RewriterCapabilities
      • SummarizerFactory
        • Summarizer
        • SummarizerCapabilities
      • TranslatorFactory
        • Translator
        • TranslatorCapabilities
      • WriterFactory
        • Writer
        • WriterCapabilities
    • Types
      • AICapabilityAvailability
      • AICapabilityGpuEngine
      • AICreateMonitor
      • AILanguageDetectorDetectResult
      • AIRewriterFormat
      • AIRewriterLength
      • AIRewriterTone
      • AISummarizerFormat
      • AISummarizerLength
      • AISummarizerType
      • AIWriterFormat
      • AIWriterLength
      • AIWriterTone
      • AIModelDtype
    • Models
Powered by GitBook
On this page
  • Methods
  • capabilities
  • create
  1. API Reference
  2. AiBrow

SummarizerFactory

PreviousRewriterCapabilitiesNextSummarizer

Last updated 3 months ago

Methods

capabilities

async capabilities(options) =>

Get the capabilities of the on-device language model.

Options (optional)

model extension web optional string The id of the model to use, undefined to use the default. The extension version also accepts a direct link to a HuggingFace GGUF file. The web version also accepts the repo & name of a HuggingFace ONNX repo.

Returns a new capabilities object


create

async create(options) =>

Creates a summarizer model session

Options (optional)

model extension web optional string

topK optional number

topP optional number

maxTokens optional number

grammar extension optional any

temperature optional number

repeatPenality optional number

flashAttention optional boolean

contextSize optional number

signal optional AbortSignal

Returns a new Summarizer session that can be prompted with the pre-provided configuration

gpuEngine extension web optional

dtype web optional

type optional

format optional

length optional

monitor optional

SummarizerCapabilities
Summarizer
AICapabilityGpuEngine
AIModelDtype
AISummarizerType
AISummarizerFormat
AISummarizerLength
AICreateMonitor