Skip to main content

Basic Examples

You can find many basic examples in the examples/basic/src folder on GitHub.

Usage

In the examples/basic folder:

  1. Create .env file with the necessary keys for the integrations that you want to use:
OPENAI_API_KEY="YOUR_OPENAI_API_KEY"
COHERE_API_KEY="YOUR_COHERE_API_KEY"
HUGGINGFACE_API_KEY="YOUR_HUGGINGFACE_API_KEY"
...
  1. Setup:
pnpm install
  1. Run any example. You can explore the src folder to find the examples:
pnpm tsx src/path/to/example.ts