AcademyWorkflowsDevelopment

Open-source LLM via HuggingFace in n8n

Technical teams that want to try an open-source language model inside an n8n automation.

  • Recommendedour rating
  • 37,276views on n8n
Open on n8n.io ↗

Paste it straight onto an n8n canvas with Ctrl+V or Cmd+V.

use-an-open-source-llm-via-huggingface.json

Loading the file...

What it does

A small n8n workflow that connects an open-source model from HuggingFace to a Basic LLM Chain. A chat message triggers the run and a prompt guides the answer. It uses Mistral-7B-Instruct-v0.1 by default, and you can change it to another supported model or to Ollama.

Use cases

  1. 01Test an open-source model before choosing one for a project
  2. 02Compare answers from different HuggingFace models
  3. 03Prototype a chat step that does not rely on a paid API

Connects

Basic LLM Chain · Hugging Face Inference Model

Questions about
Open-source LLM via HuggingFace in n8n.

What is Open-source LLM via HuggingFace in n8n used for?

Technical teams that want to try an open-source language model inside an n8n automation. A small n8n workflow that connects an open-source model from HuggingFace to a Basic LLM Chain. A chat message triggers the run and a prompt guides the answer. It uses Mistral-7B-Instruct-v0.1 by default, and you can change it to another supported model or to Ollama.

How do I import Open-source LLM via HuggingFace in n8n into n8n?

Copy the workflow JSON from this page and paste it onto the n8n canvas with Ctrl+V or Cmd+V. Then connect your credentials in each node.

Is Open-source LLM via HuggingFace in n8n safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.