#StreetLens
Evaluating LLM Output in Production: Validate, Repair, Scrub
**Checking what an LLM writes is the easy part. The hard part is what to do when the check says FAIL. I tried a lot of things on a real product. I ended up with two steps: repair the sentence that failed. And if that doesn't work, cut it.** **The whole idea in one minute:** a wrong date the repair fixes, and an invented sentence it can't. ## The situation I build StreetLens. You walk, and it tells you the story of the place in front of you, in your ear. For every place we have the facts. Dates, names, measurements, the stories behind them. A model turns them into a script of about 800 words. A voice reads it. A model writing 800 words will drift. A height rounded. A date a bit off. A detail that isn't in the facts at all. And the listener can't check, they're standing in the street. A guide that invents is worse than no guide. ## The check is the easy part The writer's prompt says it, first rule: - Every factual claim — dates, names, locations, events, measurements — must come from the source facts. No exceptions. But a rule in a prompt is a request, not a guarantee. So every script goes through a **validator** : a second model that reads the script next to its facts and says PASS or FAIL. The validator is a must. That part was never a question. Thousands of scripts, 8 languages. You check everything, or you don't know what you ship. The validator answers in JSON, with a reason: { "result": "FAIL", "reason": "Script states nearly two hectares of gardens, but source says the villa sits within 1.5 hectares" } Keep that reason in mind. It turned out to be the most important part. ## It says FAIL. Now what? Thats where I spent my time. A FAIL is easy to get. Knowing what to do with it is not. **I regenerated the whole script.** The wrong number was gone. And a new problem showed up somewhere else, in a sentence that was fine before. 800 new words, 800 new chances to drift. **I fixed scripts by hand.** Fine for ten. Not for hundreds of places in 8 languages. And not again every time a prompt changes. **I asked a model to "correct this script".** It corrected it. And rewrote half of it on the way. Nicer sentences, a different tone, new details the validator didn't like. Dozens of tries like this. Every time the same lesson: the more the fix touches, the more it breaks. What I wanted was simple. A fix that touches only the sentence that failed. ## What I ended up with: repair, then scrub ### The repair The repair is not a new model with new rules. It's the writer itself. Same prompt, with one more section at the end: ## 🔧 REPAIR MODE You previously generated an audio script for this POI, but validation identified a factual issue that needs correction. ### Validation Issue Found: {validator_reason} ## What to Fix: - ONLY the specific factual errors explicitly mentioned in the validation failure reason above ⚠️ DO NOT introduce ANY new factual claims that weren't in the previous script ⚠️ Your ONLY job is to fix the identified error, not to improve or expand the script Three things go in. The script. The facts. The validator's reason. The reason is what realy makes it work. "Nearly two hectares, but the facts say 1.5" tells the model where to look and what is true. No guessing. A real one. Villa Windsor, 833 words: - Around you spreads nearly two hectares of gardens, quiet lawns within western Paris woods. + Around you spreads one and a half hectares of gardens, quiet lawns within western Paris woods. One sentence changed. The rest stayed word for word. Same tone, same pauses, same story. And because the repair is the writer, the fixed sentence sounds like the others. Then the repaired script goes back to the same validator. The repair never decides that it worked. The validator does. In my logs, the repair fixed 65 of 73 failed places on the first try. 89%. ### The scrubber Sometimes the repair can't fix it. The fact is just not there, and the model keeps trying to say something about it. After three tries, the scrubber takes over. Different job. It doesn't try to fix the fact anymore. It cuts it: You are a factual scrubber for audio tour scripts. For those parts ONLY: * Remove the sentence entirely A script with one sentence less is still a good script. Then, again, the validator. If even that fails, the place goes to an error folder. Not to the app. ## Is this new? Not the idea of sending the error back. Guardrails AI calls it "reask". Instructor retries with the validation error. Research loops like Self-Refine let a model critique and fix its own output. What I didn't find written up is this combination, for long text: * the repair is the writer's own prompt plus a repair section, so the voice stays the same * it changes only the flagged sentence and keeps the other 800 words, instead of regenerating * a last step that cuts the sentence, instead of throwing the script away * the same validator decides after every step ## What the logs showed Two things I didn't expect. **The scrubber never ran.** One setting sent a place to the error folder after the first failed repair. Attempts two and three never happened. The gate held, nothing wrong went out. But my net was smaller than I thought. Check that your last net really runs. **Most failures were my fault, not the model's.** The validator wanted abbreviations spelled out. The writer was never told. The writer was told to round decimals. The validator failed rounded numbers. Two prompts that didn't agree. The repair fixed those too, but one shared set of rules would have avoided them for free. ## Lessons learned The check is not the hard part. You have to do it, on everything. The hard part is the FAIL. **Don't regenerate. Repair.** A new script brings new mistakes. A repair touches one sentence. **Give the repair the reason.** The script, the facts, and why it failed. Without the reason, the model guesses. With it, it fixes. **Make the repair the writer.** Same prompt, same rules, plus "fix only this". The fixed sentence sounds like the rest. **Keep a scrubber for the end.** When a fact can't be fixed, cut the sentence. One sentence less is better than no script. And much better than a wrong one. **The validator always has the last word.** After the repair, after the scrubber. Nothing goes out around it. This is how every StreetLens script is made today. Not the first thing I tried. What was left after everything else broke something.
dev.to
October 11, 2026 at 12:10 PM
Standing with Light – Part 2
The Colour in Motion

