Create Eval Datasets
Create test datasets and run regression tests against routing rules to ensure consistent quality.
Prerequisites
- A Xilos account with admin access
- At least one routing rule configured
What Are Eval Datasets?
Eval datasets are collections of test cases — each with an input query and an expected output. Run a dataset against a routing rule to verify that the model produces acceptable responses. This is essential for:
- Validating model changes before deploying
- Regression testing when switching models
- Quality assurance for routing rule updates
- Comparing model performance on your specific queries
Step 1: Create a Dataset
- Navigate to Eval Datasets in the sidebar.
- Click Create Dataset.
- Enter a name and description.
- Save the dataset.
Step 2: Add Test Cases
- Open the dataset.
- Click Add Test Case.
- Fill in:
- Input — The user query
- Expected Output — The desired response (or a description of what a good response should contain)
- Notes — Any context about this test case
- Save.
Add multiple test cases covering:
- Common queries (happy path)
- Edge cases (ambiguous, short, long queries)
- Queries that should NOT trigger this rule
- Queries with PII (to test guardrails)
Step 3: Generate Variants (Optional)
Use the Synthetic Data Generator to automatically create edge-case variants:
- Open the dataset.
- Click Generate (sparkles icon).
- Enter a source query.
- Select the number of variants (3-10).
- The SLM generates variants:
- Paraphrases — Same intent, different wording
- Adversarial — Attempts to bypass routing
- Ambiguous — Unclear intent
- Multi-language — Non-English variants
- Review and add the variants to your dataset.
Info: Synthetic data generation uses the internal SLM — it runs locally with zero external API calls.
Step 4: Run the Dataset
- Open the dataset.
- Click Run Tests.
- Select the routing rule to test against.
- Xilos sends each test case through the routing rule's pipeline.
- Results show:
- Actual response for each test case
- Whether it matched the expected output
- Quality scores (faithfulness, relevance)
- Pass/fail status
Step 5: Review Results
After the run completes:
- Review each test case result.
- Identify failures — cases where the response didn't match expectations.
- Adjust the routing rule, model, or system prompt.
- Re-run the dataset to verify improvements.
Best Practices
- Create separate datasets for each routing rule
- Include at least 10-20 test cases per dataset
- Re-run datasets after any model or rule change
- Use synthetic data generation to expand test coverage
- Review failures to identify patterns
- Keep expected outputs updated as your quality requirements evolve