The image and the spec sheet disagreed, and customers were approving the image
By Hassan Iqbal,
I work on a product where a customer designs a custom-made piece by chatting with an AI. Every design has two outputs. One is an image the customer looks at. The other is a build spec sheet: the written list of what will actually be made, which is also what the price is calculated from.
For a while those two outputs did not agree, and nobody could see it.
What was going wrong
The spec sheet was written first. Whatever the customer had not said yet, the model filled in with a guess. That spec was then passed into the prompt for the image.
An image model does not follow a written spec line by line. It produces something close. So the image showed one design and the spec sheet behind it described a slightly different one.
The customer only looked at the image. They would say yes to it, and in doing so agree to a spec sheet that did not match what they were looking at. The price came from the spec, so the price went off too.
What we changed
We stopped treating the spec as one thing written in one go. It now has two kinds of facts, and each comes from a different place.
- Hard facts the customer stated. These are filled in from the customer's own messages before any image is generated. Nothing here is guessed.
- Details of the design itself, such as materials, layout and structure. These are no longer written in advance. After the image is generated, a second model reads the image and writes down what is actually in it.
The customer's words decide what was asked for. The image decides what the design looks like. The spec sheet is assembled from both, so it describes the design the customer approved.
Why the order matters
The old flow went from guess to spec to image, and trusted the image to obey. The new flow goes from stated facts to image, then from image to the rest of the spec. The step that cannot be controlled exactly, the image, now comes before the details that depend on it.
If you are building something similar
- When your product shows the customer one thing and bills or builds from another, check that the second is derived from the first and not written separately.
- Keep what the customer said apart from what the model assumed. Only the first should be fixed before generation.
- Whatever the customer approves is the source of truth. Read the details back from it.