Text Generator Node

The text generator node produces text given a prompt and a task. It’s good for workflows that require an input prompt to be modified in a certain way every time. For instance, if you want to make all input prompts into “pirate-style” prompts.

Inputs

prompt
string

The input text that is used as context to generate the output text. If not passed in, the node will only consider the task definition in the settings.

Settings

task
string

A description of the task — this describes what the GPT is supposed to do.

Example: “You are a pirate image generator, create a prompt inspired from pirates for a stable diffusion text to image, given a topic that I will provide to you. Please make sure the prompt is clear and concise.”

In this case, the topic would come from the prompt.

Outputs

Text
string

The text response from the language model

Describe Node

The describe node produces text given an image input. It can be used to describe the image, but also for any task that requires viewing the image to produce text.

Inputs

Image
image
required

The image that is provided as context for the task

Settings

Prompt
string

The proposed prompt for the language model to respond to. For example: “Describe this image, but imagine that the background is a medieval town, instead of what it is right now. Provide the description for the image with the new background.”

Outputs

Text
string

The text response from the language model