promptslab / PromptifyJs

Solve NLP Problems with Large Language Models in JavaScript
Apache License 2.0
21 stars 3 forks source link

binary classification example #17

Closed eren23 closed 1 year ago

eren23 commented 1 year ago

binary classification example added

Usage: node example/binaryClassificationExample.js

Input: "i have been with petronas for years i feel that petronas has performed well and made a huge profit"

Output:

choices: [
    {
      text: '\n[positive]',
      index: 0,
      logprobs: null,
      finish_reason: 'stop'
    }
  ],