Why LLM APIs Feel Less Human Than Web Chat Apps

    This article explains why the same LLM can seem less capable through an API than through a web chat product, arguing that the gap comes from orchestration rather than a weaker model. It shows how to make implicit context explicit with a five-layer request structure, how to constrain extraction tasks with strict schemas and evidence, and why evaluation must control variables. It also notes the shift of capabilities from the model layer to the service layer.

    1. The model did not get dumber; orchestration responsibility shifted

    “The web app just works better” is a perfectly plausible observation, but it does not imply that the web app runs a stronger model. A more reasonable explanation is that a single model call receives completely different inputs at the two entry points.

    The API semantics are plain: it executes only the request you submit. Any background, constraints, examples, or output format you leave out of the request is unknown to the model. A chat product, by contrast, assembles system instructions, multi-turn history, parsed results of uploaded files, retrieved reference material, output templates, and safety policies around your single sentence. The server then decides whether to extend thinking at that moment and whether to trigger tool calls. Much of the “human-like” feel users perceive comes from this invisible engineering layer.

    Attributing the entire difference to prompt quality is therefore a misdiagnosis. What you actually need to supply is the work the product layer has been quietly doing for you.

    2. Making implicit context explicit: a layered request body

    A request can be split into five layers in engineering practice. Fill them in one by one; missing a layer produces a typical kind of “dumbness”:

    1. Identity and task layer: role, goal, and success criteria.
    2. Domain background layer: business terminology, data definitions, and system boundaries.
    3. Constraint layer: a must-do and must-not-do list, the more decidable the better.
    4. Example layer: two or three input-output pairs covering typical and boundary cases.
    5. Output protocol layer: fields, types, enums, and null rules.

    An illustrative request organization (pseudocode, expressing structure only, not pointing to any specific interface):

    1. messages = [
    2. {role: "system", content: identity + success criteria + prohibitions + output protocol},
    3. {role: "user", content: domain background + material to process},
    4. {role: "assistant", content: one canonical example},
    5. {role: "user", content: the actual input for this turn}
    6. ]

    Multi-turn scenarios require two extra steps: first, trim and summarize history so irrelevant turns do not dilute attention; second, restate key constraints in the final turn, because instructions placed later in a long context are usually followed more reliably.

    3. Extraction tasks call for restraint, not creativity

    Chat tolerates the model filling in context; information extraction is the opposite. Relations absent from the source text must not be added, entity direction must not be reversed, and fields outside the schema must not appear. In these tasks, “smarter” behavior means less output.

    Keep the prompt fixed at five parts:

    • A whitelist of entity types and relations; any type not listed is never produced.
    • Direction definitions and decision conditions for each relation, with operational criteria for telling them apart.
    • Output null when uncertain, with guessing explicitly forbidden.
    • Attach a source evidence span to every result for traceability and sampled review.
    • A fixed output schema, plus two or three boundary samples.

    Output protocol example:

    1. {
    2. "relations": [
    3. {
    4. "type": "enum<string>",
    5. "head": {"name": "string", "type": "enum<string>"},
    6. "tail": {"name": "string", "type": "enum<string>"},
    7. "evidence": "string",
    8. "confidence": "number"
    9. }
    10. ]
    11. }

    Add two safeguards on the engineering side: validate against the schema server-side, returning an error on violation and letting the model fix formatting only; and set a confidence threshold so low-confidence results go to a human review queue instead of straight into storage.

    4. Evaluation must control variables

    Comparisons without controlled variables are meaningless. The reliable approach is to fix the model version, fix the thinking mode, fix the same set of sentences, and fix the output protocol, then call repeatedly and compute precision, recall, and F1. Track format validity rate and evidence verifiability rate separately. Only when all four are aligned is the gain from a prompt change attributable.

    5. Capability is moving from the model layer up to the service layer

    The industry trend is that product capabilities are gradually exposed as programmable interfaces: web retrieval, deep thinking, file input, link reading, tool calls, and context assembly are increasingly handled server-side, but they are not enabled for you by default. This turns a procurement decision from “how many model calls to buy” into “how much orchestration capability to buy as well.” In related practice at Baidu AI Cloud, such capabilities are typically offered as general categories, such as retrieval augmentation, object storage, message queues, log services, and monitoring and alerting, combined on demand by the caller.

    The conclusion is straightforward: when an interface feels dumb, it is usually not poor prompting but the product-layer work you left entirely to the model. Completing the layered context, tightening extraction constraints, and building a controlled-variable evaluation are the reproducible paths to improvement.