Sub topic 11
Pitfalls: synthetic bias, brand leakage and leading prompts
This chapter assumes you have already collected, scrubbed, deduplicated, labelled and clustered real customer questions, and that you can read short Python scripts. It covers three ways a prompt set built from good data can still produce misleading measurements, and how to catch each one before you run the set against an AI assistant or AI search feature.
Why these pitfalls matter
A prompt set is a measuring instrument. If the instrument pushes the answer in a direction, every result inherits that push, and the error is hard to see afterwards. You will see a score and assume it describes how customers experience AI answers. It may only describe how your own prompts behave.
The three pitfalls below each enter at a different step.
| Pitfall | Where it enters | What it does to results |
|---|---|---|
| Synthetic bias | Writing or expanding prompts with a language model or by hand | Prompts sound tidy and uniform, so they miss the messy wording customers use |
| Brand leakage | Phrasing prompts from internal material | Prompts name your brand or use your vocabulary, so the assistant is steered toward you |
| Leading prompts | Rewriting a question into a prompt | The prompt contains a premise or a preferred answer |
Synthetic bias
Synthetic bias is the drift away from real customer language that happens when prompts are generated rather than collected. The usual source is asking a language model to "write 50 more questions like these" so a small cluster looks bigger. The same drift happens when a team member writes prompts from memory.
Generated questions tend to share a set of traits:
- They are grammatical, complete and polite. Real questions are often fragments such as "refund after 30 days?" or contain typos.
- They are specific in the same way. A model favours well-formed, textbook phrasing, so ten generated prompts often differ only in a few swapped words.
- They cover the middle of a topic. Odd edge cases, complaints and angry phrasing are underrepresented.
- They reuse the model's own vocabulary. If the generator and the assistant under test come from the same family, the assistant may find the prompts unusually easy.
The last point is the most damaging. A generated prompt can look natural to you and still be unlike anything a customer typed.
Keep synthetic prompts labelled and capped
You do not have to ban generated prompts. You have to track them. Add a field to each record so you can always separate real from generated wording:
{"id":"q-0042-v2","text":"Can I move my subscription to a different email address?","source":"support_tickets","origin":"real","parent":null}
{"id":"q-0042-v2-g1","text":"How do I change the email attached to my subscription?","source":"support_tickets","origin":"generated","parent":"q-0042"}Then apply two rules. First, report results for real and generated prompts separately, so a gap between them is visible. Second, cap generated prompts at a fixed share of the set, for example 20 percent, and only use them to fill clusters that have too few real examples.
Measure how far generated prompts drift
A cheap drift check compares the vocabulary of the generated prompts with the vocabulary of the real ones. If many words in generated prompts never appear in real questions, the generator is inventing its own language.
import re
def words(text):
return re.findall(r"[a-z']+", text.lower())
def novel_word_rate(generated, real):
real_vocab = {w for q in real for w in words(q)}
gen_words = [w for q in generated for w in words(q)]
if not gen_words:
return 0.0
novel = [w for w in gen_words if w not in real_vocab]
return len(novel) / len(gen_words)
real = [
"cant log in after password reset",
"refund after 30 days?",
"move my subscription to new email",
]
generated = [
"What is the process for transferring a subscription to an alternative email address?",
"How can I obtain a reimbursement after the thirty day period?",
]
print(f"novel word rate: {novel_word_rate(generated, real):.2f}")There is no universal threshold. Run the check on a sample of held-out real questions against your real set first. That gives you a baseline, and a generated set far above the baseline needs rewriting or trimming.
Brand leakage
Brand leakage happens when a prompt contains information that real customers would not have supplied, most often your brand name or product vocabulary. It enters in three ways.
- Explicit brand names. A customer who has not yet chosen a vendor asks "best invoicing tool for freelancers", not "is Acme Invoice good for freelancers". A prompt that names your brand tests whether the assistant knows you. It does not test whether the assistant recommends you.
- Internal terminology. Your team calls a feature "Smart Routing". Customers say "send tickets to the right person". Prompts written with the internal term pull in answers that match your documentation and miss the way people search.
- Source contamination. Sales and support transcripts often include the agent's wording. If an agent said "our Premium tier" and the scrubbing step kept it, the phrase lands in the prompt.
The fix depends on the question type. Many measurements need both kinds of prompt, so keep them apart instead of mixing them:
- Unbranded prompts measure discovery. The customer does not name anyone.
- Branded prompts measure how the assistant describes you once the customer asks about you. Real customers do ask these, usually in sales and review sources.
Label each prompt as branded or unbranded and report them separately. Averaging them together hides the difference between being found and being described.
A simple lint for brand terms and internal jargon
Build a list of your brand names, product names and internal terms, then flag any prompt that contains one. The script below also flags competitor names, because a prompt that names a competitor is a comparison and should be labelled as such.
import re
BRAND_TERMS = {"acme", "acme invoice"}
COMPETITOR_TERMS = {"billwise", "payloop"}
INTERNAL_JARGON = {"smart routing", "premium tier"}
def contains_term(text, terms):
lowered = text.lower()
return any(re.search(rf"\b{re.escape(t)}\b", lowered) for t in terms)
def lint_prompt(text):
flags = []
if contains_term(text, BRAND_TERMS):
flags.append("brand")
if contains_term(text, COMPETITOR_TERMS):
flags.append("competitor")
if contains_term(text, INTERNAL_JARGON):
flags.append("jargon")
return flags
prompts = [
"best invoicing tool for freelancers",
"Is Acme Invoice good for freelancers?",
"how does smart routing work for support tickets",
]
for p in prompts:
print(lint_prompt(p), "-", p)The first prompt passes with no flags. The second is flagged brand and should be moved to the branded group. The third is flagged jargon and should be rewritten using the wording from the source tickets, such as "send tickets to the right person automatically".
Leading prompts
A leading prompt contains a premise or preferred answer, so the assistant is nudged to agree. You can introduce it while rewriting a clean question into a prompt, usually without noticing.
Common forms:
- Embedded premise. "Why is Acme faster than other tools?" assumes Acme is faster. A neutral version is "which invoicing tools are fastest to set up?"
- Evaluative wording. "What are the problems with the leading tools?" invites a list of problems. A neutral version asks "what should I compare when choosing an invoicing tool?"
- Closed yes/no framing. "Is it true that refunds take 30 days?" invites confirmation. If customers asked an open question, keep it open: "how long do refunds take?"
- Over-specified context. Adding details the customer never gave, such as a price limit or a feature, narrows the answer toward a product you already know fits.
The rule of thumb is to preserve the question the customer asked and nothing more. If you rewrite a question for clarity, compare the rewrite with the original and check that it asks for the same thing.
Flag likely leading wording
Pattern matching will not catch every leading prompt, but it finds the common ones for human review:
import re
LEADING_PATTERNS = [
r"^why is .+ (better|faster|cheaper|safer|best)\b",
r"\bis it true that\b",
r"\b(obviously|clearly|surely)\b",
r"\bwhat are the (problems|drawbacks|issues) with\b",
]
def leading_flags(text):
lowered = text.lower().strip()
return [p for p in LEADING_PATTERNS if re.search(p, lowered)]
for p in [
"Why is Acme faster than other tools?",
"which invoicing tools are fastest to set up?",
]:
print(bool(leading_flags(p)), "-", p)Related biases to check at the same time
Several smaller problems often appear alongside the three above.
- Source bias. Support tickets over-represent people with problems. Sales calls over-represent buyers close to purchase. If one source supplies most of the set, the set reflects that source's customers, not all customers. Report the share of prompts per source.
- Duplicate inflation. If near-duplicates survive deduplication, one popular question can fill a whole cluster and distort frequency-weighted sampling.
- Survivorship. Customers who left without asking never appear in tickets. Search and review sources help fill that gap.
- Staleness. A prompt about a discontinued plan measures nothing useful. Check each prompt against current products when you refresh the set.
A review routine before release
Run the checks as a short routine each time you build or refresh the set.
- Count prompts by
origin(real or generated) and confirm generated prompts stay under your cap. - Run the novel word rate on generated prompts and compare it with your baseline.
- Run the brand, competitor and jargon lint. Move flagged prompts to the right group or rewrite them from source wording.
- Run the leading-wording lint. Read every flagged prompt next to its original question.
- Read a random sample of about 30 prompts aloud. Wording that no customer would say stands out quickly.
- Record the outcome of each check in the set's change notes so the next refresh can compare.
A second reviewer who did not write the prompts catches more than the author does. The author already knows what each prompt is meant to ask, so leading wording reads as normal.
Exercise
A teammate expands a thin cluster by asking a language model for 40 more questions and adds them to the set with no labels. Name two problems this causes and one change that fixes them.
Show answer
The generated prompts hide synthetic bias, because they are tidier and more uniform than real questions, and they can no longer be told apart from real ones, so any score gap between real and generated wording cannot be seen. Frequency-weighted sampling is also distorted, because the generated prompts inflate the cluster's size. The fix is to label each prompt with an origin field (real or generated), cap generated prompts at a fixed share of the set, and report results for each origin separately.
Exercise
The prompt "Why is Acme Invoice the easiest tool for freelancers to set up?" appears in your draft set. Identify the pitfalls it contains and write two replacement prompts that fix them.
Show answer
It has brand leakage (it names Acme Invoice) and a leading premise (it assumes the product is the easiest). Replacements: an unbranded prompt such as "which invoicing tools are easiest for freelancers to set up?" for discovery, and a branded neutral prompt such as "how easy is Acme Invoice to set up for a freelancer?" for the branded group. Each should be labelled and reported separately.
Exercise
Your lint flags the ticket-derived prompt "is it true that refunds take 30 days?" as leading. Should you rewrite it? Explain.
Show answer
Not automatically. The wording came from a real customer, so it reflects how some customers ask. Keep it, label it as real wording, and consider adding a separate neutral prompt ("how long do refunds take?") from the same cluster. Rewriting every flagged prompt would remove the real phrasing the set is meant to preserve.