Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 515 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 515 Bytes

gradient-sdk-typescript-example

Quick example of how to use Gradient API with TypeScript.

Setup

The code relies on environment variables. They can be injected through dotenv by creating .env file in the current directory:

GRADIENT_ACCESS_TOKEN=...
GRADIENT_WORKSPACE_ID=...

Usage

  1. Clone this repo
  2. Run yarn install
  3. Run any of the following:
    • yarn blocks
    • yarn embeddings
    • yarn fine-tune
    • yarn guidance
    • yarn rag

Example

Alt Text