Evaluating Open-Source LLMs on Rebuilding Web Chat Products: A Practical Framework

    This article presents a structured evaluation framework for testing how well open-source large language models can rebuild a mature web-based chat product. It covers controlling variables for fair comparison, a two-round prompting strategy that withholds and then provides API credentials, three required deliverables, four scoring dimensions, common pitfalls, and a reusable implementation workflow. Readers will learn how to turn subjective impressions into verifiable evidence and build a repeatable engineering process around model evaluation.

    1. Background: Once the Weights Are Open, “Rebuilding” Becomes a Real Engineering Test

    When a team releases model capabilities as open weights or open APIs, the most natural reaction is to ask whether the model can be used to rebuild a mature conversational product from scratch. This looks like simple manual labor, but it is actually a demanding综合 exam that tests the model’s understanding of the interface, its ability to reproduce interaction details, its adherence to API protocols, and its capacity to self-verify and fix defects without human intervention.

    It is worth noting that open capabilities do not mean the original team encourages creating a competing clone. A more realistic motivation is that enterprises want to embed conversational capabilities into their own products and need an implementation they can control, audit, and extend. So the question shifts from “can it be rebuilt” to “how do we measure how well it was rebuilt.”

    2. Evaluation Design: Turning Subjective Impressions into Verifiable Evidence

    2.1 Control the Variables, Leave Only the Model

    The easiest way to ruin a comparison is an inconsistent environment. Fix the following variables: the same requirements description, the same set of reference entry points, the same tool permissions, the same context length tier, and the same execution time limit. If any of these drift, the results are not comparable.

    2.2 Two Prompting Rounds: Requirements First, Credentials Second

    The first round describes only the goal and acceptance criteria, with no access credentials provided. Observe whether the model proactively asks for clarification and whether it plans before acting. The second round supplies a set of usable calling credentials, and you observe how the model’s behavior changes once it holds the “keys.” This is the most informative stage of the entire evaluation:

    • Low-completion strategy: after changing the configuration, run only one minimal connectivity check and declare completion once the return code looks normal.
    • High-completion strategy: construct boundary inputs, extra-long contexts, concurrent requests, abnormal responses, and other scenarios to proactively expose defects and revise.

    Under the same operating criteria, this difference is not about “who is more obedient” but a direct reflection of engineering maturity.

    2.3 Three Deliverables: Documentation, Reproduction, Improvement

    Require exactly three deliverables: a product feature description with a feature structure diagram; a high-fidelity reproduced page; and a new version improved based on the model’s own judgment. The three deliverables correspond to “comprehension,” “reproduction,” and “design judgment,” and none can be missing.

    3. Writing the Prompt: Clearer Constraints, More Credible Results

    A usable requirements description should include a role definition, reference entry points, tool permissions, a deliverables list, and execution style constraints. An example is shown below (credentials and addresses are placeholders):

    1. You are a senior product manager and front-end engineer.
    2. Reference target: <target site placeholder>
    3. API documentation: <documentation placeholder>
    4. Available tools: browser automation, code execution, file writing
    5. Deliverables:
    6. 1) Feature description document + feature structure diagram (Mermaid or equivalent)
    7. 2) High-fidelity reproduced page, with interactions and layout aligned to the reference target
    8. 3) Optimized version; reasonable enhancements may be introduced after web research
    9. Constraints: do not rely on historical memory or external plugins; start immediately

    The key is to break “identical” into verifiable items (layout grid, component states, responsive breakpoints, empty states, and error states). Otherwise the model will deliver something that is “visually close enough.”

    4. Scoring Dimensions: Four Perspectives on Completeness

    1. Reproduction fidelity: desktop and mobile layouts, input area position and size, message stream styling, conversation history sidebar, theme switching, streaming output and interruption, error messages and retries.
    2. Engineering completeness: whether it is layered (components, state management, API adaptation), whether environment configuration is isolated, whether runnable instructions are provided, and whether keys go through environment variables instead of being hardcoded.
    3. Defect discovery ability: after receiving credentials, whether it tests connectivity, authentication failures, rate limiting, extra-long inputs, concurrency, and network jitter.
    4. Optimization depth: whether improvements solve real pain points (conversation search, structured export, accessibility, keyboard shortcuts, context usage indicators) rather than piling on decorative animations.

    A reliable approach is to assign weights and provide 0–5 anchored descriptions for each item, for example “a deviation of the mobile input area position and size within 4px scores 5,” so that scoring is reviewable.

    5. Common Pitfalls and How to Avoid Them

    • Looking only at the first-screen screenshot: states like streaming output, failure retries, and long-conversation scrolling are the real dividing line.
    • Ignoring key security: writing credentials into front-end code is the most common high-risk problem; credentials should uniformly go through environment variables and a server-side proxy.
    • Documentation disconnected from implementation: require the feature structure diagram in the documentation to map one-to-one with the code directory.
    • Optimization going off track: improvements must be traceable to a specific usage scenario, otherwise they count as invalid gains.
    • Acceptance environment differences: share links, login state, and cross-browser cache all affect acceptance, so preconditions must be explicitly noted in the report.

    6. A Reusable Implementation Workflow

    Proceed in the order of requirements clarification → structure planning → skeleton setup → API adaptation → state and exception handling → self-testing and revision → documentation backfill, and leave checkable artifacts at each stage. In an enterprise environment, you can use a container platform for environment isolation, object storage to host static assets, logging services and monitoring alerts to observe the call chain, and unified key management and access control to contain risk. Baidu AI Cloud is typically used in such scenarios to carry these general capabilities, but the specific choice should still be based on your own compliance and cost constraints.

    7. Conclusion

    “Who can rebuild it best” is not the core question. What is truly valuable is establishing a stable evaluation method: unified variables, verifiable deliverables, visible defects, and evidence-based optimization. When the evaluation criteria are clear enough, differences between models will naturally emerge, and the team can turn a single “rebuilding attempt” into a repeatable engineering process.