jakubburkiewicz / node-red-contrib-ollama

A Node-RED module that wraps the ollama.js library, offering its functionalities as configurable nodes for easy integration into flows.
MIT License
17 stars 3 forks source link
ai llama llm llms node-red node-red-contrib node-red-flow ollama

Logo

node-red-contrib-ollama

Add AI functionality to your flows! This module includes a set of nodes that enable easy communication with Ollama, enriching your projects with intelligent solutions.

A Node-RED module that wraps the ollama.js library, offering its functionalities as configurable nodes for easy integration into flows.

Requirements

This module requires Node.js version 18 or higher.

To use it, you need to have Node-RED installed on your system. For more information on how to install Node-RED, refer to the official Node-RED documentation.

You also need Ollama running on the same or a different system. For detailed instructions on how to install Ollama, please refer to the official Ollama site.

Installation

To install the module, you can use the Node-RED editor or the Node-RED command-line tool.

Node-RED Editor

  1. Open the Node-RED editor.
  2. Click on the menu button in the top-right corner.
  3. Select "Manage palette".
  4. Go to the "Install" tab.
  5. Search for "node-red-contrib-ollama".
  6. Click on the "Install" button.

Node-RED Command-Line Tool

  1. Open a terminal.
  2. Run the following command:
npm install node-red-contrib-ollama

After installing the module, you need to restart Node-RED to apply the changes.

Usage

The module provides a set of nodes that can be used to interact with the ollama.js library. The nodes are:

Each node has its own set of configuration options that can be used to customize its behavior. For more information on how to use each node, refer to the help text provided in the Node-RED editor.

License

This project is licensed under the MIT License - see the LICENSE file for details.