Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 539 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 539 Bytes

gradient-sdk-python-example

Quick example of how to use Gradient API with Python.

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 poetry install
  3. Run any of the following:
    • poetry run blocks
    • poetry run embeddings
    • poetry run fine_tune
    • poetry run guidance
    • poetry run rag

Example

Alt Text