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

Overview

Tutorials

Read and filter data from a database

Write a transformed dataset to a database

Concepts

Ports and Sessions

Query Generation

Type Mapping

Deprecated Framework

Connecting

Connect: Dedicated Node

Connect: File-Based Database

Connect: Generic DB Connector

Register a JDBC Driver

Install Third-Party Driver Plug-in

Drivers on Hub and Server

Kerberos Constrained Delegation

Reading and Transforming

Read Data

Transform Data Visually

Run a Custom SQL Query

Parameterize a Query

Writing and Modifying

Insert, Update, or Merge

Delete Rows

Bulk Load Data

Create and Remove Tables

Use Transactions

Reference

Connector Node Settings

JDBC Driver Reference

Deprecated Node Mapping

Migrate Deprecated Workflows

Python

Overview

Tutorials

Python Scripting Quickstart

Data App Development Using Plotly

Data Processing

K-AI Scripting Assistant

Data Type Conversion

Batch Processing

Jupyter Integration

Environment Management

Pixi Configuration

Dependency Management

Environment Persistence

Channel Mirrors & Air-Gapped Setups

Conda Migration

Alternative Configurations

Conda and Miniforge Setup

Conda Environment Propagation

Manual Python Configuration

Legacy Node Migration

Concepts

Pixi Backend Architecture

Storage Logic

Python Environments on Executors

Reference

Python Scripting API

Bundled Packages

Executor and Hub Configuration

Troubleshooting Guide

API Reference

Inputs and outputs

Classes

Views

Utility functions

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.12

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

Summarize Product Reviews ​

In this tutorial, you will learn how to summarize long product reviews using a large language model in KNIME.

You will build a complete workflow from start to finish, beginning with raw review data and ending with concise summaries that can be reused in downstream analysis or reporting.

What you will build ​

You will create a workflow that:

  1. Reads product reviews from a file
  2. Builds one prompt per review
  3. Sends the prompts to a language model
  4. Stores the generated summaries in a new table column

By the end, you will have a working workflow that can be reused and adapted for new review data.

Before you begin ​

Make sure you have:

  • KNIME Analytics Platform installed (see Download and install KNIME Analytics Platform)
  • KNIME AI Extensions installed (see Install the KNIME AI Extensions)
  • An API key or credentials for your LLM provider

Step 1: Read the review data ​

Use the CSV Reader node to load the product reviews into your workflow.

  1. Download product_reviews.csv

  2. Add a CSV Reader node to your workflow.

  3. Configure the node to point to the downloaded file.

Each row in the table represents one customer review.

Step 2: Create one prompt per review ​

Use the Expression node to build a prompt dynamically for each review.

Configure the node to create a new column called Prompt with the following expression:

text
string(
  "You are a product quality expert.\n" +
  "Summarize the following review in 10 to 15 words:\n\n" +
  $["Review"]$
)

This creates one prompt per row by combining:

  • a fixed instruction
  • the review text from the table

Show prompt column

Expressions in KNIME

The Expression node uses the KNIME Expression Language to construct strings and transform data. If you are not familiar with the syntax, you can ask KAI, the KNIME AI assistant, to help you build or adapt the expression.

Step 3: Authenticate with the LLM provider ​

Authenticate with your chosen provider using:

  • Credentials Configuration node to store your API key or credentials
  • the corresponding Authenticator node (for example, OpenAI Authenticator)

Connect the credentials node to the authenticator using a flow variable. If authentication is successful, the authenticator node turns green.

Authenticate OpenAI

Step 4: Select a language model ​

Use the LLM Selector node to choose the model that will generate the summaries.

Typical settings include:

  • model name
  • maximum response length
  • temperature

For consistent summaries, consider setting the temperature to a low value.

Select model

Step 5: Prompt the model ​

Use the LLM Prompter node to send the prompts to the model.

Configure the node to receive as input:

  • connect the model input port to the LLM Selector
  • connect the data input port to the table containing the Prompt column
  • select Prompt as the input column

Each input row is prompted independently, and the model response is stored in a new column (for example, Response).

LLM Prompter configuration

Result ​

After execution, the output table contains a new column with the generated summaries.

Each row now includes:

  • the original review
  • a short summary generated by the model

LLM Prompter results

If you want to review or compare your result, you can open the completed workflow:

➡️ Open the completed workflow on KNIME Hub

Next Steps ​

If you want to keep learning about AI and data workflows in KNIME, take one of our free courses and earn a microcredential badge to showcase your skills:

  • GenAI & Data Workflows – Getting Started
  • AI Chatbots, RAG, & Governance with Data Workflows – Getting Started
  • Data-Aware Agentic AI – Getting Started
Pager
Previous pageTutorials
Next pageProduct FAQ assistant