watzen
TypeScript icon, indicating that this package has built-in type declarations

0.1.10 • Public • Published

Copyright IBM Corp. 2023, 2024

WatZen SDK

The Watzen Sofware Development Kit (SDK) enables you to set up a client to query an endpoint from WatZen AI with Retrieval-Augmented Generation (RAG) and Generative AI (GenAI) models.

Installing

npm install watzen

Import into Project

import WatZen from 'watzen' // const WatZen = require('watzen')

async function getData() {
  const model = new WatZen({
    endpoint: process.env.ENDPOINT,
    apikey: process.env.APIKEY,
  })

  console.log('model', model)
}

getData()

Test the SDK Locally

Clone the repository

Build

Install the modules, build the typescript files

npm install
npm run build

Test

To execute the script.js file, test the module.

npm install dotenv node-fetch
cp .env.sample .env
npm run test

Export

To pack the sdk for export

npm pack

Import the watzen-<version>.tgz file into your package.json

"dependencies": {
    "watzen": "file:watzen-<version>.tgz"
},

Readme

Keywords

none

Package Sidebar

Install

npm i watzen

Weekly Downloads

1

Version

0.1.10

License

MIT

Unpacked Size

117 kB

Total Files

71

Last publish

Collaborators

  • stepzen.sam
  • viktor-stepzen
  • stepzen-bot