A Practical Evaluation Method for LLMs: Replicating AI Chat Web Applications
As large language models (LLMs) continue to evolve, evaluation methods are shifting from simple Q&A benchmarks to complex, real-world engineering tasks. This article introduces a practical evaluation method that uses LLMs to replicate mainstream AI conversational web applications. It covers the rationale behind this approach, the design of the evaluation plan, prompt engineering strategies, and key observations. By comparing various combinations of models and agent execution frameworks, this method highlights that an LLM's competitiveness is shifting from simple answer quality to end-to-end delivery quality.
A Practical Evaluation Method for LLMs: Replicating AI Chat Web Applications
I. Why Choose “Replicating a Conversational Web App” as an Evaluation Task
As LLM capabilities continue to grow, evaluation methods within the developer community are evolving from simple Q&A benchmarks to complex tasks that closely mirror real-world engineering. Among these, “replicating a mainstream conversational AI web application” serves as a highly representative comprehensive test because it simultaneously covers multiple capability dimensions:
- Requirement Understanding: The model must comprehend the functional structure of the target web app rather than hallucinating based on imagination.
- Product Abstraction: The model needs to produce product documentation and structural diagrams, evaluating its ability to organize and summarize functional modules.
- Front-end Engineering: The model must generate runnable web code within a limited number of interactions, covering layout, styling, interaction, and API integration.
- Autonomous Iteration: The model must correctly connect the conversational API using provided documentation and independently perform integration testing, testing, and bug fixing upon receiving API keys.
Such tasks are inherently comparable, verifiable, and scorable, making them an ideal载体 for horizontal evaluation across multiple models.
II. Evaluation Plan Design
2.1 Building Participant Combinations
The core idea of the evaluation is to pair different LLMs with various agent execution frameworks to form several participant groups, allowing each group to independently complete the task under identical prompts and operational steps. Typical combinations include:
- Long-context model + single-thread code execution framework;
- High-performance model + agent team collaboration mode (splitting roles like product, front-end, and testing);
- Multi-model relay collaboration (e.g., a long-context model handles documentation analysis while another model handles coding).
A unified operational process is key to ensuring fairness: all groups use the same set of prompts, undergo the same two-round interaction (first round for requirement delivery, second round for providing the API key), and are executed by the same operator to avoid deviations introduced by human intervention.
2.2 Three Deliverables
The task requires each group to produce three items, forming a progressive capability evaluation chain:
- Product Feature Report & Structure Diagram: Outline the features of the target web app (session management, history, parameter settings, sharing mechanisms, etc.) and draw a functional structure diagram.
- High-Fidelity Replica: Match the functionality and UI of the original web app as closely as possible to evaluate pixel-level replication capability.
- Optimized Version: Produce an improved new version based on its own understanding and industry best practices, evaluating the model’s divergent design and product judgment capabilities.
III. Prompt Engineering Design
3.1 Round 1: Requirement Prompt
The first-round prompt needs to accomplish three things: set the role, provide references, and define deliverables. A reference template structure is as follows:
Role: You are a senior product manager and full-stack engineer.Goal: Replicate a specific conversational AI web application.References: Target site URL + conversational model API integration documentation (access via built-in browsing tools is allowed).Deliverables:1. Product feature report (including a functional structure diagram);2. A replicated web app consistent with the original site's functionality and UI;3. An optimized new version based on your understanding.Requirements: Ignore irrelevant context and start executing immediately.
A key detail here is explicitly allowing the model to use browsing tools to read the target page and API documentation, rather than relying solely on its training memory to “recite” the interface. This genuinely tests its information retrieval and transformation capabilities.
3.2 Round 2: Key Injection and Autonomous Testing
The second round only provides the API key, aiming to observe behavioral differences among combinations after “receiving the key.” Distinct strategy divergences emerged during testing:
- Minimal Testing Strategy: Some combinations only verified “can initiate a conversation, can return a result” after injecting the key and declared the task complete. The depth of integration was insufficient, easily missing edge cases.
- Deep Testing Strategy: Other combinations proactively designed multiple test cases, covering streaming output, exception returns, context interruptions, and more, iterating and optimizing the code accordingly.
This difference is highly instructive for model selection: evaluating an LLM should not only look at the initial output quality but also its self-correction capability within a feedback loop. In engineering practice, a model combination that can proactively discover and fix defects holds much greater long-term value than one that produces beautiful code in one shot but lacks self-inspection.
IV. Results and Experience Summary
4.1 Characteristics of Top-Performing Combinations
Overall, the most robust combinations typically share the following traits:
- Detailed Boundary Awareness: For example, proactively noting in the report that “the share link feature needs to be verified in another browser environment,” indicating an understanding of acceptance criteria beyond just the feature itself.
- Pixel-level Fidelity: Not only are core functions complete, but details like the position and size of the mobile input box also match the original site highly accurately.
- Documentation and Code Consistency: The functional structure diagram remains aligned with the actual implemented module division, reflecting rigorous engineering habits.
4.2 Practical Advice for Developers
- Combinations > Single Points: The pairing of model and execution framework significantly impacts output; multiple groups should be compared in parallel during evaluation.
- Explicit Task Splitting: Clearly listing the deliverables in the prompt effectively reduces the model’s execution drift.
- Front-loaded Acceptance Criteria: Providing actionable acceptance conditions (such as cross-browser testing, mobile adaptation checks) helps the model establish a self-testing baseline.
- Value Round 2 Behavior: The depth of autonomous testing during the integration phase is a key indicator distinguishing a model’s engineering literacy.
- Leverage Cloud Infrastructure: When actually deploying replicated applications, you can rely on general capabilities provided by cloud platforms, such as container services, object storage, logging, and monitoring alerts, to quickly complete the deployment and operations loop.
V. Conclusion
Tasks like “replicating a conversational AI web app” consolidate product analysis, code generation, API integration, and autonomous testing into a horizontally comparable evaluation framework. It reveals a critical trend: the competitiveness of LLMs is shifting from “answer quality” to “end-to-end delivery quality.” For developers, mastering this evaluation method not only aids in scientifically selecting model combinations but also helps distill a set of prompts and collaboration paradigms that allow AI to participate efficiently in real-world engineering projects.