The stillness gives way.
Light begins to move, slowly at first, then with quiet confidence.

For a moment, everything shifts.

#TherapyThroughMyLens #StreetPhotography #StreetLens #EverydayStories #VisualStorytelling #LightAndShadow
March 20, 2026 at 6:47 PM
🖤 B&W Mini Series – Part 1: In Passing

Light and shadow crossing paths, just like we do.
Sometimes the ordinary street scenes say the most — movement, rhythm, and quiet connection.

#TherapyThroughMyLens #BWPhotography #StreetPhotography #EverydayStories #PeopleAndPlaces #StreetLens #MonochromeLife
October 16, 2025 at 4:11 PM
“Once someone’s companion, now left behind — but still carrying traces of the roads travelled.
A faded pink saddle reminding me of the places a bike can take you “

#TherapyThroughMyLens #EverydayStories #VillageLife #RoadsTravelled #StreetLens #CyclingLife #TwoWheels #peopleandplaces #photography
October 3, 2025 at 7:43 AM
“Sometimes it’s the smallest corners that hold the brightest surprises.
In a quiet Cypriot village, a burst of colour reminding me that even the simplest days have their moments.”
#TherapyThroughMyLens #VillageLife #CyprusDiaries #ColourInTheEveryday #StreetLens #FloralFrame #travel #flower #nature
October 2, 2025 at 7:04 AM
“From darkness comes light. Even through the thickest stone, the world still opens up — bright, wide, waiting.”

#TherapyThroughMyLens #StreetPhotography #Blueskyphotogrsphers #WindowView #EverydayStories #LightAndShadow #StoneAndSky #StreetLens #StreetFrame #travelphotography #photographersunited
September 27, 2025 at 8:24 AM
“Spent my birthday in the Cypriot village of Deryneia.
A reminder of why I love photography — the people, the conversations, the real Cyprus.”
#TherapyThroughMyLens #StreetPhotography #BWPhotography #StreetScenes #CandidLife #EverydayStories #PeopleAndPlaces #StreetLens #MonochromeLife #StreetFrame
September 25, 2025 at 11:50 AM
“Enjoying the Cypriot vibe 🇨🇾
Thanks to everyone following along — it means a lot.
More frames & stories still to come ✨”
#TherapyThroughMyLens #StreetPhotography #BWPhotography #StreetScenes #CandidLife #EverydayStories #PeopleAndPlaces #StreetLens #Mindfulmoments #StreetFrame
#gratitude
September 20, 2025 at 5:43 AM
“She doesn’t just sit here — she belongs here.
Her presence carries a lifetime of stories.”

#TherapyThroughMyLens #StreetPhotography #BWPhotography #StreetScenes #CandidLife #EverydayStories #PeopleAndPlaces #StreetLens #MonochromeLife #StreetFrame
September 14, 2025 at 9:52 AM
“Some places aren’t just cafés, they’re rituals.
Laughter, arguments, folded papers — time passes, but the rhythm stays.”

#TherapyThroughMyLens #StreetPhotography #BWPhotography #StreetScenes #CandidLife #EverydayStories #PeopleAndPlaces #StreetLens #MonochromeLife #StreetFrame
September 13, 2025 at 7:13 AM
A street full of stillness, colour, and quiet storylines.
Sometimes you don’t need to speak — just look.

Hashtags for Bluesky:
#therapythroughmylens #streetphotographers #mindfulphoto #turkeyphotography #everydaylife #urbanmoments #photojournal #candidlife #streetlens
August 1, 2025 at 7:50 AM
Jina Kim, Leeje Jang, Yao-Yi Chiang, Guanyu Wang, Michelle Pasco: StreetLens: Enabling Human-Centered AI Agents for Neighborhood Assessment from Street View Imagery https://arxiv.org/abs/2506.14670 https://arxiv.org/pdf/2506.14670 https://arxiv.org/html/2506.14670
June 18, 2025 at 6:57 AM
💛 New Story 💛 De grootste antiek- en curiosamarkt van Nederland is weer te vinden in het prachtige historische centrum van Delft!
.
Sony A6700 FE 28-60mm F4-5.6 (Freedom streetlens)
.
#delft #delftcity #streetlife #storytelling #streets #streetphotography #bnw #blackandwhite #photography
April 19, 2026 at 8:54 AM
📸Check out some of our favorite Chance snaps from our community this week!

👋Come join us on our Discord to share yours and get featured:

👉👉👉 cha.vision/disc1

#ChanceAI #AI #ArtificialIntelligence #iOS #TravelPhotography #CommunityLens #StreetLens

Photos by jamesewig on Instagram
April 2, 2025 at 9:54 AM
The French, particularly in the south of France, love their "terraces".

Another peaceful daily life scene.

Aix-en-Provence, August 2021.

#street #streetphotography #streetshot #streetphoto #streetlens #france #city #dailylife #lifescene #lumix #photography #leica #dailyphoto
March 29, 2025 at 9:59 AM
October 6, 2025 at 5:14 PM