Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Let the Machine Ask

If you are lazy, and most of us are by the end of the day, have the LLM start with the basics of your request and make the humans get the answers. The first human is you, the person who asked. The rest are the people who know.

This chapter shows what that looks like on one real kind of request.

A thin request

Here is a request of the kind that arrives every week in an EDI shop:

Set up a new trading partner for invoices.

Give this to a model as a build request and it will build something: a mapping, a connection, a schedule. Every gap in those eight words will be filled with a default, and you may not be told which ones.

Give it to the model as a question request instead:

Before anything is built, list what you would need to know. For each question, say what you’d assume if nobody answered, and who would know.

What comes back

This is the list a model produced for that request, lightly trimmed:

  1. Are we sending invoices to them, or receiving invoices from them? Assumed: sending. Who knows: the account manager.
  2. Which version of the X12 standard do they use? Assumed: 004010. Who knows: the partner’s EDI contact.
  3. Do they publish their own implementation guide? Assumed: yes, and it differs from ours in places. Who knows: the partner.
  4. How do we connect: AS2, SFTP, or a value-added network? Assumed: AS2. Who knows: the partner’s EDI contact and our network administrator.
  5. Must each invoice match a purchase order we’ve received? Assumed: yes. Who knows: accounts receivable.
  6. What happens to an invoice with no matching purchase order? Assumed: hold it and alert someone. Who knows: the accounts receivable supervisor.
  7. Do they expect a functional acknowledgment, and what if it doesn’t arrive? Assumed: yes, within 24 hours, with an alert if it’s late. Who knows: EDI operations.
  8. Are there allowances or charges on the invoice, such as freight or discounts? Assumed: none. Who knows: the account manager.
  9. How many test invoices before going live? Assumed: as many as the partner needs to certify us. Who knows: the partner.
  10. Who gets called when one fails? Assumed: EDI operations, during business hours. Who knows: the operations manager.

Eight words held ten decisions. The request wasn’t careless; it was normal. The gap between what was typed and what was meant is there in nearly every request, and the list is that gap written out.

What happens to the list

Sort it by who answers. The partner gets one email with questions 2, 3, 4 and 9. Accounts receivable gets 5 and 6. The account manager gets 1 and 8. Operations gets 7 and 10. That’s one email and three short conversations, instead of a meeting with everyone. And “who knows” isn’t always the job title: if someone on the team has set up twenty partner connections, question 4 goes to them.

In a list like this, most answers are a yes. The defaults are usually right, and confirming a default takes seconds. That’s the point of including them: people answer by exception.

The no’s are the spec. Suppose accounts receivable answers question 6 this way: “No. For this partner, drop-ship orders never have a purchase order. Match those on the order number instead.” That rule wasn’t in the request, and no model could have known it. It goes into the spec, with an example and a test, and with a note of who said it.

Run it again. Give the model the request plus the answers, and ask for the questions that remain. The second list is shorter. When the new questions are about details nobody would argue over, stop.

Why this works

The model is good at one half of this and has no way to do the other. It has read a great deal about EDI, so it knows what a trading partner setup involves and where setups usually go wrong. It does not know your partner, your accounts receivable rules or your on-call list. A question list uses the half it’s good at and sends the other half to people.

The questions are the output. Not the code, not yet. Code built from the eight-word request would have been built on ten guesses. Code built after the list is built on ten answers.

In short

Hand the model your thin request and ask for questions, defaults and who knows. Then take the list to the people.

Divider: the gate at dawn. A thin horizontal band with a small pointed gold gate at the centre and a sun showing through it, flanked by two eight-point stars. On each side a band of interlaced gold strapwork in the Islamic girih style, on a Penrose tiling, fades out toward the ends.