martincousseau/mermaid-persona-queries
Mermaid Persona Queries (v1) 50 hand-written user queries for evaluating and benchmarking text-to-Mermaid diagram generation, authored across 5 distinct user personas. Users exist within a single company spanning many roles (engineering, HR, finance, ops, support, product, legal, IT) — the dataset varies how people ask, not a business domain. Motivation Real users of text-to-diagram tools do not write uniform prompts. Some paste truncated meeting notes, some… See the full description on the dataset page: https://huggingface.co/datasets/martincousseau/mermaid-persona-queries.
Mermaid Persona Queries (v1)
50 hand-written user queries for evaluating and benchmarking text-to-Mermaid diagram generation, authored across 5 distinct user personas. Users exist within a single company spanning many roles (engineering, HR, finance, ops, support, product, legal, IT) — the dataset varies how people ask, not a business domain.
Motivation
Real users of text-to-diagram tools do not write uniform prompts. Some paste truncated meeting notes, some dictate exact Mermaid specs, some describe graphs formally, and some think out loud with self-corrections mid-sentence. Models evaluated only on clean prompts overestimate their robustness. This dataset provides a small, controlled stress set for persona-conditioned evaluation.
The 5 Personas
Full persona definitions: `personas.md` and the personas config.
Data Fields
`queries` config (50 rows):
`personas` config (5 rows): persona_id, persona_name, persona_style, description.
Usage
from datasets import load_dataset
ds = load_dataset("martincousseau/mermaid-persona-queries") # queries (default)
personas = load_dataset("martincousseau/mermaid-persona-queries", "personas")
# Filter by persona
leo_queries = [r for r in ds["train"] if r["persona_id"] == "P5"]Coverage
- Diagram types exercised: flowchart, sequence diagram, state diagram (v1/v2), ER diagram, Gantt chart, org chart, mind map, class diagram, git graph, timeline, bipartite/directed graphs.
- Input conditions: clean prompts, self-corrected prompts, formal specifications, truncated pastes (mid-word cutoffs preserved), embedded log lines, CSV exports, email thread junk, broken wiki formatting.
- Company roles referenced: hiring (HR), support tiers, DevOps/CI, finance approvals, product launches, office management, sales, data engineering.
This is an input-only dataset: no reference Mermaid outputs are included. It is intended for generation evaluation (LLM-as-judge, rubric scoring, or pairwise comparison), not supervised fine-tuning.
Source & Curation
Queries were hand-authored for this dataset (v1). No personal data, no real company data; all names, systems, and scenarios are fictional. Truncations and noise in P5 queries are deliberate — do not "fix" them.
Limitations
- 50 items: suitable for qualitative eval and regression test suites, not for statistically significant leaderboard claims.
- English only; personas reflect English-language office communication styles.
- Persona labels are author-assigned, not derived from real user studies.
License
CC-BY-4.0. Attribution appreciated.
Citation
@misc{mermaid-persona-queries,
title = {Mermaid Persona Queries: 50 persona-conditioned prompts for text-to-diagram evaluation},
year = {2026},
note = {v1},
howpublished = {\url{https://huggingface.co/datasets/martincousseau/mermaid-persona-queries}}
}