Basic Examples
You can find many basic examples in the examples/basic/src folder on GitHub.
Usage
In the examples/basic
folder:
- 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"
...
- Setup:
pnpm install
- Run any example. You can explore the
src
folder to find the examples:
pnpm tsx src/path/to/example.ts