1.0.0 • Published 5 months ago

@last-minute/genai v1.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 months ago

Zowe GENAI Plug-in

Zowe CLI GENAI Plugin allows product developers and architects to evaluate a usefulness of AI without a need of complex tool installation.
Users can conveniently test different models using a range of input types, including local files, mainframe datasets, or USS files.

demo

Local build

  • npm install
  • npm run build

Installation

From a public registry:

  • zowe plugins install @last-minute/genai

From a local build:

  • zowe plugins install c:\projects\Last-Minute

Usage

To use Huggingface provider, you need to generate access token and provide it either as command parameter --api-token or store it in genai config profile.

Available commands

  • answer - Answer a question from provided input data
    zowe genai answer question "What happened to the captain?" --from-dsn "USER.DEMO.TEXT(LONG)"

  • generate - Generate text
    genai generate text --initial-text "Which car should I buy if I like high speed?" --model "zephyr-7b-beta" --max-tokens 40

  • summarize - Summarize text
    zowe genai summarize text --from-dsn "USER.DEMO.TEXT(SAMPLE)"

  • translate - Translate text
    zowe genai translate text --from-dsn "USER.DEMO.TEXT(SAMPLE)" --model "Helsinki-NLP/opus-mt-en-de"

Help and documentation

To access documentation use --help option or generate an interactive web help with --hw option.