From Rule Engines to Large Language Models: The Origin Story of AI Terminology

    This article traces how core AI terminology evolved from rule engines to large language models and agentic tool use. Instead of memorizing definitions, it explains each term through three questions: what it replaced, what it kept, and what new problems it introduced. Readers will learn why machine learning, neural networks, pre-training, RAG, function calling, and standardized tool protocols emerged, plus practical guidance for frontend and full-stack engineers integrating uncertain model dependencies.

    From Rule Engines to Large Language Models: The Origin Story of AI Terminology

    1. Start With Method: Terms Are Forced Into Existence, Not Memorized

    Most introductory material has the same flaw: it hands you definitions without explaining the historical situation that produced them. Readers end up remembering ten acronyms while still being unable to explain how they relate. One follow-up question in an interview—“why was this needed?”—and the whole chain of reasoning collapses.

    A more reliable approach is reverse engineering. Every term exists to fix a specific defect in the previous generation of solutions. So when you learn a term, ask three fixed questions: what did it replace, what did it preserve, and what new problem did it introduce? Answer those three, and the terms form a chain instead of scattered entries.

    One thing to state upfront: every micro-level concept below serves the same macro-level goal—expressing “intelligence” in a computable form. Once that goal is fixed, each subsequent technical shift becomes a necessary choice rather than an accidental invention.

    2. The Starting Point: Computers Were Specialists, Which Sparked the Ambition to Formalize Intelligence

    Early digital computers excelled at numerical computation. Work that took humans days could be completed precisely in a very short time. That capability inspired a question in reverse: if “computation” can be formalized and reproduced precisely by a machine, can human “reasoning” be formalized the same way?

    This was the original proposition of artificial intelligence: how to express intelligence as logical formulas or mathematical models. If it can be written down, a machine can execute it. That sounds obvious today, but at the time it determined the technical direction for decades—every method was essentially a search for a better way to express intelligence.

    3. First Generation: Rule Engines and Their Ceiling

    The most direct approach was to translate human experience into machine-executable logic, with the conditional statement as the smallest unit:

    1. IF cloud cover is heavy AND humidity > 70%
    2. THEN conclusion = likely rain

    Systems like this are usually called rule engines or expert systems. Their advantages are clear: conclusions are explainable, behavior is predictable, and no training data is required. With a large enough rule base, the system looks like it has judgment from the outside.

    The problem is scale. The state space of the real world is nearly infinite, while human-written rules are always finite. A growing rule set causes two consequences: rules start conflicting with each other and priorities become hard to maintain; and when the system hits an uncovered combination, it fails outright in unpredictable ways. More critically, rules must be supplied explicitly by people, which means the system cannot update itself from experience.

    The conclusion is clear: the rules were not wrong—exhaustive enumeration by humans was the dead end. So the thinking shifted: could a machine estimate the rules from data on its own?

    4. Second Generation: Machine Learning Swaps Writing Rules for Tuning Parameters

    The core shift in machine learning is to stop writing conclusions directly and instead define a parameterized function, then fit its parameters with data:

    1. score = w1 * cloud_cover + w2 * humidity + w3 * pressure + b
    2. prediction = score > threshold ? rain : no rain

    People no longer decide that “humidity above 70% always means rain.” They only supply many labeled historical samples, and the training process searches for suitable weights. Rules are replaced by parameters, and the data decides the parameters.

    This produced a batch of terms still in use today, each with a clear motivation:

    • Training set and test set: you need to separate “data the model has seen” from “data it has not,” otherwise you cannot tell whether it actually learned the pattern.
    • Overfitting: parameters memorize sample noise, performing extremely well on the training set and collapsing on new data.
    • Regularization: an added penalty term introduced to suppress overfitting.
    • Feature engineering: model capability is limited by the input representation, so humans must construct more informative inputs.

    The second generation solved “rules can never be finished,” but kept a new bottleneck: features still depended on people. This is manageable for tabular data, but once the input is images, audio, or text, manual feature design becomes extremely difficult.

    5. Third Generation: Neural Networks and Representation Learning

    The answer from neural networks: stop designing features by hand and let the model learn hierarchical representations. Each layer in a multi-layer structure recombines the previous layer’s output into a more abstract expression—from edges and textures to local shapes, from characters to word meaning to semantics.

    A common misconception needs clearing up here: training a neural network is not vaguely “adjusting parameters until the loss goes down.” In engineering it typically involves three stages:

    1. Forward propagation, producing predictions and computing the loss.
    2. Backpropagation, using the chain rule to compute the gradient of the loss with respect to each parameter.
    3. Parameter update, taking a small step in the opposite direction of the gradient.

    The learning rate controls the step size, and batch size affects the stability of a single update as well as memory usage. These are necessary conditions for training to run at all, not theoretical decoration.

    6. Fourth Generation: Why Large Models Became the Dividing Line

    When parameter count and data volume are scaled up to a certain point, model behavior changes qualitatively: the same model, without targeted fine-tuning, can handle translation, summarization, classification, code writing, and more. This directly changed the engineering paradigm—from “train one model per task” to “one general model plus a small amount of surrounding work.”

    A large number of terms grew around this paradigm, and grouping them by “what problem does it solve” makes them clearer:

    • Pre-training and fine-tuning: first acquire general capability from massive general-purpose corpora, then align to a specific task with a small number of domain samples.
    • Token and context window: the model processes text in chunks, and the total number of chunks it can hold at once is limited, so “context budget” becomes a real engineering constraint.
    • Prompt engineering: improve output stability through instructions, examples, and output format constraints, without changing the model.
    • Retrieval-augmented generation: retrieve external knowledge and place it in the context first, mitigating stale knowledge and fabrication.
    • Hallucination: the model’s objective is to generate plausible chunks rather than verify facts, so external checks are required as a backstop.

    7. From “Speaking” to “Acting”: Tool Calling and Protocol-Based Integration

    At this point a practical contradiction emerges: the model can generate structured content, but it does not know real-time data inside your systems and cannot perform write operations. The industry’s common solution has two layers.

    The first layer is function calling: give the model structured descriptions of callable capabilities; the model outputs which capability to call and with what arguments; the application actually executes it and feeds the result back into the context. Note the boundary of responsibility—the model only produces the call intent. Permission checks, argument validation, auditing, and rate limiting must be handled on the program side and must never be left to the model’s discretion.

    The second layer standardizes this integration into a separate protocol layer, which is a frequent topic in recent frontend and full-stack interviews. The relationship can be understood this way: function calling is “how the model expresses what it wants to call,” while protocol-based integration is “how external capabilities declare themselves in a unified format and get reused across different hosts.” The former is a convention on the model side; the latter is a communication convention between hosts and capability providers.

    1. Model outputs call intent -> Host parses and validates -> External capability executes
    2. ^ |
    3. |________ result fed back into context <________________________|

    The value of standardization is decoupling: a capability is implemented once, and multiple clients that support the protocol can integrate with it, with no need to re-adapt for every host. In engineering practice, you still have to handle timeouts, retries, idempotency, least-privilege authorization, and redaction of sensitive information. None of these are model capability problems—they are system design problems.

    8. Fitting the Terms Into One Evolution Map

    Stage How intelligence is expressed Main bottleneck Terms that respond
    Rules Human-written conditional logic Rules cannot be enumerated exhaustively Rule engine, conflict resolution
    Statistical learning Fitting parameters with data Features depend on manual work Training/test set, overfitting, regularization
    Deep learning Learning hierarchical representations Depends on heavy compute and data Backpropagation, learning rate, batch size
    Large models General pre-training plus alignment Limited context, hallucination Token, context window, retrieval augmentation
    Agents Calling external capabilities Permissions and reliability Function calling, protocol integration, idempotency

    9. Learning Advice for Frontend and Full-Stack Engineers

    Frontend and full-stack roles touch this layer, and the focus is not deriving formulas but designing systems around the model as an “uncertain remote dependency”:

    • On the input side, validate and enforce a length budget; when the limit is exceeded, trim or summarize first instead of throwing an error.
    • On the output side, assume the format may be invalid; use structured parsing with retry on failure, and the UI layer must have a fallback rendering.
    • On the interaction side, make long-running tasks streaming and cancellable, and clearly distinguish “generating,” “completed,” and “failed.”
    • On the security side, apply whitelists and least privilege to external capability execution, and avoid writing sensitive raw text into logs.
    • On the observability side, record the call chain, latency, and failure reasons, and use logging services plus monitoring and alerting to locate problems.

    Back to the original method: when you meet an unfamiliar term, first ask what it replaced, what it preserved, and what new problem it introduced. Answer those three questions and the term is no longer a noun to memorize, but a necessary link in an evolution chain that you can derive.