Before cataract surgery, a patient has to choose a replacement lens for each eye, and the evidence arrives as curves on a datasheet. One short prompt and about ten follow-up messages turned those curves into a working simulator. It shows the road, the computer and the phone as each lens would show them, with the two eyes set separately. It worked because the patient led AI the way you would lead a capable new hire.
Key takeaways
- From a five-sentence prompt, AI built a simulator that shows six types of lens on three everyday reading tasks, by day and at night, with each eye set separately.
- It got better because the patient led it like a teammate: real working distances changed the result, and one question about balancing the eyes got a plain answer, which was "only a little".
Start with a short prompt
Cataract surgery replaces the eye's clouded natural lens with an artificial one, called an intraocular lens or IOL. The patient helps choose two things for each eye: the type of lens and its strength. No option wins everywhere. A lens that gives the sharpest distance vision leaves close work to reading glasses. A lens that covers more distances can add halos around lights at night. The evidence for that choice is a defocus curve, a chart of sharpness against distance, like the one here.
What the datasheet gives you
The curve is accurate, and it is hard to feel. What the patient wanted to know was simpler: will I be able to read the exit sign, the spreadsheet and the text message? So the prompt named those three things. It said what to build, which lens to start from, what had to be adjustable and where the numbers should come from.
Let's create a cataract surgery simulation that lets me swap different lenses and shows the estimated far, intermediate and close vision if both eyes have an extended depth of focus lens. I want to be able to change the lens type in one eye to see the result. Let me enter my measured vision values where needed, and pull the rest from the lens datasheets. Far vision should be a road, intermediate should be working on a computer, and close should be reading a cell phone.
Extended depth of focus lenses stretch one focal point into a range. A second message followed before the first version was finished.
Also, I want to see before and after, so my current vision against the same images, and then compare different lens types.
That is five sentences and a follow-up. Together they cover what you would tell a colleague: a goal, a starting point, three scenes and two comparisons.
Put every lens on the same road
What came back was not a chart. It was three everyday reading tasks: a highway exit sign, a spreadsheet and a text message. A divider splits each one, with vision today on one side and the estimated result on the other. Choose a lens, drag the divider and switch the road sign to night.
Three reading tasks, now and after
Extended depth of focus. Stretches one focal point into a range. Distance and computer are the strong zones; phone-sized print may need light readers. This is the type named in the prompt.
In the figure, the "now" side is blurred to the patient's current sharpness and tinted by the cataract. On the "after" side, the blur is calculated from the lens's curve at that distance. The prompt asked to compare lens types, so six came back, one from each main class, from a standard monofocal to a continuous-range multifocal.
It also came back with something nobody had asked for. At night, rings appear around the headlights, scaled to the lens. That is the cost side of the lenses with the best close vision, and a defocus curve does not show it at all. The same six lenses can also be compared in one view.
Six types of lens, three tasks and the night
Use real distances and real numbers
The first version used textbook distances: a phone at about 16 inches and a computer at about 26. The patient works differently, and said so.
Phone I want at 18 inches and computer at 3 feet.
That one line changed the result. For the same lens, the model reads 20/40 on a phone at 16 inches and 20/30 at 18. AI made the change and then questioned it. People with cataracts often hold a phone further away because close focus is already failing, and bring it back in after surgery. It suggested checking that 18 inches was a habit and not a workaround.
More feedback followed, a sentence at a time. The cataract tint was set to its minimum. The lens was named exactly, along with the right eye's numbers: an 18.0 dioptre lens, landing about a tenth of a dioptre from its target. A click now opens each scene at full size. And one message fixed two things at once.
The defocus curve needs its x-axis labels fixed, they overlap. Also, where is the night mode toggle?
The night switch had been at the bottom of a side panel. It moved onto the driving scene, where anyone would look for it. None of this feedback is technical. It is what you would say to a colleague who had shown you a first draft.
Test the half-step
With the lens type chosen, the open question was strength. The right eye was settled at 18.0 dioptres, aimed at distance. Lens powers come in half-dioptre steps, and a slightly stronger lens in the left eye would move that eye's focus closer, so the pair might cover more of the day. The default plan was two matching eyes. The patient did not just accept it. Step the left eye's power here to see what the simulator said.
One eye, half a step at a time
Where the focus lives, both eyes open
Right eye 20/20 · left eye 20/20
Right eye 20/25 · left eye 20/25
Right eye 20/40 · left eye 20/40
Both eyes are focused at the same distance. They work fully together and there is no imbalance.
| Left eye lens | Lands near | Phone, both eyes | Computer, both eyes | Road, both eyes | Road, left eye alone |
|---|---|---|---|---|---|
| 18.0 D | +0.10 D | 20/30 | 20/20 | 20/15 | 20/20 |
| 18.5 D | −0.25 D | 20/30 | 20/20 | 20/15 | 20/20 |
| 19.0 D | −0.60 D | 20/25 | 20/20 | 20/20 | 20/30 |
| 19.5 D | −0.95 D | 20/25 | 20/20 | 20/20 | 20/50 |
How can I test, say, 18.5 in the left eye to compensate for the distance in the right?
AI added the control that steps the lens power, and explained the catch. A change at the lens inside the eye is worth less at the glasses: in an eye of average length, half a dioptre of lens power moves the prescription by about a third of a dioptre. Then the scenes gave their answer. The phone improved by about half a line and still read 20/30. The computer and the road did not change.
AI said so plainly: a single half-step is a very small lever. It also gave the other side. Two or three steps is where the gain becomes visible, and the same model shows what it costs, because the left eye on its own gets weaker on the road with every step. Then it listed what the model cannot know, and who does.
What still needs the clinic
| What to check | Who checks it | Why |
|---|---|---|
| Eye length and lens power | Surgeon | How far a step of lens power moves the prescription depends on the measured length of the eye and the surgeon's formula. The simulator uses a rule of thumb and an average eye. |
| Where the eye lands | Surgeon | Results land near the target, not exactly on it, and a small miss moves the whole curve. Ask how close the practice's results usually run. |
| Numbers from memory | Clinic record | The right eye's landing was entered from memory. It is the one input that shifts everything else, so it should come from the record. |
| Eye health | Eye exam | The macula, cornea and optic nerve set a ceiling on sharpness that no lens can raise. |
| A difference between the eyes | Contact lens trial | Some people never notice a small offset and some dislike it. Trying it with a contact lens first is the usual test, because an implanted lens is not easily changed. |
| Night driving | Patient and surgeon | The halos are drawn to scale between lens types, but they are a drawing. If night driving matters, say so before choosing. |
A good-looking simulator is still a model. Its curves are approximations of published data, measured in bright light, and it assumes each lens lands exactly where it was aimed. It makes a trade-off visible and a question specific. It is not a prediction for any eye, and it is not medical advice.
Take it to the surgeon
Every request built on the one before, in the same simulator. A later addition let the patient load photos of their own road, desk and phone, with the same blur, tint and halos on top. Then the work carried forward once more: the simulator on this page is a simpler rebuild on the same model, with plain reading cards and a dot view for comparing lenses. It also says where it belongs. It asks the patient to take it to the surgeon and not to treat the numbers as a prediction.
Four ways to understand a lens choice
| Format | What the patient sees | The two eyes together | When a new question comes up |
|---|---|---|---|
| Brochure | Lens names and a list of benefits. | Not shown. | A call to the clinic. |
| Defocus curve | Sharpness against distance, one lens at a time. | Usually one eye. | Another chart to find and read. |
| Contact lens trial | A difference between the eyes, felt for real. | Yes, in the patient's own vision. | New lenses and another visit. |
| Simulator | Their own road, desk and phone, before and after. | Each eye set separately, shown together. | A new estimate in the same sitting. |
An appointment is short, and "which lens would you like?" is a hard question to answer cold. A patient who has dragged the divider across their own three scenes arrives with better questions. What happens to my phone at 18 inches? How much difference between my eyes would I notice? How close to the target do your results usually land? The surgeon still measures, advises and operates. The patient still decides, and is better prepared to.
Eight habits, one decision
Nothing here needed technical skill. It needed what good managers already do: set context, delegate clearly, review the work, give feedback and own the outcome.
The habits, as used on this project
| Phase | Habit | What it looked like here |
|---|---|---|
| Set it up | Brief it like a colleague | A five-sentence prompt: what to build, the lens to start from, what must be adjustable and three scenes from daily life. |
| Set it up | Share what you know | The exact lens, the right eye's power and where it landed, and real working distances: 18 inches and 3 feet. |
| Explore | Ask for different perspectives | One question about balancing the eyes brought back both sides of the trade, and a list of what only the clinic can measure. |
| Explore | Ask for options | "Show against different lens types." Six came back, on the same three scenes, by day and at night. |
| Refine | Give real feedback | A sentence at a time: change the distances, turn down the tint, fix the overlapping labels, move the night switch, make the scenes bigger. |
| Refine | Debate, don't just accept | The patient tested the default plan with a half-step in one eye. The answer was that a half-step does very little, and the model showed why. |
| Carry it forward | Build on previous work | Every request extended the same simulator, and the simpler version on this page was rebuilt on the same model. |
| Carry it forward | Keep ownership | Remembered numbers get confirmed from the record. The surgeon owns the measurements and the plan; the patient owns the choice. |
The use cases behind it
A lens simulator sounds like a niche job. Underneath, it is five general use cases from the Rappel AI Use Case Guide, and each one applies well beyond an eye clinic. Select any of them to open the guide.
Where else this applies
The pattern is the same wherever someone has to choose between options that are described in a datasheet and felt in daily life:
- Healthcare. Patient education for any treatment with trade-offs, shown as everyday tasks and reviewed with the clinician.
- Financial services. A mortgage, a pension or an insurance plan, shown as a household's month and not as a rate table.
- Equipment and product sales. A specification sheet turned into what the customer will see, hear or wait for.
- Benefits and HR. Plan options compared against an employee's own year.
Your turn
Pick one choice your customers or colleagues find hard because the facts arrive as a table or a chart. Then lead AI through it as a teammate: brief it in a few plain sentences, name the everyday situations that matter, and give it real numbers and three rounds of feedback. Before you share the result, ask it what the model cannot know, and who does.
See where AI can help your business.
Nine common business problems, eight areas and 44 use cases, with questions to take to your leadership team. Start from a problem you recognize and see which use cases fit.