Skip to content

Latest commit

 

History

History
63 lines (37 loc) · 1.6 KB

README.md

File metadata and controls

63 lines (37 loc) · 1.6 KB

Node-RED for Generative AI

Note: this is my hobby project.

Background and Motivation

As a MVP developer for CX(Customer Experience) innovation, I need a node-based low-code development platform supporting LLM-chains with visual programming for agile GenAI app prototyping, to show how GenAI innovate CX.

What is the LLM chain?

  in --> [Template] --> [LLM model] --> [Parser] ---> out

Requirements

Note: You can start using Gemini API with the free tier.

Set up

I use Raspberry Pi 3 (Linux) for this project, but all the programs in this project should run on other operating systems.

Running Node-RED on Raspberry Pi

https://nodered.org/docs/getting-started/raspberrypi

sqlite-vec on Raspberry Pi with Node.js

=> SQLITE_VEC.md

My Original Node-RED package "chain"

=> chain package

  • "gemini" and "db" for Gemini-based chat supporting RAG
  • "chat" and "search" for OpenAI-based chat supporting RAG
  • "object" to convert a JSON code block to an object

Installing the package

It is useful to define a bash alias for installing the package in Node-RED, like this:

alias rlc='cd ~/.node-red;npm install ~/node-red-genai/chain;node-red-stop;node-red-start'

RAG indexing

=> indexing

Flows

Node-RED flows => flows

References