Skip to main content

AI Write

Controlled node

Overview

A workhorse node for text generation tasks, AI Write uses a large language model to generate text based on a provided prompt. By default the output of the generation is locked to a seed (1) meaning it should generate the same output everytime, although occasionally this system fails. If you want a different output everytime then you can select randomize output. If none of the node inputs change, and randomize is unchecked, then the generation output is cached to allow for faster development.

Model options

Intellectible provides a number of different text generation models to choose from for AI Write. Each has a different token cost and performance profile.

ModelDescriptionContext Size
ultra lightCheap and fast lightweight model, great for summarizing. Uses fewer tokens.128000
standardState of the art instruction tuned model suitable for most text generation tasks128000
advanced reasoningExcellent for reasoning tasks but nearly 10x more expensive than standard. Use sparingly.128000
large contextVery large context window model10000000
Do not exceed the context window

Your AI Write operation won't work if you exceed the model context window size. The sum of your token input and maximum output should be less than the context window size. Use the Token Count node to check the token count of any text.

Output events

There are two output event options for this node.

  • Stream: This allows you to receive the output as it is generated, this is useful for output into chat interfaces or other applications where you want to see the text as it is being generated.
  • Done: This fires when the node has finished running, this is useful for triggering other nodes or actions in your workflow.

Inputs

InputTypeDescriptionDefault
ModelEnumThe model to use for text generation.standard
PromptTextProvides the context or topic for the AI to write about.-
Max TokensNumberSpecifies the maximum number of tokens (words or characters) to be generated.2000
TemperatureNumberControls the level of randomness or creativity in the generated text.0.7
SeedNumberSets the random seed for the AI model, allowing for reproducibility of results.1
Randomize OutputBooleanDetermines whether the output should be randomized or not. If randomized the seed is ignored.-
RunEventFires when the node starts running-

Outputs

OutputTypeDescription
OutputTextContains the generated text.
StreamEventFires each time the output accumulates.
DoneEventFires when the node has finished