Skip to content
Hexwave Lab
Product design

Developing an LLM application with a reviewable output

Hexwave Lab  ·  Field note

Set aside an evaluation set before tuning a prompt against familiar examples.

Design the boundary between generated text and an application action. An assistant can propose a new case status in natural language. The application must still check that the status exists and that the operator may apply it.

A worked scenario

A product team is turning internal guidance into a question-answering application.

Review stageExample
Source recordsA current policy, an older revision and a restricted appendix
ExceptionThe same search phrase matches all three records
Acceptance conditionThe answer uses current authorized material and shows where it came from

Choose a task with an inspectable answer

Suppose a product team receives change requests from customer success. “Can supervisors approve a stock adjustment after the night shift?” might describe a missing permission, a feature request or a question about an existing setting. A language-model application can prepare a triage note. The role of the application is to identify the request, extract the evidence and expose uncertainty. A product manager still decides whether to alter the roadmap or a customer’s configuration.

Write down a sample input in the language a user would actually send. Include a quoted customer comment, an agent’s paraphrase and a screenshot reference. Then write the smallest useful output by hand. It might contain a proposed category, the actor, the requested action, a supporting phrase and one unresolved question. If the output cannot cite words from the request for “after the night shift,” the reviewer should see that the timing was inferred.

A worked input and output

Imagine the note reads, “The warehouse lead says supervisors cannot approve an adjustment after shift close. She can open the adjustment, but the approve button is absent. Is this a permission issue?” The proposed category is “configuration question.” The actor is “supervisor.” The requested action is “approve adjustment after shift close.” The supporting phrase is “the approve button is absent.” The unresolved question is whether the shift is merely closed or the stock period has also been locked.

This example contains no proof of a software defect. The triage screen should let a reviewer change the category and enter a reason. If the note later arrives with product version and configuration details, attach that new record to the original request. Treating it as a fresh, independent complaint would distort both the evidence trail and counts of reported issues.

Retrieve just enough product context

Create a redacted reference record for a fictional product. Permission guide P4 says supervisors may approve an open adjustment. Period-close note C2 says no adjustment can be approved after a period is locked. Add release note R6 recording that an old button moved to an actions menu. Give each record an effective version and visibility scope. A customer-specific note should be accessible only within the permitted account.

Ask the retrieval component what it selected before judging the generated summary. A result set containing P4 alone supports a general permission explanation but leaves the lock question open. A result set containing R6 for an older version could lead the reviewer to give obsolete instructions. Save document identifiers and small approved excerpts with the draft. Display a clear missing-evidence state where relevant material could not be found.

Design the output contract around failure

Represent unknown, conflicting and unavailable values distinctly. An empty “affected version” field might mean the user omitted a version. A conflict might mean the screenshot shows version 4 while the support note says version 5. A source outage might prevent lookup entirely. Each condition gives the reviewer a different next action. If the application collapses all three into “unknown,” the first-line team must repeat the investigation.

  • Missing version. Ask customer success for the affected release before recommending a setting.
  • Conflicting version evidence. Display both references and ask a reviewer to choose the authoritative record.
  • Unavailable release history. Keep the submitted evidence intact and schedule a later lookup.
  • Clear permission question. Prepare a draft response with the exact permission guide excerpt for review.

Validate the proposed category against the product team’s queue names. A new label coined in fluent prose cannot route a ticket until the application maps it to an existing destination. Keep draft recommendations separate from the action that changes a ticket’s queue. When the reviewer assigns the ticket, record the reviewer, category, draft revision and resulting queue reference.

Build evaluation cases from decisions you could get wrong

Choose ordinary questions, mixed questions and messages the application should leave unresolved. Make paired cases that differ in one meaningful fact. In one case the period is open. In another it is locked. In a third the message never mentions a period. The third case tests whether the application invents a condition to make its explanation sound complete. Keep the expected decision and allowed supporting records with each case.

When a release changes the prompt or retrieval settings, re-run the pairs and inspect changed decisions. A higher average score is poor compensation for newly routing locked-period cases to the wrong team. Give reviewers a small list of material errors and allow a short explanation for unusual cases. Track the editor’s final category and the time taken to understand the evidence. These measures expose whether the product actually saves triage work or simply shifts it to a different screen.

Handle language variation explicitly

An intake message may describe the same request using a different vocabulary, language or order of details. Define the structured fields the system is expected to infer and a way for the sender or reviewer to correct them.

Compare a complete request, a shorthand request and a request with conflicting details. Measure the quality of clarification as well as the rate of successful extraction.

Treat the instruction as a versioned artifact

Keep the intended user task, allowed source material, requested output and failure behavior beside a prompt. Save representative examples and the version that produced each result. A small wording change can affect which cases ask for clarification.

Compare two versions on the same held-out inputs. Record where one improves the result and where it introduces a new error before selecting a default.

Define the product boundary

List which decisions belong to the product and which remain with adjacent tools. A shared record can support several workflows, but two systems claiming ownership of the same status will eventually disagree. Define where a change originates and how other views learn about it.

Design one end-to-end journey across this boundary. Check that a person can navigate from a summary back to the record that explains it without needing an internal system diagram.

Putting it into practice

Give the assistant an unsupported status value. Verify that the draft remains available for correction and the application leaves the saved case untouched.

Explore Hexwave Lab’s approach to digital product development.

Hexwave Lab

Plan a discovery call

Scheduling will open once a booking calendar is connected. You can prepare your project brief on the contact page.

Prepare a brief