Replicating Smart Chat Apps with Multiple LLMs: Evaluation Methods and Engineering Practices

    This article explores using multiple large language models to replicate a mature smart chat application as a benchmark for code generation capabilities. It systematically outlines the evaluation methodology, including unified prompt construction, a multi-dimensional scoring system, and engineering acceptance processes. Additionally, it shares experimental observations on top-performing models and provides actionable insights for enterprises on tool selection, prompt asset management, and integrating AI into software development workflows.

    In recent years, leading large language model (LLM) providers have released comprehensive suites ranging from base models to reasoning-enhanced models, sparking a wave of secondary development around these open-source ecosystems. One highly representative experimental direction involves taking a mature smart chat assistant application as a “test prompt” and challenging different code generation models to replicate a fully functional, visually accurate front-end application from scratch using only natural language descriptions. This is both a fun experiment and a hardcore stress test of code generation capabilities. Based on practical experience from such experiments, this article systematically outlines evaluation methods, scoring dimensions, and engineering implementation recommendations to help developers and enterprise users scientifically assess the application generation capabilities of LLMs.

    1. Background: Why “Replicating Chat Apps” is an Excellent Benchmark

    Smart chat assistant applications may seem simple, but they actually encompass many common elements in front-end engineering: responsive layouts, interaction logic between input boxes and message lists, streaming typewriter effects, mobile and desktop adaptation, and light/dark theme switching. To replicate it accurately, a model must not only understand the textual description of the visual structure but also translate it into reasonable HTML, CSS, and JavaScript implementations. To make it “usable,” it must also handle interaction details like input validation, scroll positioning, and multi-turn message rendering. Therefore, it naturally serves as a comprehensive test for code generation capabilities.

    Compared to traditional algorithm benchmarks, this “application-level replication” is much closer to real-world development scenarios: requirements are vague natural language descriptions, outputs must simultaneously meet functional, experiential, and visual dimensions, and acceptance criteria carry a degree of subjectivity. This perfectly exposes the true gaps between different models in requirement comprehension, engineering organization, and detail refinement.

    1. Evaluation Design: From Prompts to Acceptance Criteria

    2.1 Unified Prompt Construction

    The premise of a fair comparison is consistent input. A prompt should consist of three parts: product positioning description (“Build a smart chat assistant Web app”), a feature list (message sending, history display, loading states, error prompts, etc.), and visual requirements (overall style, color scheme, layout constraints). Do not provide any implementation code or specify a framework, allowing the model to decide its own technical approach. This is the only way to test its “autonomous engineering” capabilities.

    2.2 Multi-dimensional Scoring System

    It is recommended to score across four dimensions, each with actionable checkpoints:

    • Functional Completeness: Are input, sending, message rendering, loading feedback, and exception handling all present?
    • Visual Fidelity: Are the layout structure, spacing, rounded corners, shadows, and the position/size of the input box close to the target application?
    • Interaction Experience: Are streaming output, auto-scrolling, keyboard shortcuts, and mobile adaptation smooth?
    • Code Quality: Is the code structure clear, free of obvious redundancy, and ready to run directly?

    2.3 Engineering the Acceptance Process

    An easily overlooked detail is the consistency of the acceptance environment. In practice, some models proactively remind users in their delivery notes that “preview links are recommended to be opened in a different browser” because certain preview services have style compatibility issues under specific browser engines. This detail actually reflects the model’s “delivery awareness”: it not only writes code but also anticipates downstream usage risks. It is recommended to perform acceptance uniformly in a standard browser with a fixed viewport, and use screenshot comparison tools to assist visual scoring to avoid subjective bias.

    1. Experimental Observations: Top Models Excel in Details and Stability

    In such multi-model horizontal comparisons, the best-performing models usually share three common characteristics.

    First, high precision in visual detail restoration. Taking the mobile end as an example, the position, height, and padding of the chat app’s input box are “millimeter-level” details on the screen. Ordinary models often produce a “roughly similar” version, while the best-performing models can achieve sizes that match the target application almost exactly. This indicates a more solid internal semantic understanding of common UI components and a richer coverage of front-end layout knowledge in their training data.

    Second, complete restoration of core functionality. This means not just “being able to send messages,” but also character-by-character rendering of streaming replies, conversation history persistence, and fallback interfaces for empty and error states. Functional completeness is the dimension that most easily widens the gap; many models’ replicated versions expose flaws in state management or rendering logic right during the first round of conversation.

    Third, standardized delivery documentation. Excellent generation results come with running instructions, known limitations, and acceptance suggestions. These “soft skills” are highly valuable in team collaboration—they reduce the understanding cost for whoever takes over the code and minimize repetitive communication.

    1. Implications for Enterprise Adoption and Tool Selection

    The value of such evaluation experiments goes beyond fun rankings; it provides a reusable methodology for enterprises introducing code generation tools.

    4.1 Use your own business scenarios to test. General benchmark scores do not equal business performance. It is recommended to select typical internal pages or modules as replication prompts and score them according to the four-dimensional system above to test the true level of candidate tools.

    4.2 Build a prompt asset library. Consolidate proven product description templates and combine them with enterprise internal design standards to form a standardized “requirement -> prompt -> code” pipeline. In this process, you can leverage general LLM services and development platform capabilities provided by Baidu AI Cloud to integrate model invocation, version management, and effect evaluation into the R&D workflow, reducing the cost of building an evaluation system from scratch.

    4.3 Focus on the “last mile” capabilities. Code generation is just the starting point. Whether it runs on the first try, automatically adapts to multiple devices, and produces readable engineering structures determines whether the tool can truly integrate into the production process. “Direct runnability” should be considered a core metric during selection.

    4.4 Maintain human code review. Even the best-performing models can still make mistakes in complex state management and business logic. Generated code must go through code review and security scanning before being merged into the main branch. AI is an efficiency tool, not a replacement for delivery responsibility.

    Conclusion

    Using multiple LLMs to replicate a mature chat application is an experiment with both entertainment and engineering value. The core conclusion it reveals is that the gap in current code generation capabilities has shifted from “whether it can write code” to “how stable the details are and how complete the delivery is.” For developers, mastering scientific evaluation methods is more important than chasing the ranking of any single tool. For enterprises, transforming evaluation results into a standardized selection and integration process is the only way to truly convert LLM capabilities into R&D efficiency.