Knowledge Based Agents
Knowledge Based Agents
• Humans, it seems, know things; and what they know helps them do things.
• not by purely reflex mechanisms but by processes of reasoning that operate on
internal representations of knowledge
• In AI, this approach to intelligence is embodied in knowledge-based agents.
• In a partially observable environment, an agent’s only choice for representing
what it knows about the current state is to list all possible concrete states
• we develop logic as a general class of representations to support knowledge-based
agents.
Knowledge-based Agents
• Knowledge-based agents can accept new tasks in the form of explicitly described
goals; they can achieve competence quickly by being told or learning new
knowledge about the environment; and they can adapt to changes in the
environment by updating the relevant knowledge
• A knowledge base is a set of sentences Here “sentence” is used as a technical
term. It is related but not identical to the sentences of English and other natural
languages.
• Each sentence is expressed in a language called a knowledge representation
language and represents some assertion about the world.
• Sometimes we dignify a sentence with the name axiom, when the sentence is
taken as given without being derived from other sentences.
Knowledge-based Agents
Knowledge-based Agents
• Inference:
• Tell: to add new sentences to the knowledge base
• Ask: a way to query what is known
• The agent maintains a knowledge base, KB, which may initially contain some background knowledge.
Knowledge-based Agents
When Agent program is called:
• First, it TELLs the knowledge base what it perceives.
• Second, it ASKs the knowledge base what action it should perform. In the
process of answering this query, extensive reasoning may be done about the
current state of the world, about the outcomes of possible action sequences,
and so on.
• Third, the agent program TELLs the knowledge base which action was chosen,
and the agent executes the action.
• The details of the representation language are hidden inside three
functions that implement the interface between the sensors and
actuators on one side and the core representation and reasoning system
on the other.
Knowledge-based Agents
• The knowledge-based
agent is not an arbitrary
program for calculating
actions.
• Knowledge level we
need specify only what the
agent knows and what its
goals are, in order to fix its
behaviour.
• Analysis is independent of
how the taxi works at the
implementation level
Knowledge-based Agents