Templates / Chat with local documents using Ollama and MariaDB Vector cache

Chat with local documents using Ollama and MariaDB Vector cache

Ready for 3.0

by Quirino Scaramastra · 18 views · created 2026-10-24 · Internal Wiki, AI RAG

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 28 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Ollama Chat Model, Embeddings Ollama and MySQL.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).

  1. Ingestion settings (Edit Fields (Set)): sets 4 fields: ollama_url, embedding_model, ftp_path…
  2. Chat settings (Edit Fields (Set)): sets 3 fields: ollama_url, embedding_model, top_k
  3. List file on FTP server (FTP): list
  4. Look up answer in cache (MySQL): run a query
  5. Download file from FTP (FTP): uses FTP
  6. Answer already cached? (If): checks a condition and branches into true / false
  7. Extract text from file (Extract from File): extracts data from a file (text)
  8. Return cached answer (Edit Fields (Set)): sets 1 field: output
  9. Embed question with Ollama (HTTP Request): calls an HTTP API (POST)
  10. Classify document with LLM (Basic LLM Chain): sends a prompt to an LLM, with model: Ollama classification model; output parser: Parse summary and category

…plus 9 more steps. See the full node list below.

Services it uses

Ollama Chat ModelEmbeddings OllamaMySQL

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (18)

From the author

Quick Overview This workflow ingests documents from an FTP server into MariaDB Vector using Ollama embeddings, then provides a local chat interface that answers questions with retrieved context and caches repeated questions in a MariaDB Q&A table. How it…

Excerpt from Quirino Scaramastra's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.