Skip to content
KNIME Documentation
Main Navigation Get startedBuildWork with KnimeAccount and adminRelease notesDeveloper tools
Community Hub
DevelopersKnime 2.0
Sidebar Navigation

Getting Started

Installation

User Guide

Release Notes

Install Extensions

Building Workflows

Components

Flow Control

Expressions

File Handling

Deployment

Integrated Deployment

Workflow Invocation

Best Practices

Advanced Features

AI Extension

Get Started

Build an Agent

Inject context with RAG

LLM Providers

Tutorials

Summarize product reviews

Product FAQ assistant

Restaurant agent

Your first local agent

Task extractor

Reporting

Kerberos

Extensions

Database

Python

R

Deep Learning

Snowflake

Google Cloud

Azure

AWS

Big Data

Big Data Admin

Big Data Secured Cluster

Databricks

Microsoft Fabric

Power BI

Tableau

Report Designer

H2O

Changelogs

Version 5.11

Version 5.10

Version 5.9

Version 5.8

Version 5.7

Version 5.6

Version 5.5

Version 5.3

Extensions

Outdated version

This is the documentation for KNIME Analytics Platform version 5.11 - go to the latest version.

Prompt a model ​

Use the LLM Prompter node to send a single text prompt to a large language model.

Build a prompting workflow ​

Prerequisites

Before you start, make sure that you have:

  • installed the KNIME AI Extension (see Install the KNIME AI Extension).
  • configured credentials for a supported provider (see LLM Providers).

Prompting a model in KNIME consists of three steps:

  1. Authenticate with a provider
  2. Select a model
  3. Send the prompt

1. Authenticate with a provider ​

To authenticate with a model provider, you need to supply an API key and connect it to the corresponding authenticator node.

Follow these steps:

  1. Store your API key using a Credentials Configuration or Credentials Widget node.
  2. Connect the credentials node to the corresponding authenticator node (for example, the OpenAI Authenticator node).
  3. In the authenticator node, select the Credentials flow variable provided by the credentials node.

If the authenticator node traffic light turns green, the connection is successful.

Authenticate

Credential handling

If you plan to share this workflow, consider whether others should use your API key or provide their own. You can control this using the Save password in configuration (weakly encrypted) option in the credentials node. When unchecked, each user must enter their own key when opening the workflow.

2. Select a model ​

Connect the authenticator node to the corresponding LLM Selector node to choose the model you want to prompt. This node allows you to configure model selection parameters.

Common parameters include:

  • maximum response length
  • temperature (controls randomness)
  • advanced sampling options

Select model

3. Send the prompt ​

Prompts are plain text strings that are passed to the model as input. You can create them dynamically using nodes such as:

  • Table Creator
  • String Manipulation
  • Expression

The LLM Prompter receives two inputs:

  • the selected model configuration (from an LLM Selector)
  • a string column containing the prompt to send to the model

In the node configuration, select the column that contains the prompt text. Each input row is processed independently, resulting in one prompt execution per row.

Result ​

The model response is returned as a new column in the output table. Each row contains the model's response to the corresponding input prompt.

In this example, the model generates a summary for each input text:

Results

Next steps ​

  • Follow a tutorial: Summarize product reviews
  • Constrain and validate output: Prompt with structured output
  • Add external context and knowledge: Inject context into a prompt
  • Run models locally for privacy or offline use: Prompt a local model
Pager
Next pageInstallation