﻿# Ragas synthetic testsets: graph-building choices shape which questions can exist

Audit Ragas document splitting, property extraction, graph relationships and scenario selection before treating a generated testset as coverage of user needs.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-ragas-testset-graph-transform-scenario-distribution/
Language: en

## Identify the population being manufactured

A large synthetic question set can omit important user needs if its generation graph never represents the required relationships. The [Ragas generation guide](https://docs.ragas.io/en/stable/concepts/test_data_generation/rag/) describes document splitting, extraction, relationship building and scenario synthesis. Treat these as selection mechanisms. The final questions reflect what those stages made reachable, not an automatically representative sample of actual search demand or application traffic.

## Inspect properties before building edges

Extracted entities or key phrases become inputs to relationship construction. If extraction misses an alias or merges different entities, later graph traversal inherits that error. Inspect representative node properties before tuning how many questions to generate. A shared entity can justify a connection for one scenario without establishing that every connected pair supports a meaningful comparison. Preserve source passage identity so questionable relationships can be traced back to the actual documents.

## Respect transform dependencies

The guide describes ordered transforms and selected parallel execution. A relationship builder that depends on extracted properties must consume the intended completed output. Do not assume that wrapping arbitrary stages in parallel execution preserves their semantic dependencies. Audit required properties and resulting edge counts on a small corpus. An apparently successful generation run can still sample a graph with missing relationships, stale properties or a different connectivity pattern from the one the author intended.

## Separate scenario counts from real demand

The [dataset documentation](https://docs.ragas.io/en/stable/concepts/datasets/) provides the experiment context, while the [evaluation-sample guide](https://docs.ragas.io/en/stable/concepts/components/eval_sample/) explains record structure. A scenario can combine selected nodes, question style and length. Increasing its generated count does not demonstrate that users commonly ask that type of question. Report the generation distribution as an authored test design and compare it with observed workloads only when such workload evidence is actually available.

## Review graph coverage before adding volume

Inspect isolated nodes, heavily connected entities and the source combinations used by multi-hop questions. Include a diagnostic relationship that should exist and another that should not. The guides to [synthetic golden answerability](/journal/fg2-deepeval-golden-evolution-context-answerability/) and [holdout controls](/journal/rag-synthetic-testset-leakage-controls/) provide related checks. Accept the testset when its graph and scenario rules explain the intended coverage, preserving the difference between generating many fluent questions and testing a deliberately chosen set of application capabilities.
