Logic and knowledge bases
**Logic** systems store facts and rules, then **infer** new conclusions. A **knowledge base (KB)** is that store. Classical AI used this heavily before statistical learning dominated many tasks.
What it is
Logic systems store facts and rules, then infer new conclusions. A knowledge base (KB) is that store. Classical AI used this heavily before statistical learning dominated many tasks.
Why it matters
Rules still matter in products: business policies, safety constraints, medical protocols as guardrails—even when an LLM drafts text. Knowing logic’s strengths and brittleness prevents nostalgia and hype.
How it works (plain)
- Encode facts (“Ada is a bird”) and rules (“birds typically fly”)
- Ask a query (“does Ada fly?”)
- Inference engine derives answers—or says unknown
Messy reality breaks brittle rules (penguins; exceptions; conflicting sources).
Everyday example
Tax software encodes rules; it does not “vibe” deductions. Exceptions still need human judgment.
Try it
Write 3 facts and 1 rule about your kitchen inventory. What query would fail if an exception appears?
Myths
- ⚠️ Myth: LLMs made knowledge bases obsolete.
- ✓ Reality: Hybrid systems use both—LLMs for language, KBs/tools for enforceable facts.
- ⚠️ Myth: If it is logical, it is fair.
- ✓ Reality: Rules encode human choices—including biased ones.
Sources
- Russell & Norvig AIMA (logic chapters)
- Course 09 RAG (modern retrieval as soft KB)
- Course 10 tool-use (APIs as living KBs)
