Query-able node based on watsonx.ai
You need to get account in IBM Cloud first.
You also have to prepare IAM API Key of your IBM Cloud account. You also need Project ID for your project of IBM Watson Studio and IBM Watson Machine Learning, lite(free) plan would be OK.
At last, you would prepare Node-RED.
-
In Node-RED, you can search node-red-contrib-dotnsf-watsonxai node. You need to install this node in your Node-RED.
-
You will see watsonx.ai node under
function
category. Drag & Drop this node into Node-RED's canvas. -
Open properties box. You need to edit API Key field with your API Key.
-
You also need to edit Project ID field with your Project ID.
-
Connect nodes. You have to input query text as msg.payload into watsonx.ai node. Then watsonx.ai node would output generated text in its msg.payload.
This code is licensed under MIT.
2023 K.Kimura @ Juge.Me all rights reserved.