How to Choose a General-Purpose LLM Service: A Practical Selection Framework
This article explains how to select a general-purpose large language model (LLM) service when the budget only allows for one option. Instead of chasing benchmark scores, it focuses on choosing the option with the highest performance floor and the most predictable failure modes across four dimensions: factual accuracy, tool reliability, multimodal capability, and cost/quota. It details a three-layer approach to hallucination control (prompting, retrieval grounding, and externalized computation), strategies for handling long-document truncation and tool calls, evaluation criteria for Chinese-context multimodal generation, and a model gateway architecture for decoupling and fallback. A two-week, four-step evaluation process is included to help teams make a replaceable engineering decision rather than a one-time bet.
1. The Real Problem: Don’t Pick the “Strongest” Model, Pick the One with the Highest Floor
Many teams focus on leaderboard scores when selecting a model, but the actual production experience is determined by the weakest link. One requirement stands out: the budget only covers a choice between two options. This means the goal is not to find the solution with the highest capability ceiling, but the one that is least likely to fail and has the most predictable failure modes.
Breaking the selection down into four measurable dimensions makes it clearer:
| Dimension | Focus | Typical Failure Mode |
|---|---|---|
| Factual accuracy | Whether it refuses to answer without evidence | Fabricating data, faking citations |
| Tool reliability | Behavior after long-document truncation | Filling gaps with estimated values |
| Multimodal capability | Chinese context and detail-level edits | Semantic drift, failed local redraws |
| Cost and quota | Cost per task, rate limiting | Unavailable during peak hours |
2. Hallucination Control: Make “I Don’t Know” a First-Class Citizen
For scenarios like medicine, materials, and finance, the cost of fabrication is far higher than a wrong answer. Engineering cannot rely on the model’s self-discipline; it requires three layers of constraints.
The first layer is the prompt layer, which explicitly requires “refuse to answer when evidence is insufficient” and enforces structured output:
{"answer": "……","confidence": "high | medium | low","evidence": ["source snippet id"],"missing": ["missing key fields"]}
The second layer is the retrieval layer. Chunk authoritative material into a database, and short-circuit directly when retrieval returns no hits, without allowing the model to improvise:
def grounded_answer(query, retriever, llm):hits = retriever.search(query, top_k=5)if not hits or max(h.score for h in hits) < 0.35:return {"answer": "Insufficient material to confirm", "evidence": []}ctx = "\n".join(f"[{h.id}] {h.text}" for h in hits)return llm.chat(SYSTEM_STRICT + f"\nMaterial:\n{ctx}\nQuestion:{query}")
The third layer is the validation layer. Numerical conclusions must come from code execution rather than “mental math.” Move computation to a sandbox, and let the model handle only orchestration and explanation:
# The model produces parameters; deterministic code computes the resultspec = {"op": "mean", "data": [12.4, 12.7, 13.1]}result = sum(spec["data"]) / len(spec["data"]) # Real computation, no fabrication
3. Long Documents and Tool Calls: Truncation Is the Most Hidden Pitfall
A frequent incident: file reading is truncated, the model never sees the latter half, yet it fills in a “seemingly reasonable” number. The defense is to make context management explicit.
- Use segmented summaries plus a global index to avoid stuffing in overly long text at once;
- Include
total_chunksandloaded_chunksin the returned result so the caller can perceive completeness; - Perform secondary extraction validation on key fields, and raise an error on missing values instead of interpolating.
def safe_extract(doc, fields):loaded = doc.load(max_chars=200_000)assert loaded.loaded_chunks == loaded.total_chunks, "Content incomplete, aborting"return {f: doc.extract(f) for f in fields} # Leave missing fields empty, do not fill
4. Multimodal Generation: Prioritize Chinese Context and Editability
For anime, traditional Chinese style, and game-setting requirements, the difficulty lies not in image quality but in semantic fidelity and local modification. During evaluation, fix the same set of prompts and reference images, and focus on three things: whether Chinese proper nouns are correctly understood, whether character consistency is maintained after local redraws, and whether stability holds across consecutive rounds of edits. Only by bringing generation results into version control (retaining prompts, random seeds, and reference image hashes) can you run reproducible regression tests.
5. Cost, Quota, and Architectural Decoupling
When the budget is limited, the safest approach is to abstract a model gateway layer that decouples the business from the specific service:
class ModelGateway:def route(self, task): # Factual QA goes through the low-hallucination channelreturn "strict" if task.type == "fact" else "creative"def fallback(self, err): # Auto-degrade on rate limiting or timeoutreturn self.backup.chat(err.payload)
Combined with logging services and monitoring alerts, record the refusal rate, validation failure rate, and retry count for each call, and make decisions based on data rather than intuition. If elastic compute is needed to handle batch inference, use a container platform with object storage for artifact archiving.
6. Conclusion: A Two-Week Selection Process You Can Execute
- Sample 100 questions from real business, with 30 intentionally unanswerable, and measure the “fabrication rate”;
- Add an extra-long document to verify alert behavior under truncation scenarios;
- Run 20 sets of multimodal edits to evaluate consistency and Chinese understanding;
- Measure cost per task and rate-limiting behavior, then compute a weighted floor score.
The conclusion is clear: in precision-sensitive scenarios where the budget forces a choice between two options, prioritize a general-purpose solution that refuses conservatively, externalizes computation, and offers observable context; creative, open-ended tasks can be brought in as a second channel on demand. Also note that industry capabilities get reshuffled every few months, so always keep the gateway abstraction and regression cases in place, making selection a replaceable engineering decision rather than a one-time bet.
