Sicurezza Informatica Intelligenza Artificiale LLM e NLP

n8n with LLM: RAG for NIS2 and AI Document Analysis

RAG with n8n and LLM for NIS2 compliance: build an AI document analysis system with a knowledge base, text splitting, and a queryable assistant.

Course description

RAG with n8n and LLM: document analysis for NIS2 compliance

The NIS2 directive brings with it an enormous volume of technical and regulatory documentation. In this mini-series I build a RAG (Retrieval-Augmented Generation) system with n8n and local LLMs to analyze these documents automatically: files are loaded, a queryable knowledge base is built, and the result is an AI assistant capable of answering specific questions about NIS2 compliance. A real use case, with immediate practical impact.

What You'll Learn

  • Prepare NIS2 documents to build a queryable knowledge base with AI
  • Create the retrieval layer: how the system finds relevant information in documents
  • Optimize preprocessing with text splitting and chunking to improve accuracy
  • Connect retrieval and generation: the LLM builds contextualized answers from documents
  • Build and test a complete AI assistant for querying NIS2 documents

RAG for Cybersecurity: a Real Use Case

RAG is one of the most powerful techniques for bringing AI to proprietary documents without training a model. In the NIS2 context — where organizations must demonstrate compliance with specific requirements — having an assistant that answers documented questions is a concrete advantage. This course shows you how to build it with n8n, using local LLMs that do not send your sensitive data anywhere.

Who This Course Is For

Ideal for cybersecurity professionals, compliance officers with a technical background, and developers who want to apply RAG to real regulatory scenarios. Basic knowledge of n8n and LLMs is assumed — if you are starting from zero, watch the n8n with LLM HR Automations course first.

Lessons list

Let's see how I prepare NIS2 documents in n8n to build an AI-queryable knowledge base: I'll load PDF files, extract the text, and organise the content that will serve as the foundation for the RAG system.

Guarda lezione

Let's build the knowledge base with n8n, generate embeddings for the NIS2 documents, and introduce the retrieval step: I'll show you how the system finds the most relevant information in response to an incoming question.

Guarda lezione

I'll show you how to optimise retrieval by splitting documents into chunks with n8n's Text Splitter node: smaller, well-overlapping chunks improve the precision of the LLM's responses.

Guarda lezione

Let's connect retrieval and generation: the LLM node queries the NIS2 knowledge base, receives the most relevant chunks as context, and builds documented responses based exactly on the uploaded material.

Guarda lezione

Let's complete the RAG flow in n8n by assembling and testing the full AI assistant for NIS2 compliance: I'll ask it questions in natural language and verify that the responses are accurate and grounded in the documents.

Guarda lezione
Giovanni Pace

Giovanni Pace

Ingegnere Informatico · Pratola Peligna

  • 107 Courses
About the teacher

Sono un ingegnere informatico con oltre 15 anni di esperienza nel settore ICT. Mi occupo di sviluppo software, cybersecurity, data science e intelligenza artificiale, con particolare attenzione all’innovazione e all’automazione dei processi aziendali. Da anni svolgo anche attività di docenza e formazione, creando percorsi pratici e coinvolgenti su programmazione, DevOps, AI e sicurezza informatica.

This course includes

  • Lessons 5
  • Duration 0h 47m
  • Difficulty intermedio
  • Language it
  • Certificate No

Recently viewed