Splitting System Prompts
In this article
- Explain why lines that several teams append to one system prompt end up contradicting each other, outliving their reason or changing a task they were not written for.
- Spot two lines that give opposite orders for the same input, and say who must decide which one wins.
- Split a system prompt into a global policy and task procedures, justifying each move by how often a rule changes, which requests need it and who owns it.
- Name the rule that would disappear from some tasks if it moved into one task's procedure.
Overview
When one system prompt serves several tasks and several teams add lines to it, every line reaches every request, and nothing in the text says who wrote a line, which task it serves or when it stops applying.
Brightline, an invented home-internet provider, runs a ticket sorter. A model puts each support ticket in billing, technical, account or other and says whether a person must see it now. The routing code, the part of the application that acts on the reply, sends the ticket to a team's queue and alerts a person when it is escalated. A schema sent with the request holds the reply to the shape {"category": ..., "escalation": ...}, and the escalation field takes one of two forms, {"escalate": true, "reason": ...} for a yes with a reason or {"escalate": false} for a no.
The system prompt opens with a line placing the tickets at Brightline. The task follows, then the constraints, which hold the escalation rule. An output section describes the object. The ticket goes in the user message's <ticket> section.
Suppose the prompt must also draft the customer's reply, and three teams add lines to it. Afterwards you can spot lines that contradict each other, go stale or reach another task, and decide what stays shared and what loads only with its task.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- One prompt, two tasks, three teams
- Two orders for one ticket
- Rules that outlive their reason or reach another task
- Splitting by lifecycle, relevance and owner
- The request after the split
- Long prompts and short ones
- Common mistakes
- In production
- Sources
- Check yourself, 5 questions