Skip to content

Files

Latest commit

35c96d7 · Jan 8, 2025

History

History

batch-llm-evaluator

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 8, 2025
Jan 8, 2025
Jan 8, 2025
Jan 8, 2025
Jan 8, 2025
Jan 8, 2025
Jan 8, 2025
Jan 8, 2025
Jan 8, 2025
Jan 8, 2025
Jan 8, 2025
Jan 8, 2025
Jan 8, 2025
Jan 8, 2025

README.md

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: