By Abhijith N M · Reviewed 24 October 2026 · Editorial standards
A utility used a Claude-based assistant to triage outage reports. Reports written in short, clipped sentences went to a low-priority queue. The reasoning was sensible: a short report usually describes a brief outage.
Six months later an analyst checked the queue by postcode. Customers in two districts had median resolution times four times longer than the rest of the city. Those districts had more renters, more shared meters, and more customers writing in a second language. The model had learned a proxy, and the proxy correlated with who lived there.
Nobody wrote a biased rule. The system was fair by intent and unequal in effect. That gap is what this lesson asks you to design against, because you cannot audit an intention.
In a large language model system, bias rarely comes from the model alone. It enters through five doors, and four of them have your team's name on them.
| Door | What it looks like | Owner | Control |
|---|---|---|---|
| Data selection | The retrieval corpus covers one region or one customer type | Data team | Coverage check per slice |
| Examples and labels | Every few-shot example comes from the same kind of customer | Prompt owner | A representative example set |
| Retrieval and ranking | Popular documents outrank correct ones for some languages | Platform team | Per-language recall test |
| Prompt framing | Defaults assume one household or one employment shape | Prompt owner | Review with adversarial phrasing |
| Coverage gap | The model itself performs worse in a minority language | Model owner | Per-language evaluation slices |
Only the last door is about the model. The other four are design choices you control, and they are cheaper to fix. A team that starts by asking for a better model usually pays for a change it did not need.
Several definitions of fairness compete. Equal error rates across groups. Equal selection rates. Equal calibration. A system can satisfy one and fail another, and mathematics does not choose for you.
The choice is a policy decision that belongs to the business owner, with legal and ethics input. Your job as architect is to force the choice into the open and name its cost. Choosing equal error rates for benefit decisions and equal selection rates for outreach is an answerable position. Claiming the model is unbiased is not.
Then measure it. Slice your evaluation set by the groups that matter for this decision, and report accuracy, false positive rate and false negative rate per slice. An aggregate score hides exactly the effect you are looking for.
State the acceptable gap before you measure. If you decide after seeing the result, you will rationalise the result you got. A useful form is: no slice worse than five points below the overall rate, revisited each quarter.
Transparency means the person affected can find out that an automated system contributed to the decision. It does not require publishing your prompt. It requires a plain-language notice and a route to a human.
Recourse means the person has a real way to challenge the decision and get it changed. It is the part teams skip. A decision that cannot be questioned is not transparent, even when you explain it clearly. Build three things: a channel to contest the decision, a reviewer with authority to reverse it, and a record of what changed.
| Level | What the person sees | Use when |
|---|---|---|
| Notice | This decision used an automated assistant | Low-stakes, high-volume routing |
| Explanation | It was routed here because the report mentioned a shared meter | The person can correct the record |
| Contest | A channel to request human review, with a stated response time | Declines, eligibility, enforcement |
Disclosure is a design choice, so choose the level deliberately and write it down. The same system often needs different levels for different decisions, and one notice for everything usually satisfies nobody.
Take the outage triage assistant. The business wants faster routing and fewer unnecessary truck rolls. Write the fairness position in one sentence, then answer four questions about it.
Write the fourth answer before launch. A team that has not decided what failure looks like cannot recognise it later, and will explain the first bad result as noise.
Key takeaways
Bias enters through data, examples, retrieval, prompt framing and coverage, not only the model.
Fairness definitions conflict. The architect forces the choice into the open and names its cost.
Measure per slice. An aggregate score hides the effect you are trying to find.
Transparency needs notice. Accountability needs a contest path with an owner and a service level.
Decide in advance what result would make you withdraw the system.
Written and edited by the nexGenCoders team. Spotted a mistake? Tell us and we will fix it.
Don't lose this lesson
Create a free account to save your progress, keep your streak, and work toward a shareable certificate.