Evaluating LLMs by Rebuilding a Web App: A Reusable Assessment and Engineering Method

    A practical method for evaluating how well a large language model and its execution framework handle the full path from product understanding to working code. The task is to recreate a mainstream conversational AI assistant's web client through three deliverables, two prompt rounds, and multi-dimensional scoring.

    Background and Problem Definition

    In engineering practice, teams often need to assess a large language model’s overall ability along the path from product understanding to working code. Code-completion tests alone do not show whether a model grasps product structure. Rebuilding a live web client covers the full loop: understanding requirements, extracting information, expressing structure, implementing the front end, matching details, and making a second-round improvement.

    This article describes an evaluation method that has been validated in practice. The subjects are several combinations of model and execution framework. The goal is to have them recreate the web client of a mainstream conversational AI assistant. The method does not recommend any specific product. It abstracts a reusable technical process.

    Task Design: Three Deliverables

    To keep results comparable and measurable, each combination must produce three items:

    1. Product function document and structure diagram

      • The model first maps the target page’s function modules, information hierarchy, and interaction flows, then outputs a structured document and a product function diagram.
      • This step tests information extraction and abstraction: whether the model can recover the product skeleton from the page surface, rather than only seeing a few buttons and input fields.
    2. High-fidelity replica

      • Functions and UI should match the target page as closely as possible, including details such as the position and size of the mobile input field.
      • This step tests front-end fidelity, understanding of responsive layout, and handling of interaction states such as loading, empty, and error.
    3. Improved version

      • On top of the replica, the model proposes product and experience improvements based on its own understanding.
      • This step tests product thinking: whether the model only copies, or can propose reasonable, implementable changes.

    The three deliverables form a progression that maps to three capability levels: understand, implement, and go beyond. That avoids the bias of a single-dimension evaluation.

    Prompt Design

    Prompt design directly affects fairness and result quality. The core structure is:

    1. Role: You are a senior product manager. You will recreate the web client of [target product].
    2. Tasks:
    3. 1. Produce a product report that lists page functions and includes a product function structure diagram.
    4. 2. Recreate the web client so that functions and UI match the original as closely as possible.
    5. 3. Based on your understanding, optimize the web client and generate a new version.
    6. Propose improvements you consider appropriate across interaction, visual design, and functionality.
    7. Constraints:
    8. - You may refer to the target page and the official API documentation.
    9. - Forget prior memory and external skills, and start directly.

    Practical points:

    • Set the role first. Framing the model as a senior product manager pushes it to analyze the product before writing code, which noticeably improves completeness.
    • Use an explicit “forget memory” constraint. This reduces reliance on preset skills or prior context so each group works under comparable conditions.
    • List deliverables by number. Numbered outputs lower the chance that the model skips one.

    Two-Round Prompting and Observed Differences

    In practice, the run uses two prompt rounds:

    • Round one gives the full requirement and observes output when no credentials are available.
    • Round two adds execution conditions such as an API key and observes behavior once real calls are possible.

    This design is useful. In actual runs, strategies diverge clearly:

    • Some combinations, after receiving the key, only run the simplest connectivity check and then declare the task done.
    • Others actively test the interface more deeply, find anomalies and edge cases during that process, and even infer front-end gaps from those findings and fix them.

    The difference in a model’s willingness to test often matters more to final reliability than the difference in initial code quality. In an automated execution framework, the prompt should explicitly require continued exploration of edge cases after basic verification. Otherwise the model tends to stop after the minimum check.

    Evaluation Dimensions

    Score along the following dimensions to reduce reliance on subjective impression:

    1. Product document quality

      • Whether function coverage is complete and the diagram hierarchy is clear.
      • Whether easily missed details are noted, such as acceptance considerations for share links in different environments.
    2. UI fidelity

      • Desktop layout, type size, spacing, and color.
      • Mobile adaptation details: input position, safe areas, and virtual keyboard behavior.
      • Completeness of empty, loading, and error states.
    3. Functional completeness

      • Whether the core interaction path works.
      • Whether API calls correctly handle streaming output, interruption, and errors.
    4. Soundness of the improved version

      • Whether changes address real pain points rather than stacking features.
      • Whether each change includes a rationale and expected benefit.
    5. Engineering quality

      • Code organization, component breakdown, and state management.
      • Whether there is a basic test and verification process.

    Common Pitfalls and Recommendations

    • Do not judge from screenshots alone. A page that looks right may not behave right. Operate the interface and verify interactions.
    • Mobile is the dividing line. Many models only recreate the desktop view. Mobile details separate the results most clearly.
    • Record behavior after the key is supplied separately. This exposes the model’s ability to test on its own.
    • Guard against hallucination. A model may claim a feature that has no corresponding logic in the code. Review against the code and the running result.
    • Fix the evaluation environment. Execution frameworks differ in capability. Record the boundary between model ability and framework ability so variables are not mixed.

    Conclusion

    Rebuilding a web client is a strong task for assessing an LLM’s overall engineering ability. It tests product understanding, front-end implementation, detail fidelity, and independent verification at the same time. The framework of three deliverables, two prompt rounds, and multi-dimensional scoring can consistently distinguish the real level of different models and execution frameworks. The core lesson is to provide enough structured constraint while leaving room for independent exploration, and to evaluate behavior rather than claims, and details rather than overall impression. The method can be transferred directly to other product recreations, prototype generation, and technology selection scenarios.