Anthony KanBuild around People繁體中文
← All Build Notes

The model couldn't use information it never received

A 4,000-character cutoff changed what I needed to ask about an incomplete AI answer.

About 2 min read

A coding agent recently found something rather absurd in one of my apps.

The app saves full job advertisements and supporting documents, then uses AI to help people prepare applications.

Except some of the application-support paths were sending the AI only the first 4,000 characters of a job summary. Other saved source material wasn't being passed along consistently either.

Imagine the important requirements appearing near the end of a long vacancy.

The model could never consider them. It had never seen them.

It's the sort of problem that can look like a weak model or a badly written prompt. But switching to a more powerful model wouldn't fix this one.

An agent found the cause by investigating the actual application. It also discovered that another job-matching feature was already receiving complete information.

That changed the repair completely. We didn't need to redesign everything. We needed to fix the paths losing information and check that long adverts, attachments and existing application work were still handled correctly.

I couldn't have discovered the 4,000-character cutoff by reading code myself.

But I can remember one question next time an AI feature keeps overlooking important details:

What information actually reached the model?

Sometimes the answer is much more revealing than another round of prompt engineering.

Related project

My Next Step →