Samuel Toh
Back to blog

By

Figuring Out the Problem Is Harder Than Solving It

Product Development

While developing an AI agent for document review, I spent a week or two building a first version that let users hand an entire document to the AI and get an initial analysis of issues and risks. At the time, the requirements felt fairly clear and the architecture was working, so I thought the next step was just refining the analysis results.

But when we showed it to different domain experts, the same document and the same result got very different reactions. Some felt it caught the key points, while others felt it didn’t answer the questions they cared about. My colleagues and I then went back to clarify what “review this for me” meant to each role. It turned out that they expected different things.

Some people needed detailed content comparisons, while others just wanted to find basic issues first. We had put these needs into a single feature without first clarifying when users would open it and what they would do with the results. Because of that, simply debating whether the analysis was good made it hard to reach a consistent answer.

Another issue was the review rules. Different documents need very different checks. If every type required domain experts to define rules up front, the work to prepare and maintain them would be huge. I had thought we just needed to connect the analysis flow, but later realized that we also needed to work out the use cases and how the rules would be defined.


Over the next week, we discussed switching to a conversational interaction, where users make requests through chat and the agent retrieves relevant documents from the file library. By Friday, we were back to automatically reviewing entire documents.

Changing direction twice in one week was, honestly, pretty frustrating. After working through it with my colleagues, I found that our target user profile was still vague. Every discussion brought in the needs of yet another role, and the feature changed along with them. What blocked me most during that period was that we hadn’t yet clarified who this version should serve first, and how far it had to go to count as done.

When adjusting the feature afterward, I paid more attention to three things:

  • Settle on the users and scenario first: separate the needs of different roles and focus first on basic document quality checks, so what this version needs to handle is a bit clearer.
  • Use concrete cases to align on acceptance criteria: discuss real documents—which issues need to be found, and what information the results should provide. This makes it easier to tell whether we share the same idea of “done.”
  • Build evaluation into the development process: before adjusting prompts and tools, put together the cases to verify. After making changes, go back to the same cases to check the results, which also makes it easier to discuss next steps.

These three things were connected. When the users and scenario aren’t clear, acceptance criteria are hard to set. And when the criteria keep shifting, development tends to change direction with every round of feedback.


After the first version of the quality checks was done, long documents brought another problem. As the number of checks grew, processing cost went up, while accuracy didn’t improve as noticeably. Before adding more features, I started checking which tasks needed AI judgment and which could use rule-based methods. I also considered how long users would wait and how the feature would fit into their work.

The team eventually settled on document review through natural-language interaction and delivered a usable end-to-end version. Looking back at the earlier changes in direction, I think we could have laid out user roles and concrete cases for discussion earlier. That way, before investing a week or two in implementation, we could have discovered that our pictures of the feature didn’t match.

This helped me see that even a requirement that sounds clear needs to be worked through together. Now I want to know first: who runs into this problem, and in what situation? What will they do with the result? And how will we judge whether this version actually helped?