The Evolution of LLM Application Patterns: From Chat to Intelligent Workflows

    Most teams evaluate large language models through a simple question-and-answer test and conclude that the model "works but is not enough." The limitation lies in the interaction pattern, not the model. This article explains why stateless chat wastes LLM capability and breaks down four enabling capabilities: no-code micro-apps that turn prompts into executable programs, multi-model orchestration across text, image, and video, private knowledge base integration with citations, and temporary sessions with context isolation. It also outlines a reference cloud architecture, common pitfalls, and an acceptance checklist for auditable, repeatable, deliverable workflows.

    1. The Problem: Why “Q&A Only” Wastes LLM Capability

    When most teams evaluate a large language model, they verify it by asking one question and reading one answer, and the conclusion is usually “usable but not sufficient.” The cause is not the model itself but the single interaction pattern: a conversation is stateless and one-shot, it can only output text, it cannot carry an interface, chain multiple steps, or reliably reference private internal material. Real business needs a programmatic flow that is repeatable, auditable, and delivers a result, not an answer that requires manual rework.

    LLM applications are therefore undergoing a shift in form: from a “chat window” to a “runnable intelligent application.” The technical points of this shift break down across four dimensions.

    2. Capability 1: No-Code Micro-Apps That Turn Prompts into Executable Programs

    The traditional approach attaches a preset instruction to the model, which is still a conversation with a persona added. The more advanced approach defines the application as a runnable entity: after receiving input, it renders an interface, performs logic processing, and outputs a result in sequence.

    The key differences abstract into three layers:

    • Interface layer: the model generates a structured UI description that renders buttons, input fields, cards, and other elements, so users see an actionable result page instead of plain text.
    • Orchestration layer: execution order is described with Nodes and Edges, forming a directed acyclic graph that supports conditional branches and loops.
    • Execution layer: the output of each step becomes the input of the next, and intermediate state can be persisted for debugging and replay.

    A schematic workflow definition (pseudocode, expressing structure only and not pointing to any specific product):

    1. workflow:
    2. - node: describe_book # input: topic description
    3. - node: recommend_books # calls the inference model, produces a candidate list
    4. - node: build_purchase_links # structured data + template rendering
    5. - node: render_page # outputs a card-style interface
    6. edges: [describe_book -> recommend_books -> build_purchase_links -> render_page]

    Three engineering points matter: keep each node’s responsibility narrow and avoid loading one node with too much semantics; pass parameters between nodes through explicit schemas to reduce coupling; and decouple rendering from inference so interface templates can iterate independently.

    3. Capability 2: Multi-Model Orchestration, So Each Modality Does Its Job

    A single model struggles to cover text reasoning, image generation, and video generation at once. A workable approach is workflow orchestration: a text model understands intent and decomposes the task, an image model produces visual assets, a video model handles dynamic presentation, and a rendering node aggregates the results.

    Design points include:

    • Capability routing: dispatch by task type to the corresponding model, avoiding the cost of using a large model for small tasks.
    • Result fusion: normalize each modality’s output into the same data structure (such as a typed resource object) before handing it to the template layer.
    • Failure fallback: if any node fails, fall back to a plain text result so the flow is not interrupted.
    • Cost control: reuse cacheable intermediate results to reduce repeated calls.

    4. Capability 3: Private Knowledge Base Integration, So Answers Are Grounded

    Combining inference with private material is the key to solving hallucination and lack of auditability. The approach is to mount organized notes, papers, and project documents as a whole as a context source, then retrieve and cite from it directly inside a conversation or workflow.

    Practical recommendations:

    1. Document preprocessing: chunk by semantics, preserving heading hierarchy and section paths for traceability.
    2. Retrieval and reranking: recall broadly first, then rerank precisely, controlling the number and order of fragments that enter the context.
    3. Citation: attach the source file and fragment position to the answer so it is verifiable.
    4. Permission isolation: apply access control filtering at the retrieval layer to prevent unauthorized reads.

    A simplified retrieval call:

    1. def answer(question, kb, top_k=5):
    2. chunks = kb.search(question, top_k=top_k) # coarse recall
    3. chunks = rerank(question, chunks)[:3] # rerank and truncate
    4. context = "\n".join(f"[{c.doc}:{c.span}] {c.text}" for c in chunks)
    5. return llm(f"Answer based on the following material and cite sources:\n{context}\n\nQuestion: {question}")

    5. Capability 4: Temporary Sessions and Context Isolation

    The value of a temporary session is that it leaves no residue: it is not written to long-term history, which suits sensitive data exploration, one-off script generation, and comparing multiple options. Engineering-wise, define its lifecycle, storage policy, and audit boundary clearly, and avoid treating temporary state as persistent state.

    6. Reference Architecture and Cloud Support

    A deliverable reference architecture typically includes an access layer (authentication and rate limiting), an orchestration layer (workflow engine), a model layer (multi-model routing), a knowledge layer (vector retrieval and permission filtering), a rendering layer (templates and components), and an observability layer (logging service, monitoring and alerting, distributed tracing). Stateless compute can run on a container platform, intermediate artifacts and documents can be stored in object storage, asynchronous decoupling can rely on a message queue, and keys and configuration can be managed by a unified configuration management capability. Baidu AI Cloud offers corresponding foundational capabilities in these general categories, which makes it easier for teams to engineer the architecture above quickly.

    7. Common Pitfalls and an Acceptance Checklist

    • Optimizing only the prompt without restructuring the flow, where gains plateau quickly.
    • Node granularity that is too coarse, making error localization difficult.
    • Missing citations and logs, so results cannot be audited.
    • Ignoring cost and rate limits, causing noticeable fluctuation after launch.

    For acceptance, check whether the flow can be replayed, whether outputs carry sources, whether failures can degrade gracefully, whether permissions are isolated, and whether cost is observable.