liveBook · Manning

Rule-based system

A rule-based system produces outputs or actions by applying explicitly specified rules or conditions to inputs or represented facts.

How 6 Manning books explain it

Introduction to Generative AI, Second Edition

A rules-based AI system produces outputs by applying explicitly authored rules or response mappings rather than generating them probabilistically from learned model parameters.

How it is used
Uses rule-based chatbots to examine the trade-off between reviewed clinical responses and flexible conversation.
How deep it goes
Explains pattern matching and authored response selection at a high level, without implementation steps.
Examples
Contrasts ELIZA's pattern-matched replies with Woebot's clinician-reviewed messages.
What you can do after
Evaluate/understand it as a choice between reviewable prepared replies and greater conversational flexibility, without assuming review alone establishes clinical suitability.

Read how Introduction to Generative AI, Second Edition explains rule-based system →

Financial AI in Practice

A rules-based system is a computational system whose behavior is determined by explicitly specified if-then rules.

How it is used
Flags suspicious financial activity with explicit conditions and provides a fixed-action baseline for comparison with agentic automation.
How deep it goes
Defines if-then logic, sketches a rule engine, and evaluates historical flags; does not detail production rule-engine implementation.
Examples
Uses repeated failed card payments, historical transaction flags, composite high-risk conditions, and a fixed-template retention email.
What you can do after
Build it from scratch as a pandas-based fraud-rule prototype and evaluate flagged transactions before production deployment.

Read how Financial AI in Practice explains rule-based system →

Effective Data Analysis

A rules-based model produces outputs by applying explicitly specified logical rules, conditions, or keyword matches to input data.

How it is used
Automates repetitive categorization and routing decisions in operational workflows.
How deep it goes
Defines rule-based automation and illustrates its use, but stops short of implementation details or formal rule design.
Examples
Uses support-ticket categories, priority levels, and automated assignment to demonstrate operational categorization.
What you can do after
Evaluate rule-based automation against supervised classification while checking efficiency and unintended effects on customer groups.

Read how Effective Data Analysis explains rule-based system →

Machine Learning System Design

A rule-based system produces outputs by applying explicitly specified logical or procedural rules rather than learned model parameters.

How it is used
Provides a stable fallback or handles simple cases when an ML model is unavailable, unreliable, or unnecessary.
How deep it goes
Describes the fallback role, activation choices, and model-switching plan without explaining rule-engine internals.
Examples
Uses model unavailability, poor performance, simple-case routing, and unacceptable predictions as operational examples.
What you can do after
Operate/configure a fallback that switches between explicit rules and an ML model through automatic, manual, or hybrid activation.

Read how Machine Learning System Design explains rule-based system →

Natural Language Processing in Action, Second Edition

A rule-based algorithm determines outputs by applying explicitly designed human-authored rules to input data.

How it is used
Measures text sentiment when transparent, human-composed scoring rules are preferred.
How deep it goes
Explains keyword dictionaries and score summation, but defers the detailed VADER implementation.
Examples
Uses a sentiment dictionary, weighted tokens, and the neutral statement “It was OK.”
What you can do after
Build a sentiment scorer by composing a weighted token dictionary and summing matching scores.

Read how Natural Language Processing in Action, Second Edition explains rule-based system →

Building Reliable AI Systems

A system that makes decisions by applying predefined logic or rules to inputs.

How it is used
Routes agent decisions to tools through predefined logic, such as selecting booking APIs from query terms.
How deep it goes
Defines rule-based decisions and contrasts their rigidity with AI-driven reasoning, without detailing implementation.
Examples
Uses flight and hotel query terms to illustrate API routing, and a pet-friendly hotel request to show a limitation.
What you can do after
Evaluate how predefined routing rules handle requests and where explicit programming may fail.

Read how Building Reliable AI Systems explains rule-based system →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.