Skip to content

A full-stack demo showing off Trigger.dev Batch triggering and Realtime streams

Notifications You must be signed in to change notification settings

triggerdotdev/batch-llm-evaluator

Repository files navigation

Trigger.dev full-stack batch trigger demo

llm-eval.mp4

This demo is a full stack example that uses the following:

Getting started

  1. After cloning the repo, run npm install to install the dependencies.
  2. Copy the .env.example file to .env and fill in the required environment variables. If you haven't already, sign up for a free Trigger.dev account here and create a new project.
  3. Run npx prisma migrate dev to create the database and generate the Prisma client.
  4. Copy the project ref from the Trigger.dev dashboard and and add it to the trigger.config.ts file.
  5. Run the Next.js server with npm run dev.
  6. In a separate terminal, run the Trigger.dev dev CLI command with with npx trigger dev (it may ask you to authorize the CLI if you haven't already).

Now you should be able to visit http://localhost:3000 and see the app running. Enter a prompt and click "Evaluate" to see the LLM-generated responses.

Relevant code

Learn More

To learn more about Trigger.dev Realtime, take a look at the following resources:

About

A full-stack demo showing off Trigger.dev Batch triggering and Realtime streams

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published