Understanding the Foundation of Intelligent Reasoning
A Knowledge-Based Agent (KBA) is an intelligent agent that uses knowledge about its environment and logical reasoning to make decisions, rather than relying solely on reactive responses to stimuli.
| Aspect | Reactive Agents | Knowledge-Based Agents |
|---|---|---|
| Decision Making | Direct stimulus-response | Reasoning-based decisions |
| Memory | No persistent memory | Maintains knowledge base |
| Learning | Cannot learn from experience | Can learn and update knowledge |
| Complexity | Simple, fast responses | Complex reasoning processes |
| Flexibility | Limited to programmed responses | Highly flexible and adaptable |
| Example | Thermostat, simple robot | Expert system, chess program |
The Knowledge Base is the heart of a knowledge-based agent. It stores facts and rules about the world that the agent can use for reasoning.
// Facts
is_bird(tweety)
has_wings(tweety)
can_fly(X) :- is_bird(X), has_wings(X)
// Rules
if can_fly(X) then is_animal(X)
if is_animal(X) then is_living(X)
Knowledge-based agents follow a continuous cycle of perceiving, reasoning, and acting:
Agent observes the environment through sensors
Add new percepts to the knowledge base
Query KB to determine what action to take
Execute the chosen action in the environment
The declarative approach focuses on what is true rather than how to act. This separation of knowledge and control provides several advantages:
The PEAS framework helps us analyze agent design by considering Performance, Environment, Actuators, and Sensors.
Now that we understand what knowledge-based agents are, we'll explore how to structure and organize the knowledge they use in Topic 2: Knowledge Base Structure.