prompt stringlengths 40 143 | domain stringclasses 8
values |
|---|---|
How do I handle class imbalance with resampling with numpy? Explain each step. | data-science |
Explain to a beginner how to parse an ISO-8601 date using Java. | coding |
Compare two ways to build a simple train/validation learning curve using scikit-learn. | data-science |
Draft a reply to a confused customer who says: "support never replied to my last email" | customer-support |
Outline a design doc that explains a payments reconciliation job. | technical-writing |
Compare two ways to plot a histogram of a column using polars. | data-science |
What's the most efficient way to find the longest common subsequence of two strings in TypeScript, and why? | coding |
Solve this for a college student and show your steps: A rectangle's length is twice its width and its area is 72; find the dimensions. | math-word-problems |
Improve the readability of a API reference about a feature flag system. | technical-writing |
What's a common mistake when you compute the correlation matrix of the numeric columns in PyTorch? | data-science |
How do I cache dependencies between CI runs using Kubernetes? | devops |
Give me a polars snippet that will resample a time series to daily frequency. | data-science |
Why might a JavaScript program raise "integer overflow in a calculation", and how do I prevent it? | debugging |
What's a common mistake when you train a logistic regression classifier and report accuracy in SciPy? | data-science |
Why might a C++ program raise "ImportError: module not found", and how do I prevent it? | debugging |
Write a Java function that group anagrams together. | coding |
Give me a seaborn snippet that will impute missing values with the column median. | data-science |
Write a JavaScript function that detect a cycle in a linked list. | coding |
What's a common mistake when you one-hot encode a categorical column in seaborn? | data-science |
I'm getting this error in Go: "TypeError: cannot read property of undefined" What's the likely cause and fix? | debugging |
Optimize a SQL Server query that has to rank employees by salary within each department. | sql |
Using polars, write code to tune hyperparameters with cross-validation. | data-science |
Why might a C++ program raise "file descriptor leak under load", and how do I prevent it? | debugging |
Write a BigQuery query to list products that have never been ordered. | sql |
Write a Kotlin function that group anagrams together. | coding |
Using polars, write code to plot a histogram of a column. | data-science |
Write a PHP function that find all permutations of a list. | coding |
De-escalate a angry customer whose issue is: "the size runs much smaller than listed" | customer-support |
Why might a Python program raise "race condition under load", and how do I prevent it? | debugging |
Draft a reply to a frustrated customer who says: "the warranty claim was denied" | customer-support |
Write unit tests for a Rust function that find all permutations of a list. | coding |
What's the most efficient way to serialize and deserialize a binary tree in PHP, and why? | coding |
Write a Go function that reverse a string. | coding |
De-escalate a anxious customer whose issue is: "I was billed after cancelling" | customer-support |
Explain how to approach this for a high-school student: Compound interest on $1000 at 5% for 3 years — what's the total? | math-word-problems |
How would you memoize a recursive function in Python? Walk through your reasoning. | coding |
I'm getting this error in Python: "memory leak that grows over time" What's the likely cause and fix? | debugging |
Write unit tests for a Java function that find the longest common subsequence of two strings. | coding |
I'm getting this error in Java: "integer overflow in a calculation" What's the likely cause and fix? | debugging |
Explain to a beginner how to compute a moving average over a stream using JavaScript. | coding |
How would you merge two sorted lists in C++? Walk through your reasoning. | coding |
De-escalate a frustrated customer whose issue is: "my discount code didn't apply at checkout" | customer-support |
I'm getting this error in Java: "connection timeout to the database" What's the likely cause and fix? | debugging |
I'm getting this error in Rust: "unhandled promise rejection" What's the likely cause and fix? | debugging |
Review this Kotlin snippet that is meant to parse an ISO-8601 date and point out the bugs. | coding |
What index would help a PostgreSQL query that needs to join orders to customers and filter by region? | sql |
How would you parse an ISO-8601 date in Rust? Walk through your reasoning. | coding |
Review this C# snippet that is meant to flatten a deeply nested list and point out the bugs. | coding |
How do I tune hyperparameters with cross-validation with polars? Explain each step. | data-science |
Troubleshoot a Ansible setup that fails to load secrets from an environment file. | devops |
Outline a onboarding guide that explains an authentication flow. | technical-writing |
Outline a API reference that explains a rate-limiting middleware. | technical-writing |
What's a common mistake when you tune hyperparameters with cross-validation in scikit-learn? | data-science |
Improve the readability of a design doc about a CI/CD pipeline. | technical-writing |
I'm getting this error in Rust: "KeyError on a missing dict key" What's the likely cause and fix? | debugging |
Review this PHP snippet that is meant to serialize and deserialize a binary tree and point out the bugs. | coding |
Optimize a SQLite query that has to compute a running total of revenue. | sql |
What's the most efficient way to find the longest common subsequence of two strings in PHP, and why? | coding |
Write a Terraform configuration to do a zero-downtime rolling update. | devops |
I'm getting this error in Go: "unhandled promise rejection" What's the likely cause and fix? | debugging |
Summarize a rate-limiting middleware for a runbook. | technical-writing |
Write a Java function that compute a moving average over a stream. | coding |
Explain how to approach this for a college student: Compound interest on $1000 at 5% for 3 years — what's the total? | math-word-problems |
Draft a reply to a angry customer who says: "I received the wrong item" | customer-support |
Compare two ways to normalize features to zero mean and unit variance using pandas. | data-science |
Improve the readability of a README about a rate-limiting middleware. | technical-writing |
Using polars, write code to merge two dataframes on a key. | data-science |
Review this Python snippet that is meant to rate-limit a function and point out the bugs. | coding |
Outline a README that explains a webhook integration. | technical-writing |
Refactor a Ruby program that reverse a string to be more readable. | coding |
De-escalate a polite customer whose issue is: "my subscription renewed without warning" | customer-support |
What's a common mistake when you plot a histogram of a column in polars? | data-science |
How would you memoize a recursive function in C#? Walk through your reasoning. | coding |
Troubleshoot a systemd setup that fails to run a matrix build across versions. | devops |
Draft a reply to a angry customer who says: "the app keeps crashing on login" | customer-support |
Write unit tests for a C# function that merge two sorted lists. | coding |
Review this Swift snippet that is meant to group anagrams together and point out the bugs. | coding |
A customer writes: "the product is different from the photos" How should a support agent respond? | customer-support |
I'm getting this error in C++: "memory leak that grows over time" What's the likely cause and fix? | debugging |
Troubleshoot a GitHub Actions setup that fails to provision an S3 bucket with versioning. | devops |
Give me a SciPy snippet that will merge two dataframes on a key. | data-science |
Explain to a beginner how to find the kth largest element using Python. | coding |
Explain to a beginner how to compute the edit distance between two strings using PHP. | coding |
Write unit tests for a Python function that rate-limit a function. | coding |
Give me a seaborn snippet that will tune hyperparameters with cross-validation. | data-science |
Compare two ways to impute missing values with the column median using PyTorch. | data-science |
Why might a Go program raise "KeyError on a missing dict key", and how do I prevent it? | debugging |
Write a Terraform configuration to set up a multi-stage build to shrink an image. | devops |
Optimize a SQLite query that has to find the top 5 customers by total spend. | sql |
Summarize a database migration process for a README. | technical-writing |
Write unit tests for a PHP function that reverse a string. | coding |
Review this Python snippet that is meant to group anagrams together and point out the bugs. | coding |
Using pandas, write code to handle class imbalance with resampling. | data-science |
Explain how to approach this for a college student: What is the area of a circle with circumference 31.4 cm? | math-word-problems |
How would you memoize a recursive function in Kotlin? Walk through your reasoning. | coding |
Walk me through debugging a Rust "race condition under load". | debugging |
What's a best practice for deploy a service with three replicas with Docker? | devops |
How would you detect a cycle in a linked list in Python? Walk through your reasoning. | coding |
How do I one-hot encode a categorical column with polars? Explain each step. | data-science |
What's a common mistake when you handle class imbalance with resampling in scikit-learn? | data-science |
Synthetic Instruction Prompts (8 domains)
Most synthetic prompt sets are a black box. You get a pile of prompts and no idea whether they're actually varied or just the same three sentences wearing different nouns. This one is graded, and the grade is on the card.
It's 2,829 instruction-style prompts across eight domains, generated with SynthKit and then scored by the same tool. The prompts carry no answers. Think of them as seed prompts: you feed them to a model to bootstrap instruction-tuning data, or you use them as a quick eval set. Generation was offline, free, and seeded, so the whole dataset rebuilds byte-for-byte from the script included here.
Domains
Eight domains, weighted toward code because that's where the deepest template space was.
| Domain | Prompts | Example |
|---|---|---|
coding |
859 | "What's the most efficient way to implement an LRU cache in Rust, and why?" |
data-science |
480 | "How do I tune hyperparameters with cross-validation in scikit-learn? Explain each step." |
devops |
320 | "What's a best practice for a zero-downtime rolling update with Kubernetes?" |
debugging |
280 | "I'm getting this error in Python: "IndexError: list index out of range". What's the likely cause and fix?" |
sql |
280 | "Write a PostgreSQL query to compute a 7-day rolling average of sales." |
technical-writing |
260 | "Outline a runbook that explains a backup-and-restore procedure." |
customer-support |
200 | "Draft a reply to a frustrated customer who says: "I was charged twice this month"" |
math-word-problems |
150 | "Solve this for a high-school student and show your steps: two pipes fill a tank in 6 and 9 hours; how long together?" |
| Total | 2,829 |
Splits
| Split | Records |
|---|---|
train |
2,405 |
test |
424 |
The test split is a deterministic 15% hold-out. The two splits share no prompt: the exact-prompt overlap between them is zero. They do share template scaffolding, though, since they come from the same generator, so treat the hold-out as a hold-out, not as an independent benchmark.
Schema
{"prompt": "Write a Go function that detects a cycle in a linked list.", "domain": "coding"}
prompt(string): an instruction-style prompt.domain(string): one of the eight domains above.
What the grader says about it
SynthKit scored the full set, and the report is in quality_report.json:
| Axis | Score | Read it like this |
|---|---|---|
| Overall | B (86.2 / 100) | headline grade |
| Validity | 100 | 2,829/2,829 well-formed |
| Uniqueness | 90.9 | 2,572 unique, 0 exact and 257 near-duplicate |
| Diversity | 66.7 | distinct-1 0.015 · distinct-2 0.043 · self-similarity 0.004 |
| Contamination | n/a | not measured, because there's no external benchmark to check against |
Here's what those numbers actually mean, because the grade is honest about a real limitation. The prompts are template-generated, so a lot of them share scaffolding and differ only by a slot: the language, the library, the task. That's why the near-duplicate count isn't zero and the diversity score sits in the sixties. The distinct-n figures also fall on their own as any corpus grows, which is why diversity leans on the self-similarity number instead (0.004 is very low, which is the good direction). So: a diverse-enough seed bank, not a high-entropy corpus. That's the honest framing.
Usage
from datasets import load_dataset
ds = load_dataset("LaelaZ/synthetic-instruction-prompts")
train, test = ds["train"], ds["test"]
# Pull one domain
sql = train.filter(lambda r: r["domain"] == "sql")
# The usual move: send each prompt through your own model to get the answers
for r in train.select(range(3)):
print(r["domain"], "|", r["prompt"])
How it was generated
Eight SynthKit seed specs (templates with {slot} placeholders plus filler lists) were sampled with provider=none, which produces the prompt only and costs nothing. Then the prompts were deduplicated, pooled, and split. It runs on the Python standard library alone and is a pure function of the seeds plus the RNG seed (17). The generator comes with the dataset as generate.py, so pip install synthkit && python generate.py rebuilds every file here, byte-for-byte. Edit the SPECS dict to add your own domains.
What it's good for, and what it isn't
Use it as seed prompts for synthesizing instruction-tuning data (run them through your own model to get responses), as a lightweight multi-domain eval prompt set, or as a worked example of grading synthetic data.
Don't train a model on it directly, because there are no responses. It's also template-generated, so the lexical diversity is bounded, and it's English-only. Use it to seed and to test, not to measure a model's capability.
License & citation
MIT © 2026 Laela Zorana.
@misc{zorana_synth_instruction_prompts_2026,
author = {Laela Zorana},
title = {Synthetic Instruction Prompts (8 domains)},
year = {2026},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/datasets/LaelaZ/synthetic-instruction-prompts}}
}
Links: SynthKit on GitHub · live grader Space · siblings: synthkit-demo · synthetic-ecommerce
- Downloads last month
- 35