FM
FlowMarket
Docs, PDF & OCR Intermediate ⚡ 13 n8n Nodes

Extract personal data with self-hosted LLM Mistral NeMo

This workflow shows how to use a self-hosted Large Language Model (LLM) with n8n's LangChain integration to extract personal information from user input. Thi...

🔌 Nodes & Integrations Used (5)

Chat Trigger Lm Chat Ollama Output Parser Autofixing Output Parser Structured Chain Llm

📖 Implementation & Setup Guide

This workflow shows how to use a self-hosted Large Language Model (LLM) with n8n's LangChain integration to extract personal information from user input. This is particularly useful for enterprise environments where data privacy is crucial, as it allows sensitive information to be processed locally.

📖 For a detailed explanation and more insights on using open-source LLMs with n8n, take a look at our [comprehensive guide on open-source LLMs](https://blog.n8n.io/open-source-llm/).

🔑 Key Features

  1. **Local LLM**
  2. - Connect Ollama to run Mistral NeMo LLM locally
  3. - Provide a foundation for compliant data processing, keeping sensitive information on-premises

2. **Data extraction** - Convert unstructured text to a consistent JSON format - Adjust the JSON schema to meet your specific data extraction needs.

3. **Error handling** - Implement auto-fixing for LLM outputs - Include error output for further processing

⚙️ Setup and сonfiguration

Prerequisites

  • [n8n AI Starter Kit](https://docs.n8n.io/hosting/starter-kits/ai-starter-kit/) installed

Configuration steps

  1. Add the **Basic LLM Chain** node with system prompts.
  2. Set up the **Ollama Chat Model** with optimized parameters.
  3. Define the JSON schema in the **Structured Output Parser** node.

🔍 Further resources --------------------

  • [Run LLMs locally with n8n](https://blog.n8n.io/local-llm/)
  • [Video tutorial on using local AI with n8n](https://www.youtube.com/watch?v=xz_X2N-hPg0)

Apply the power of self-hosted LLMs in your n8n workflows while maintaining control over your data processing pipeline!

⚡ How to import this workflow into n8n:

  1. Click the Direct Download JSON button above to save Extract personal data with self-hosted LLM Mistral NeMo.json.
  2. Log in to your n8n Cloud or self-hosted n8n instance.
  3. In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
  4. Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
  5. Click Execute Workflow to test and switch to Active!

Related Docs, PDF & OCR Workflows

View All in Docs, PDF & OCR →