1.3.2 • Published 2 years ago
@paulkinlan/transformerjs-breadboard-kit v1.3.2
"Google Labs Breadboard" TransformerJS Nodes Kit
This is a collection of Breadboard nodes that let you integrate transformerjs in to your apps built with Breadboard.
Installing
This Kit requires Node version >=v19.0.0. To install:
npm install @paulkinlan/transformerjs-breadboard-kitNode Types
Here are all node handlers that are included in the OpenAI Breadboard Kit
The pipeline node
Takes an input
Inputs:
inputrequired. The value to be checked if undefined.taskrequired. The transformerjs task to be used (tested:sentiment-analysis,summarize)modeloptional.
Outputs:
modelResult- likely an array of results returned by thetransfomerjslogic as defined bytaskandmodel
The summarize node
inputrequired. The text to be summarized.modeloptional. The model to use. This will be loaded by transformjs. The default isXenova/distilbart-cnn-6-6.
Outputs:
modelResult- an array of{ "summary_text": "[some text]" }
The sentiment-analysis node
inputrequired. The text to be analysed for sentiment.modeloptional. The model to use. This will be loaded by transformjs. The default isXenova/distilbert-base-uncased-finetuned-sst-2-english.
Outputs:
modelResult- an array of objects of the form:{ "label": "POSITIVE", "confidence": 0.9995 }