跳转到内容
Agentic Workflowdocs
v0.8.2免费安装

节点 / builtin / ai / localai

Generate Text

Summarize, translate or transform text on-device

AI 扩展程序网页应用

此内容尚不支持你的语言。

Turn one piece of text into another (a summary, a translation, a rewrite) with a small model that runs in your browser.

Generate Text sends the Text to the text-generation model you pick and returns what the model writes. What happens depends on the model:

  • DistilBART CNN (summarize) condenses the text.
  • NLLB-200 distilled (translate) translates it, using Source language and Target language.
  • T5-small follows an instruction at the start of the text, such as summarize: or translate English to German: .

The whole text goes through the model in one pass, so long input can be cut short. There is no cost per run and no API key.

  • Run a custom model, or T5-small with your own instruction, that the dedicated nodes do not cover.
  • Add a quick offline text transform to a workflow without an API key.

For everyday summaries and translations, prefer Summarize and Translate: they split long text into pieces and offer length and language pickers. For free-form writing, use a chat model with Basic LLM Chain.

设置项类型作用
Model Model pickerAny installed text-generation model, across engines.
Text Text
Source language TextFor translation models (e.g. eng_Latn).
Target language TextFor translation models (e.g. fra_Latn).

Source language and Target language are sent to the model only when both are filled in. Use the codes the model expects: for NLLB-200 that is the xxx_Yyyy form, such as eng_Latn, fra_Latn, deu_Latn or spa_Latn. Other models ignore them.

  • Output

Each output item has these fields:

Field类型What it holds
text Text
Shape of an output item
{
"text": "…"
}

text is what the model wrote. Use it as {{ $input.text }} in the next node.

None. This node needs no connection and has no slots for other nodes.

The Model picker lists your installed models first, then models that download on first use. Manage them, or add a custom model, on the Local AI page.

Translate selected text to German with T5:

  1. Context Menu with Menu Contexts set to Selection.
  2. Generate Text with Model T5-small and Text translate English to German: {{ $input.selectionText }}.
  3. Clipboard Write with Text {{ $input.text }}.
  • “Choose a text-generation model.” Model is empty. Pick one.
  • “Provide some text.” Text is empty after expressions run.
  • An NLLB translation comes out wrong or in the wrong language. Fill in both Source language and Target language with NLLB codes, or use Translate, which picks the codes for you.
  • The output stops early or skips the end of the text. These small models read and write a limited amount of text. Use Summarize or Translate, which split long text, or split it upstream.
  • “Model “…” isn’t available. Install it from Local AI.“ The saved model is no longer in your list, for example a removed custom model. Pick another model.
编辑此页

最近更新:

Was this page useful?
向 Aria 询问“Generate Text”