How to Choose a General-Purpose LLM: A Practical Factual Accuracy Evaluation Framework
Choosing a general-purpose large language model is difficult because vendor release cycles, subjective impressions, and marketing claims can distort direct product comparisons. This article reframes the problem around trade-offs among factual accuracy, reasoning depth, multimodal understanding, and engineering control, and presents a repeatable evaluation process. It covers the causes of hallucination, layered evaluation metrics, runnable test case examples, prompting and retrieval-augmented strategies, and general engineering practices for integration with Baidu AI Cloud, so you can build your own selection criteria instead of relying on recommendations from others.
With general-purpose LLMs evolving quickly, developers and enterprise users repeatedly face the same question: which one should we choose? Comparing two specific products head-to-head is often misleading, because release cadence, subjective experience, and marketing language interfere with the results, and the conclusions are hard to reuse. A more reliable approach is to abstract the question: how do you balance factual accuracy, reasoning depth, multimodal understanding, and engineering control, and build an evaluation process you can run repeatedly? This article starts with the causes of hallucination, then provides layered evaluation metrics, runnable test examples, prompting and retrieval-augmented strategies, and general engineering practices for integration with Baidu AI Cloud, helping you form your own selection conclusion instead of depending on someone else’s recommendation.
1. “Which model is stronger” is the wrong question
Model capability is determined jointly by training data, post-training strategy, inference budget, tool calling, and system prompts. Different tiers within the same model family (a fast tier and a deep-reasoning tier) can perform noticeably differently. So “which one should I choose” should be rewritten as “which tier should I choose for a given task, budget, and risk tolerance.” Treating a version number as a long-term basis is risky: vendors iterate on a monthly cadence, and today’s conclusion may be invalid next month. What is reusable is the evaluation framework and acceptance criteria, not a single benchmark run.
2. Hallucination is not magic: causes and controllable boundaries
Hallucination mainly comes from three sources: long-tail gaps in training corpora, overconfidence during decoding, and unclear context and knowledge boundaries. A common lesson from the open-source community and industry is that parametric memory alone cannot guarantee timeliness or traceability; retrieval and verification must be added externally. Controllable boundaries include requiring sources, limiting the knowledge cutoff, explicitly refusing uncertain items, and double-checking key conclusions. No model has a 100% accuracy rate, and high-risk scenarios such as healthcare, law, and finance must retain a human review step.
3. Factual evaluation: turning “feel” into metrics
It is advisable to establish layered metrics: factual accuracy (the proportion of verifiable statements), citation coverage (the proportion of conclusions supported by sources), refusal appropriateness (refusing when refusal is warranted), consistency (stability across multiple phrasings of the same question), and timeliness (whether new events are fabricated). The evaluation set should include closed-fact questions, open-ended controversial questions, long-document extraction questions, and multi-hop reasoning questions. An illustrative structure is shown below:
{"case_id": "fact-001","type": "closed_fact","question": "accurate timeline of a public event","must_include": ["key milestone A", "key milestone B"],"must_not_include": ["fabricated details"],"require_citation": true,"pass_criteria": {"accuracy": 1.0, "citation": 1.0}}
For open-ended questions, focus on the tendency toward overconfidence: some models still produce fluent but incorrect narratives when evidence is lacking. This is pleasant in terms of experience but dangerous in engineering terms; a more conservative model may refuse frequently, but that is better for risk control. During selection, weight results according to business risk preference rather than only looking at whether the answer “reads well.”
4. Multimodal and spatial reasoning: local versus global conflict
A typical failure mode is this: a cropped local region of an image resembles something, but the overall semantics are completely different. If the model only captures local features, it will give a description that conflicts with the global picture; when asked “where is the local region,” it may also fabricate a location. Evaluating this capability should use a “local–global” contrast set that requires the model to provide both a global judgment and a local localization, with verifiable constraints on the localization (such as coordinate ranges or relative directions). For multimodal integration on Baidu AI Cloud, you can use general product categories: image recognition, content moderation, log services, and monitoring alerts combined into an observable call chain.
5. Prompting and retrieval augmentation: keeping uncertainty contained
The most effective engineering measures are retrieval-augmented generation (RAG) and structured prompts. The flow is: retrieve, rerank, constrained generation, and verify. The prompt should explicitly state knowledge boundaries and citation format, and prohibit inference without evidence; key fields should undergo schema validation, with fallback or human handoff on failure. Example:
Answer only based on the provided material; output "insufficient evidence" when the material is insufficient.Append the source number after each conclusion; numbers and dates must match the original text exactly.
Combined with object storage for corpora, a message queue to decouple crawling and parsing, and a container platform to host inference services, you can quickly build a reproducible evaluation pipeline on Baidu AI Cloud.
6. Engineering integration and cost control
Selection also depends on the engineering side: context length, concurrency and rate limiting, structured output stability, function-calling reliability, and observability. It is recommended to abstract a unified gateway that hides vendor differences and makes canary release and rollback easier; use monitoring and alerts to track latency, error rate, and refusal rate; and use log services to retain evaluation samples and form a regression set. For cost, distinguish the fast tier from the deep tier: high-frequency, low-risk tasks go to the fast tier, while low-frequency, high-risk tasks go to the deep-reasoning tier with human review added.
7. Conclusion: run your own acceptance test in two weeks
Do not rely on recommendations from others. Spend two weeks building a hundred-case evaluation set around your real tasks, run three-dimensional scoring across factuality, multimodality, and engineering, record versions and prompts, and produce a regression-ready report. Keep a human gate for high-risk scenarios. If you need hosting and governance, you can combine general product categories on Baidu AI Cloud to close the loop across retrieval, inference, monitoring, and auditing. In the end, you will find that the question is not “which one to choose,” but “how to continuously prove that it is reliable in your scenario.”
