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.

Retrieval-Augmented Generation (RAG) ​

RAG combines a language model with document retrieval. Instead of relying only on what the model learned during training, a RAG workflow fetches relevant information from your documents and passes it to the model alongside the question.

Typical use cases include:

  • Answering questions about internal documentation
  • Building FAQ systems from product or support content
  • Querying large document collections in natural language
  • Grounding model responses in up-to-date or domain-specific data

How RAG works ​

A RAG pipeline has three steps: store documents as vectors, retrieve the most relevant passages for a question, and inject them into the prompt.

  • What is RAG?: How retrieval-augmented generation works and when to use it.

Build a RAG pipeline ​

  • Create a vector store: Split documents into chunks and store them as embeddings.
  • Retrieve context: Find the most relevant passages for a user question.
  • Inject context into a prompt: Add retrieved passages to the model prompt.

Tutorial ​

Follow a complete example that builds a product FAQ assistant using a RAG pipeline:

  • Product FAQ assistant
Pager
Previous pageBuild an Agent
Next pageLLM Providers