model string | n int64 | json_valid_pct float64 | all_keys_pct float64 | hallucinated_money_pct float64 | seconds_per_generation float64 | mean_nll float64 | perplexity float64 | target_tokens int64 | nll_reduction_pct float64 |
|---|---|---|---|---|---|---|---|---|---|
Qwen/Qwen2.5-0.5B-Instruct (base) | 60 | 100 | 100 | 0 | 2.6 | 0.941 | 2.56 | 4,550 | null |
Qwen/Qwen2.5-0.5B-Instruct + LoRA | 60 | 100 | 100 | 10 | 3.2 | 0.5048 | 1.66 | 4,550 | 46.4 |
Food Delivery Support Tickets (synthetic)
10,153 synthetic English customer-support conversations for a food delivery platform (Γ la Wolt / Uber Eats / DoorDash). Each record is a realistic customer message with structured labels and a professional agent resolution + reply.
Built for the Food Delivery Support Copilot β an assistant that classifies an incoming ticket, retrieves similar resolved cases, and drafts a reply.
How it was made
Generated locally with the Hugging Face model
Qwen/Qwen2.5-3B-Instruct-GGUF (Q4_K_M) via llama-cpp-python (Apple Metal).
The strategy is fully spec-conditioned: we sample each ticket's specification
(category, urgency, sentiment, order context, and diversity levers β restaurant,
city, tone, dish, issue sub-variant), and the model writes only the free text.
Batches are category-homogeneous with category-specific few-shot exemplars to
keep the small model on-topic.
Because the labels are sampled rather than annotated, category is ground truth by
construction β the model was asked to write about that topic, and it did. sentiment
and urgency are not: the model was asked to express them and largely did not.
Both are measured and quantified below; please read that section before using either
column.
See notebooks/01_data_generation.ipynb (generation) and src/ for the code.
Fields
| field | description |
|---|---|
id |
row id |
customer_message |
the customer's support message |
category |
one of 8 issue types (below) |
urgency |
low / medium / high |
sentiment |
negative / neutral / positive |
order_value |
order value in USD |
delay_minutes |
delivery delay in minutes |
customer_history |
short customer tenure note |
resolution |
the concrete action the agent took |
agent_reply |
the professional reply sent to the customer |
EDA & cleaning
The dataset was cleaned in notebooks/02_eda.ipynb: exact + near-duplicate
messages (TF-IDF cosine), length outliers, and sentiment/label mismatches
(the main class of model mistake observed) were detected and removed. Category
balance is preserved after cleaning. Figures are under reports/.
Category distribution
| category | count | share |
|---|---|---|
| cancellation | 1209 | 11.9% |
| cold_food | 1297 | 12.8% |
| courier_problem | 1220 | 12.0% |
| late_delivery | 1309 | 12.9% |
| missing_item | 1309 | 12.9% |
| payment_issue | 1265 | 12.5% |
| refund_request | 1248 | 12.3% |
| wrong_order | 1296 | 12.8% |
Sentiment distribution
| sentiment | count | share |
|---|---|---|
| negative | 6342 | 62.5% |
| neutral | 3379 | 33.3% |
| positive | 432 | 4.3% |
Urgency distribution
| urgency | count | share |
|---|---|---|
| low | 2858 | 28.1% |
| medium | 4657 | 45.9% |
| high | 2638 | 26.0% |
Known limitations β which labels you can trust
Short version: category is reliable. sentiment and urgency are not, and both
fail for the same structural reason β they were sampled as part of the spec rather than
derived from the text the generator produced. We measured both rather than assuming.
sentiment contradicts its own text ~84% of the time
We audited the cleaned data with an independent classifier
(distilbert-base-uncased-finetuned-sst-2-english, disagreements counted only at
β₯ 0.90 confidence). It is not part of the generation or cleaning pipeline, so its
verdict is evidence rather than a restatement of our own heuristic.
| our label | audited | high-confidence disagreements | rate |
|---|---|---|---|
positive |
432 (all) | 364 | 84.3% |
negative |
200 (sample) | 7 | 3.5% |
About 84% of rows labeled positive read as negative to an
independent model. This is an instruction-following failure, not random noise:
generation is spec-conditioned, but all 8 categories are complaint categories, so
a 3B model asked to write a "positive" message about being double-charged writes a
complaint anyway. It follows the category and drops the sentiment instruction.
category is unaffected β the text follows the category faithfully, which is why a
classifier on it reaches 98.8%.
If you use this dataset: treat sentiment as the requested sentiment rather than
the expressed one. Our own app derives sentiment from the message text at inference time
instead of trusting the column, and retrieval relevance is defined by category only.
See notebooks/02_eda.ipynb section 7b for the full analysis.
urgency has the same problem, less severely
A logistic-regression classifier trained on message embeddings reaches
44.7% accuracy against a 45.8% majority-class baseline β it is
worse than always guessing medium. Supporting evidence: delay_minutes runs
backwards with respect to the label (tickets marked high average a shorter delay
than tickets marked low).
The cause is the same as for sentiment: urgency was sampled from category-conditional
priors independently of the text the model then wrote, so the message never had to
express it. The only recoverable structure is weak and category-level.
Treat urgency as a category-correlated random draw, not as a property of the message.
See notebooks/04_classifier.ipynb section 3.
Embedding model selection
Three Hugging Face models were scored on the identical 3,000-row
stratified sample, leave-one-out, relevance = same category:
| model | dim | Recall@5 | Precision@5 | MRR@10 | encode s/1k | size MB |
|---|---|---|---|---|---|---|
sentence-transformers/all-MiniLM-L6-v2 |
384 | 0.9910 | 0.9075 | 0.9642 | 1.5 | 86.7 |
sentence-transformers/all-mpnet-base-v2 |
768 | 0.9927 | 0.9380 | 0.9758 | 9.6 | 417.7 |
BAAI/bge-small-en-v1.5 |
384 | 0.9933 | 0.9324 | 0.9751 | 3.2 | 127.3 |
random baseline |
β | 0.4807 | 0.1230 | 0.2745 | β | β |
Winner: BAAI/bge-small-en-v1.5 β best Recall@5, statistically level with
all-mpnet-base-v2 on the other metrics while being ~3x faster and ~3x smaller.
Silhouette score against the category labels: 0.203.
Precomputed embeddings for all rows are in embeddings/embeddings.npy (float32,
L2-normalized, row order identical to data/dataset.parquet).
See notebooks/03_embeddings_recsys.ipynb.
Reproducibility
To regenerate a dataset with identical structure, category balance, and label distributions:
- Open
notebooks/colab_generate.ipynbin Google Colab. - Runtime β Change runtime type β T4 GPU.
- Runtime β Run all (~30β40 min).
- Download
food_support_raw.jsonland runnotebooks/02_eda.ipynb.
Reproducibility notes. The spec sampler uses seed=42, so every run produces
the exact same sequence of (category, urgency, sentiment, order_context, dish,
variant) tuples. The free-text fields (customer_message, resolution,
agent_reply) are LLM-generated with temperature=0.8, top_p=0.95, so their
exact wording varies run-to-run β this is intentional (deterministic decoding
collapses to near-identical tickets and hurts recsys evaluation). Structural
guarantees hold across runs: same 8 categories, same balance, same label
distributions, same schema, same overall quality.
Model: Qwen/Qwen2.5-3B-Instruct (Hugging Face); Colab uses full fp16, local
runs use the Q4_K_M GGUF via llama-cpp-python.
Intended use
Recommendation (retrieve similar resolved tickets via embeddings) and generation (draft agent replies). Synthetic data β not real customers.
- Downloads last month
- 96



