# Function Node and complete Flow for the GPT4All-J AI Text Generator Model

**URL:** <https://discourse.nodered.org/t/function-node-and-complete-flow-for-the-gpt4all-j-ai-text-generator-model/77771>\
**Category:** Share Your Projects\
**Created:** [21 April 2023 04:39 UTC](https://discourse.nodered.org/t/function-node-and-complete-flow-for-the-gpt4all-j-ai-text-generator-model/77771 "2023-04-21T04:39:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rozek](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rozek/32/48594_2.png) [@rozek](https://discourse.nodered.org/u/rozek)\
**Post date:** [21 April 2023 04:39 UTC](https://discourse.nodered.org/t/function-node-and-complete-flow-for-the-gpt4all-j-ai-text-generator-model/77771/1 "2023-04-21T04:39:51Z")

</div>

As promised yesterday: the function node for the GPT4All-J AI text generator model is fully available now. **Please note: inference runs on the CPU (without requiring any special hardware) but still completes within a few seconds.**

Having GPT4All-J inference as a self-contained Node-RED node gives you the possibility to create your own user interface or even build autonomous agents.

The distribution comes with a flow both for the basic function node and a complete HTTP endpoint which responds to incoming requests. Also attached is a trivial web page which can be used as a user interface for the AI model.

See the related [GitHub repository](https://github.com/rozek/node-red-flow-gpt4all-j) for instructions on how to install and use it.

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [21 April 2023 05:46 UTC](https://discourse.nodered.org/t/function-node-and-complete-flow-for-the-gpt4all-j-ai-text-generator-model/77771/2 "2023-04-21T05:46:41Z")

</div>

You could not create a single topic for all your function node posts ?

---

<div class="post-metadata">

**Author:** ![rozek](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rozek/32/48594_2.png) [@rozek](https://discourse.nodered.org/u/rozek)\
**Post date:** [21 April 2023 09:27 UTC](https://discourse.nodered.org/t/function-node-and-complete-flow-for-the-gpt4all-j-ai-text-generator-model/77771/3 "2023-04-21T09:27:34Z")

</div>

Well, there is one (namely [this](https://discourse.nodered.org/t/function-nodes-for-several-ai-text-generators/77750/2)) which you may use for general questions. The specific ones should be used for specific questions, as all function nodes differ in installation, use and the model itself and may lead to specific problems - splitting threads helps me and others to differentiate between these...
