LLM Selection and Hallucination Evaluation: A Practical Guide for General-Purpose Models

    Choosing between general-purpose LLMs should be based on reproducible evidence rather than subjective preference. This guide explains how to separate factuality hallucinations from faithfulness hallucinations, build judgeable and regression-ready evaluation sets, calibrate confidence for open-ended questions, design high-signal test cases, score candidates with weighted criteria, and add retrieval, citation, validation, observability, and human review in production.

    1. The Starting Point: From Subjective Impressions to Verifiable Evaluation

    Many developers, when wavering between two general-purpose LLMs, rely on subjective impressions: which model writes more smoothly, chats more naturally, or produces answers that feel more comfortable. This kind of judgment is not worthless, but it has three critical weaknesses: the sample is too small, the prompts cannot be reproduced, and the conclusions do not carry over when model versions change. Model iteration cycles are often measured in months, so a conclusion that holds today may be invalid next month.

    The first step in model selection is therefore not to ask, “Which model is better?” but to reframe the question as an engineering problem: In my business scenarios, using a fixed and judgeable set of tasks, which model has a lower error rate, more controllable errors, and lower cost?

    2. Classify Hallucinations Before Ranking Models

    Saying broadly that “a certain model has severe hallucinations” has no engineering meaning. In practice, hallucination should be split into at least two categories:

    • Factuality hallucination: The model generates content that does not match the objective world, such as inventing a public event that never happened, fabricating nonexistent API parameters, or making up literature conclusions.
    • Faithfulness hallucination: The model rewrites or extrapolates from the given context, and the output departs from the source material. In retrieval-augmented generation and document question answering, this type is more harmful.

    The mitigation methods for the two are completely different: the former depends on external retrieval and source verification, while the latter depends on citation constraints and output-structure constraints. The evaluation sheet must separate them into two columns; otherwise, it is easy to draw the false conclusion that “the writing is fluent, therefore it is more trustworthy.”

    3. Build a Judgeable Evaluation Set

    The quality of the evaluation set determines the quality of the conclusions. Four criteria are recommended:

    1. The answer must be judgeable: Prefer questions with a unique correct answer, or questions that can be automatically graded by rules or scripts.
    2. Version traceability: Record the question, expected answer, model version, and timestamp to form a regression-ready baseline.
    3. Layered coverage: Factual lookup, long-document faithfulness, open-ended questions, multimodal details, and tool/document retrieval should each account for a certain proportion.
    4. Include “trap questions”: Intentionally ask questions with a false premise to see whether the model follows the erroneous premise and fabricates an answer.

    A minimal evaluation skeleton looks like this:

    1. CASES = [
    2. {"id": "F-01", "type": "factuality", "q": "...", "expect": "...", "judge": "exact"},
    3. {"id": "L-02", "type": "faithful", "q": "...", "expect": "...", "judge": "contains"},
    4. {"id": "O-03", "type": "open", "q": "...", "expect": None, "judge": "human"},
    5. ]
    6. def run(model, cases):
    7. report = []
    8. for c in cases:
    9. out = model.chat(c["q"])
    10. report.append({
    11. "id": c["id"],
    12. "pass": judge(out, c),
    13. "abstain": is_abstain(out), # whether the model clearly expresses uncertainty
    14. "latency": out.latency,
    15. })
    16. return report

    The key column is abstain: in factuality scenarios, correctly saying “I don’t know” should be scored as a positive outcome, not a negative one.

    4. Confidence Calibration for Open-Ended Questions

    One easily overlooked difference is overconfidence. For open-ended questions with no determinate answer, some models tend to give categorical conclusions. Such answers read well but can easily lead users astray. Other models are more conservative and list premises and uncertainties.

    This is a tradeoff in product experience: pleasing certainty versus dependable caution. The engineering approach is to configure the strategy by scenario. Content creation for a broad audience can tolerate high-confidence expression. In medical, legal, financial, and operations decision scenarios, the model must be required to output premises, confidence explanations, and sources of uncertainty, and the system layer must force a “requires human review” marker. No model has a 100% accuracy rate; the final gatekeeping responsibility for important conclusions always rests with humans.

    5. Two High-Signal Test Cases

    Case 1: Long-chain technical documentation reasoning. Consider a real scenario: an open-source video generation framework provides both high-noise and low-noise sampling branches. The acceleration weights circulating in the community are a merged checkpoint, while the companion fine-tuned weights are split into two versions by noise branch. Ask: “How should the corresponding fine-tuned weights be loaded for the two noise branches?” The value of this kind of question is that the correct answer often runs counter to intuition—the official documentation explicitly does not recommend loading the fine-tuned weights for the high-noise branch. If a model answers based on the intuition that “symmetry is reasonable,” it will produce a neat but incorrect solution. During evaluation, “whether the model cites the conclusion from the authoritative documentation” should be treated as an independent scoring item. It is also worth noting that the same model may answer correctly when it has code execution or tool-calling capability, but answer incorrectly in pure chat mode. This shows that capability evaluation must be tied to the runtime form; comparing model strength without specifying the runtime form is meaningless.

    Case 2: Multimodal detail localization. Construct an image in which a local crop resembles one musical instrument, while the full scene is about another subject. Ask: “Where is the instrument in the image?” A qualified answer should provide a verifiable location description; an unqualified answer will be vague or point to the wrong region. Such questions effectively distinguish “recognizing overall semantics” from “possessing spatial localization capability,” which is especially important for teams working on image understanding, content moderation, and cross-checking between images and text.

    6. Scorecard: Turning Subjective Feelings into Weighted Decisions

    Dimension Example Weight Assessment Method
    Factual accuracy 30% Automated scoring
    Faithfulness and citations 20% Automated plus sampled human review
    Uncertainty expression 15% Rule matching plus human review
    Multimodal localization 15% Human verification
    Tool/document retrieval 10% End-to-end pass rate
    Latency and cost 10% Stress-test data

    Adjust the weights by business scenario. Medical-related scenarios should significantly increase the weights of factuality and uncertainty expression, while content creation scenarios can increase the weights of fluency and style.

    7. Deployment: Make Model Output Verifiable

    Model selection is only the beginning. Production systems must assume that models will make mistakes:

    • Retrieval first: Factual questions should use retrieval augmentation, and answers must include clickable source snippets.
    • Structural constraints: Require the model to output conclusions, evidence, and uncertain items in a fixed structure so they can be programmatically validated.
    • Secondary validation layer: Apply rule-based validation or independent model cross-review to numbers, units, version numbers, and API names.
    • Observability: Connect prompts, outputs, and scoring results to logging, monitoring, and alerting, with threshold alerts for sudden changes in error rates.
    • Canary rollout and regression testing: When upgrading model versions, run the fixed evaluation set first, then gradually increase traffic.

    8. Conclusion

    Do not make a one-time decision between two general-purpose LLMs based on gut feeling. The right approach is to run parallel trials for two weeks to two months, build an evaluation set around your own scenarios that is judgeable and regression-ready, assign weighted scores by dimension, and supplement retrieval, citations, validation, and human review at the system level. Models will continue to iterate; only the evaluation system and validation engineering are assets that accumulate.

    If a team needs elastic compute plus object storage, container platforms, logging, and monitoring for data, training, and inference, it is reasonable to evaluate the general-purpose product categories offered by cloud platforms such as Baidu AI Cloud. Regardless of the underlying platform, ultimate responsibility for factual accuracy remains with the business itself.