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

Build Your First Local Agent ​

In this tutorial, you will build a Local Agent that can answer questions about company policies and assist with multilingual communication.

The Use Case ​

Imagine a customer support team that needs to answer questions about shipping in a multilingual context. You will build a local agent that reads a vector store containing shipping information and interacts with users through a chat interface, keeping all data private on your machine.

Before you start ​

Make sure that you have the following installed and running on your computer:

  • KNIME Analytics Platform: Download it from knime.com/downloads.
  • Ollama: Download and install Ollama. It must be running in your system tray before you start.
  • The Local LLMs: Open your terminal and run these commands to download the two LLMs used in this lesson:
batch
ollama run llama3.2:3b
ollama run translategemma

1. Download the Local Agent Folder ​

Before starting KNIME, you need the workflow files and example data on your computer. To download the Local Agent folder:

  • Visit the Local Agent on the KNIME Hub.
  • Click the Download icon download to save the entire space to your machine.
  • Open KNIME Analytics Platform and import this folder into your Local Workspace.
  • Verify: Ensure you see the example data folder containing faq.sqlite in your explorer.

2. Prepare your Environment ​

Ensure your KNIME workspace has the necessary nodes installed to handle AI tasks.

  • Open workflow 0. Install extensions.
  • Follow the prompt in the Install Extensions box.
  • This installs all necessary extensions for this tutorial.
  • Result: After KNIME restarts, your workspace is ready to create your local agent.

3. Create the FAQ Vector Store ​

To enable the local LLM to find information in your faq.sqlite, we must convert the text into numerical embeddings and save them in a Vector Store.

  • Open workflow 1. Create vector store.
  • Execute the DB Reader node to load the FAQ data.
  • Execute the Model Writer node.
  • Observe: A file named vector_store.model will appear in your directory. This is the "searchable map" the local LLM will navigate.

Vector Store Creation

4. Understand and Verify the Tools (Skills) ​

Now that the data is ready, the Local Agent needs specialized Tools to perform tasks.

The Semantic Search Tool ​

  • Open workflow 2. Tool - Query vector store.
  • Go to explorer, drag and drop the vector_store.model file into the workflow and connect it to Vector Store Retriever node.
  • Save the workflow
  • The Specialization: The local agent will call this tool whenever it needs to search for information in the vector store. To do so, the local agent will fill the String configuration node with your query, search the vector_store.model you just created, and output relevant text.
  • Information Relay: The Tool Message Output node at the end packages this data for the agent.

Vector Store Creation

The Translation Tool ​

  • Open workflow 3. Tool - Translate with LLM.
  • The Specialization: This workflow takes two inputs: Text to translate and a Target language to generate a translation.
  • Verification: Enter test values (e.g., "Hello" and "German") in the String Configuration nodes and execute the LLM Prompter.

5. Connect the Local "Brain" (Ollama) ​

Now, tell KNIME where to find the Ollama server running on your machine.

  • Open workflow 4. Chat with the Local Agent.
  • Locate the Connect to Ollama box.
  • In the OpenAI Authenticator node, confirm the URL is set to http://localhost:11434/v1.
  • In the OpenAI LLM Selector, choose the llama3.2:3b model.

6. Launch the Local agent ​

Link the memory, skills, and brain into a functional interface.

  • In the same workflow, execute the Agent Chat Widget node and click the Open View icon.
  • Test 1: Ask: "What is the estimated delivery time?".
  • Test 2: Ask: "Can you translate this answer into French?".

Agent Chat Widget

Conclusion ​

Congratulations! You've built a Local agent that can answer questions based on your private data and translate the responses, all without sending information to the cloud.

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 pageRestaurant agent
Next pageTask extractor