Why LLMs Keep Disappointing You: Rebuilding Your Prompting Paradigm
This article explains why large language models often produce unusable output and how to fix it through engineering rather than switching models. It covers the four common root causes of failed expectations, a structured prompt template with five slots, layered context engineering, plan-execute-verify decomposition for complex tasks, evaluation loops with concrete metrics, and when deterministic code is the better choice. Model capability sets the ceiling; engineering determines how much of it you reach.
1. Define the Problem First: It Is Not the Model, It Is the Un-Engineered Task
The typical “wish-style” call describes a goal in one sentence and expects the model to fill in the background, constraints, data, and acceptance criteria on its own. An LLM is fundamentally a probability-based sequence generation system. It optimizes for “the most likely continuation given the current context,” not “the answer that matches the intent you never stated.” When the context is missing key constraints, the model fills the gaps with statistical priors, and the output naturally looks plausible while being unusable.
So before judging whether a model is any good, you have to separate three layers of confusion. The first is the model’s own capability boundary: reasoning, long context, multimodal understanding, and so on. The second is the information loss introduced by the way you call it. The third is the absence of acceptance criteria on the business side, which makes it impossible to judge output quality at all. Most negative experiences come from the second and third layers, yet they get lumped into the first.
2. Four Frequent Root Causes of Unmet Expectations
- The goal is not verifiable. Without a decidable success condition, output quality rests on subjective feeling, and the model has nothing to converge against.
- The context is insufficient or polluted. The business glossary, data dictionary, and existing code style are missing, while large amounts of irrelevant content are stuffed in, diluting the signal that matters.
- Constraints are stacked as negations. Phrases like “don’t be verbose, don’t make things up, don’t drift off topic” provide no positive, executable path, so the model can only guess where the boundaries are.
- One-shot delivery is expected. A complex task is compressed into a single turn with no decomposition, validation, or retry mechanism, so errors get amplified at the end of a long chain.
3. From Wish to Contract: A Structured Way to Write Prompts
Design the prompt as an interface contract with at least five slots: role and goal, input data, constraints, output format, and acceptance criteria. Example:
Role: Senior backend engineerGoal: Add parameter validation and error handling to the function belowInput: <paste code, keep indentation>Constraints:1) Use only the project's existing dependencies; do not add new libraries2) Keep the function signature unchanged3) Write comments in Chinese, max 80 characters per lineOutput: Return only the modified full function, no explanationAcceptance: Clear exceptions are raised for None, an empty string, and an over-long string
The key difference is that the constraints are positive and executable, the output is machine-parseable, and the acceptance criteria can be checked automatically. These three points decide whether the result can enter a pipeline instead of stopping at “looks fine.”
4. Context Engineering: The Variable That Actually Sets the Ceiling
More context is not better; a higher signal-to-noise ratio is. In practice, organize context in layers. The system layer holds stable rules and style conventions. The task layer holds the current goal and input. The reference layer holds the retrieval snippets you actually need, annotated with source and timestamp. The memory layer holds confirmed facts and decisions so they are not re-confirmed repeatedly. For long documents, summarizing in segments first and then retrieving in a targeted way is more stable than stuffing in the whole text.
When external data is required, retrieval augmentation lets you bring in enterprise knowledge: keep private terminology, interface conventions, and past incident cases in a searchable knowledge base, and have the application inject what is relevant by relevance rather than relying on model memory. For runtime information such as files, logs, and metrics, general cloud product categories like object storage, logging services, and monitoring and alerting can handle collection and archiving; the application then trims the material before sending it to the model, which controls cost and reduces pollution at the same time.
5. Complex Tasks Must Be Decomposed: Plan, Execute, Verify
Single-turn generation suits small tasks with clear boundaries. Once a task involves multi-file changes, data migration, or aligning report definitions, split it explicitly into plan, execute, and verify. The planning stage produces a step list and an impact surface. The execution stage lands the changes step by step and keeps intermediate artifacts. The verification stage uses tests, static checks, or a rules engine for automated judgment, and retries with the error information if it fails.
def run_task(task, model, max_retry=3):plan = model(task + "\nFirst output the step list and risk points")for i in range(max_retry):draft = model(f"Plan:{plan}\nExecute step by step, output only the result")ok, feedback = verify(draft) # unit tests / rule checksif ok:return draftplan = model(f"Revise the plan based on the failure feedback:{feedback}")raise RuntimeError("Acceptance failed; human intervention required")
The point here is to take part of the judgment away from the model and hand it to deterministic tools. The model generates and rewrites; rules and tests make the call. With that division of labor, overall reliability improves markedly.
6. Replace Subjective Feeling with an Evaluation Loop
“Is it any good” should be a measurement result. Build a small but fixed evaluation set that covers typical scenarios, boundary inputs, and historical failure cases, and track metrics such as task success rate, first-pass rate, average number of retries, and hours of manual rework. After every prompt change, model switch, or retrieval strategy adjustment, run the same sample set again; only then can you tell where the gain came from. Without evaluation, any “it feels better now” is not reproducible.
7. When Not to Rely on an LLM
When a task demands strong consistency, auditability, low latency, and clearly defined rules, implement it with deterministic code, a rules engine, or a conventional algorithm, and reserve the model for semantic understanding and content generation. For high-risk write operations, insist on human confirmation and gradual rollout. For scenarios involving sensitive data, apply masking, permission isolation, and audit trails. If you use general capabilities from Baidu AI Cloud, follow the principle of least privilege and data classification as well. The model is only one link in the chain, not the accountable party.
8. Conclusion
Most complaints that “the model is not good enough” ultimately point to the calling paradigm rather than the model itself. Rewrite vague wishes as structured contracts, split long chains into planning and verification, and replace subjective judgment with a regression evaluation set, and output moves from “random” to “deliverable.” Model capability sets the ceiling; engineering determines how much of that ceiling you can actually reach.
