Skip to main content

From LinkedIn · · 2 min

11 seconds generating, 57 seconds checking

A small app that turns a fixed set of symbolic meanings into natural language, a checker built so it doesn't quietly invent things, and a latency problem I couldn't explain away.

By Olha Shevchenko. Builds and reviews production AI systems on Node.js and AWS.

11 seconds generating, 57 seconds checking

I spent two days building an AI system I was genuinely pleased with.

Then I watched it spend 11 seconds generating one sentence and 57 seconds checking it, only to reject a sentence I considered correct.

I'm building a small app that generates reflective readings from a fixed set of symbolic meanings and a user's question.

The idea is to let AI turn that material into natural language without quietly inventing things along the way.

If the source contains "fear" and "chaos", for example, that doesn't automatically justify writing "fear of chaos". Those three words introduce a relationship the source never established.

That's the kind of thing we were trying to catch.

And every major safeguard we'd built had a reason to exist.

That made the next part surprisingly hard.

I didn't want to remove checks just because the stopwatch looked ugly. I could still explain why every one of them was there.

Then we measured the complete pipeline.

Generation took around 21-26 seconds. Semantic evaluation took another 47-55 seconds. The measured path was over 70 seconds.

The evaluator accounted for 71.5% of the measured serial time.

My first suspicion was that we'd made it write too much paperwork: quotes, spans, evidence references, accounting.

That would have been a convenient answer.

So we investigated it.

Some repetition could safely be removed: around 9.7% of the evaluation response representation in our E2E cases.

The accounting ledgers themselves were about 4-5%.

And that was a reduction in representation size, not a measured speed improvement.

So the explanation I wanted wasn't really there.

The expensive part might actually be the semantic judgment we were asking the model to perform.

I had an architecture I could explain and a latency problem I couldn't explain away.

I wasn't going to call that production-ready.

I still don't know what the final architecture will look like. I do know this isn't it.

Being able to justify every component is not the same as being able to justify the system.