Vellum is coming to the AI Engineering World's Fair in SF. Come visit our booth and get a live demo!
Synthetic Test Case Generation for LLM Evaluation

Easily test your AI workflows with Vellum—generate tons of test cases automatically and catch those tricky edge case

4min
Written by
Reviewed by:
No items found.

Debugging AI workflows often feels like chasing shadows, especially when trying to verify that your LLM is giving the right answers in every possible scenario. At Vellum, we know this challenge all too well, and that’s why we’ve introduced a solution to simplify this process: synthetic test case generation.

Here’s the gist:

When you’re building AI systems, you need test cases that simulate real user interactions.

For instance, we created a chatbot designed to answer questions about our company’s security policies. A user might ask, “What encryption does Acme Company use for my OpenAI key?” The chatbot should respond with the correct details—say, "AES-256 encryption per our trust center policy."

But generating enough test cases to cover edge cases, obscure questions, and everything in between is time-consuming.

That’s where synthetic test case generation steps in.

Synthetic test case generation in Vellum

To generate synthetic test cases in Vellum we can define an Evaluation suite and run a custom Workflow that we designed for this purpose. Here’s a walkthrough on how we were able to create synthetic test cases for our “Trust Cener” Q&A bot:

Generating a Test Case Suite

We first start by defining an Evaluation suite in Vellum. We added a metric (e.g., "Ragas - Faithfulness") by naming it, describing its purpose, and mapping the output variable (e.g., "completion") to the target variable:

Then, we created one Evaluation Suite example for the LLM to generate more from. In our case, we set up this starter Test Suite:

Creating the Workflow Template

Next, we set out to build a Workflow that could automatically generate test cases for the Evaluation Suite we just configured.

To achieve this, we designed a multi-step Workflow that performs two key tasks:

  • Uses LLMs to generate test cases based on defined criteria
  • Leverages our API endpoints to bulk upload the newly generated test cases into the specified Evaluation Suite

Here’s the final version of the workflow:

Running the Workflow Template

To run the workflow we provided these three variables:

  • Workflow Purpose: We specify what our AI system does
  • Test Suite Name: We add our Test Suite name that we generated. In this case we just type: trust-center-synthetic-generated-tests
  • Number of test cases: We then add the number of test cases we want to generate

Then, once we ran the Workflow, the newly generated test cases were upserted directly into our Evaluation suite, ready to be tested against our custom metrics like Ragas faithfulness:

Why It Matters

Manually writing test cases is painful and doesn’t scale. Synthetic test case generation saves time, ensures you test a wider range of user interactions and it can adapt as your AI workflows grow in complexity.

Our customers tell us this feature is a game-changer. You’re no longer stuck writing endless test cases by hand or worrying about missing critical scenarios.

Want to try it for yourself? Let us know—we’re here to help!

ABOUT THE AUTHOR
Nico Finelli
Founding GTM

Nico is a Data Scientist specializing in machine learning and AI, with a knack for building innovative solutions. As a founding GTM leader, he bridges the gap between technical expertise and go-to-market strategy.

ABOUT THE reviewer

No items found.
lAST UPDATED
Nov 20, 2024
Share Post
Expert verified
Related Posts
LLM basics
September 18, 2025
7
Top 11 Low‑Code AI Workflow Automation Tools: Compared & Reviewed (2025)
All
September 16, 2025
12 min
MCP UI & The Future of Agentic Commerce
Guides
September 16, 2025
4 min
Google's AP2: A new protocol for AI agent payments
Guides
September 15, 2025
6 min
We don’t speak JSON
LLM basics
September 12, 2025
10 min
Top 13 AI Agent Builder Platforms for Enterprises in 2025
LLM basics
September 12, 2025
8 min
Top 12 AI Workflow Platforms in 2025
The Best AI Tips — Direct To Your Inbox

Latest AI news, tips, and techniques

Specific tips for Your AI use cases

No spam

Oops! Something went wrong while submitting the form.

Each issue is packed with valuable resources, tools, and insights that help us stay ahead in AI development. We've discovered strategies and frameworks that boosted our efficiency by 30%, making it a must-read for anyone in the field.

Marina Trajkovska
Head of Engineering

This is just a great newsletter. The content is so helpful, even when I’m busy I read them.

Jeremy Hicks
Solutions Architect

Experiment, Evaluate, Deploy, Repeat.

AI development doesn’t end once you've defined your system. Learn how Vellum helps you manage the entire AI development lifecycle.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Email Signup
Sorts the trigger and email categories
Come to our next webinar
Description for our webinar
New CTA
Sorts the trigger and email categories

Start with some of these healthcare examples

SOAP Note Generation Agent
This agentic workflow generates a structured SOAP note from a medical transcript by extracting subjective and objective information, assessing the data, and formulating a treatment plan.
Personalized healthcare explanations of a patient-doctor match
An AI workflow that extracts PII data and match evidence then summarizes to the user why a patient was matched with a specific provider, highlighting factors like insurance, condition, and symptoms.

Start with some of these insurance examples

Insurance claims automation agent
This workflow automates the claims adjudication process in the insurance industry. It collects and analyzes claim information, assesses risks, verifies policy details, and generates a final decision along with a comprehensive audit trail.

Start with some of these agents

Automated Code Review Comment Generator for GitHub PRs
This agentic workflow automates the process of generating a code review comment for a GitHub pull request based on predefined guidelines. It retrieves the pull request details, analyzes the code changes, and formats a structured comment that can be posted back to GitHub.
React Agent for Web Search and Page Scraping
This React agent can perform web searches and scrape web pages based on user queries. It allows users to interact with the agent, which gathers information from the internet and provides responses with citations.
Agent that summarizes lengthy reports (PDF -> Summary)
This agent summarizes a PDF document by processing its contents through the Vellum Document API and generating a user-friendly summary. It allows users to input a document ID and receive a concise summary of the document's text.