Quick example of how to use Gradient API with TypeScript.
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=...
- Clone this repo
- Run
yarn install
- Run any of the following:
yarn blocks
yarn embeddings
yarn fine-tune
yarn guidance
yarn rag