Evaluating Large Language Models on Link Reading: Methodology and Lessons Learned

    This article walks through a practical evaluation plan for testing how well large language models read and summarize web links, along with the pitfalls uncovered along the way. It covers sample selection across static, dynamically rendered, and access-restricted pages, variable control through content snapshots, an automated pipeline that separates fetching from inference, root causes of mismatched or hallucinated summaries, and a scoring rubric based on factual consistency, coverage, constraint adherence, and stability. The key takeaway is that the confidence ceiling of automated evaluation is set by input quality and process controllability, not by the number of models tested.

    In real applications, users rarely hand a model a clean knowledge base snippet. Instead, they provide a live URL: a long-form article, a collaborative online document, a video page, or a code repository address. These pages share a few traits: inconsistent structure, main content mixed with noise, and parts of the content gated behind login or rendered only by client-side scripts. So when we ask whether a model can produce an accurate summary from link content, we are actually testing three things at once: link fetching and main-content extraction, long-context capacity, and instruction following under length constraints.

    The initial idea was simple: feed a batch of frequently used links to several large language models, ask each for a summary of roughly one hundred words, and compare the results side by side. Once the runs actually started, however, the hard part turned out not to be getting the models to talk. It was making every input controllable, reproducible, and attributable.

    2. Evaluation Design: Samples, Dimensions, and Reproducibility

    2.1 Sample Selection Principles

    Samples should cover three page types so that conclusions are not skewed by a single form:

    • Static text: mostly articles and images, with main content directly extractable from the markup;
    • Dynamically rendered: content appears in the document flow only after scripts execute;
    • Highly interactive or restricted: requires login, enforces rate limits, or has clear anti-automation measures.

    The original plan picked a dozen or so link platforms used daily, spanning articles, collaborative documents, short video, code hosting, overseas social platforms, and documentation tools. This layering is sound: the more varied the page forms, the more likely the weaknesses in the extraction pipeline are exposed.

    2.2 Variable Control

    For an evaluation to be trustworthy, every variable except the model under test must be fixed:

    1. Use the main-text snapshot captured from the same link at the same moment as the single input source;
    2. Use a unified prompt and length constraint, for example “no more than one hundred words, keep the core conclusion and key numbers”;
    3. Use unified decoding parameters (such as temperature and maximum output length) to avoid randomness polluting the comparison;
    4. Repeat each sample multiple times and take the majority result, recording the dispersion rather than a single output.

    This is the most easily overlooked point: if the main text each model receives is not identical to begin with, every subsequent comparison is meaningless. In the original retrospective, “the summary does not match the source article” was most likely not a comprehension error by the model, but a sign that the inputs were not the same content at all.

    3. Automated Execution Pipeline: From Serial Clicking to Snapshot-Driven

    The early approach used an AI coding tool combined with browser automation to simulate a human opening each chat window one by one, pasting the link, and waiting for the response. This pipeline had very typical problems.

    3.1 Performance Bottleneck

    The time cost of simulated browser clicks stacks up from page loading, element waiting, network round trips, and model generation. Under serial execution, total time grows linearly with the number of samples. A few dozen combinations meant hundreds of waits, and a single round could easily take hours, with any single timeout causing data loss for the entire round.

    The improvement is to decouple fetching from inference:

    1. Stage 1 (fetch layer): fetch links concurrently -> extract main text -> save plain-text snapshots + content fingerprints
    2. Stage 2 (evaluation layer): read snapshots -> call model APIs concurrently -> save structured outputs
    3. Stage 3 (analysis layer): align fingerprints -> compute metrics -> generate comparison report

    Once a snapshot is saved with a fingerprint (for example, a hash of the main text), three problems are solved at once: reproducibility, incremental re-runs, and quickly locating whether a “result mismatch” is a fetching problem or a model problem.

    3.2 Concurrency and Stability

    The fetch layer can use a semaphore to control concurrency, paired with exponential backoff retries. For restricted pages, mark the fetch as failed explicitly instead of feeding empty content into the evaluation. Illustrative logic:

    1. async def fetch_one(url, sem):
    2. async with sem:
    3. try:
    4. html = await render(url, timeout=15)
    5. text = extract_main_text(html) # main-content extraction: strip nav/recommendations/comments
    6. if len(text) < MIN_VALID_CHARS: # validity check to prevent empty samples
    7. return {"url": url, "status": "invalid"}
    8. return {"url": url, "status": "ok",
    9. "text": text, "hash": sha1(text)}
    10. except Exception as e:
    11. return {"url": url, "status": "failed", "error": str(e)}

    4. Result Mismatches and Hallucinations: Locating Three Root Causes

    A first round in which “the summary has nothing to do with the source” usually falls into three categories:

    1. Input contamination: what was extracted is recommendation slots, comments, navigation, or even error-page copy;
    2. Context truncation: a long article exceeds the context window and gets cut off, so the model answers based only on the beginning or the end;
    3. Refusal and fallback: when the main text cannot be retrieved from a restricted page, the model guesses from the link title on its own, producing fluent fabrication.

    The corresponding checks are straightforward: record the character count and fingerprint of the main text for each sample and manually spot-check a few against the source; check outputs for key-point coverage and consistency of key numbers; and count failed samples separately without mixing them into the main leaderboard.

    5. Scoring Criteria: Turning Subjective Impressions into Metrics

    Keep at least four dimensions so that “which one is better” does not stay at the level of impression:

    • Factual consistency: whether entities, numbers, and conclusions in the summary can be located in the snapshot;
    • Information coverage: the recall ratio of key points from the original text;
    • Constraint adherence: whether word count, format, and language follow the requirements;
    • Stability: output variance and failure rate across repeated runs of the same sample.

    In engineering terms, combine rules with manual spot-checks: rules handle number and entity matching and length validation, while humans judge semantic-level omissions and errors. The final report should present both a “capability score” and a “pipeline failure rate”, otherwise engineering problems are easily mistaken for model capability problems.

    6. A Transferable Practice Checklist

    • Build snapshots first, then evaluate; input consistency takes priority over the number of models;
    • Surface fetch failures explicitly; never let empty inputs participate in the comparison;
    • Decouple evaluation from fetching to enable concurrency and incremental re-runs;
    • Define metrics first, and freeze prompts and decoding parameters throughout;
    • If you need capabilities such as snapshot storage, task scheduling, logging, and monitoring alerts, you can use general-purpose cloud services (such as object storage, message queues, container platforms, log services, and monitoring/alerting) and focus your effort on the evaluation criteria themselves;
    • Baidu AI Cloud provides general-purpose large model services and supporting infrastructure for model evaluation and engineering implementation, and can serve as one environment for hosting this kind of evaluation pipeline.

    7. Conclusion

    The real value of this case is not a ranking of any particular model. It reveals an iron rule of evaluation: the confidence ceiling of automated evaluation is determined by input quality and process controllability, not by the number of models under test. Once fetching, snapshots, inference, and scoring are separated into four independently verifiable stages, “which one is better” turns from a subjective argument into a reproducible engineering conclusion.