Knowledge based agents in AI
Last Updated :
21 Sep, 2023
Humans claim that how intelligence is achieved- not by purely reflect mechanisms but by process of reasoning that operate on internal representation of knowledge. In AI these techniques for intelligence are present in Knowledge Based Agents.
Knowledge-Based System
- A knowledge-based system is a system that uses artificial intelligence techniques to store and reason with knowledge. The knowledge is typically represented in the form of rules or facts, which can be used to draw conclusions or make decisions.
- One of the key benefits of a knowledge-based system is that it can help to automate decision-making processes. For example, a knowledge-based system could be used to diagnose a medical condition, by reasoning over a set of rules that describe the symptoms and possible causes of the condition.
- Another benefit of knowledge-based systems is that they can be used to explain their decisions to humans. This can be useful, for example, in a customer service setting, where a knowledge-based system can help a human agent understand why a particular decision was made.
- Knowledge-based systems are a type of artificial intelligence and have been used in a variety of applications including medical diagnosis, expert systems, and decision support systems.
Knowledge-Based System in Artificial Intelligence
- An intelligent agent needs knowledge about the real world to make decisions and reasoning to act efficiently.
- Knowledge-based agents are those agents who have the capability of maintaining an internal state of knowledge, reason over that knowledge, update their knowledge after observations and take action. These agents can represent the world with some formal representation and act intelligently.
Why use a knowledge base?
- A knowledge base inference is required for updating knowledge for an agent to learn with experiences and take action as per the knowledge.
- Inference means deriving new sentences from old. The inference-based system allows us to add a new sentence to the knowledge base. A sentence is a proposition about the world. The inference system applies logical rules to the KB to deduce new information.
- The inference system generates new facts so that an agent can update the KB. An inference system works mainly in two rules which are given:
- Forward chaining
- Backward chaining
Various levels of knowledge-based agents
A knowledge-based agent can be viewed at different levels which are given below:
1. Knowledge level
Knowledge level is the first level of knowledge-based agent, and in this level, we need to specify what the agent knows, and what the agent goals are. With these specifications, we can fix its behavior. For example, suppose an automated taxi agent needs to go from a station A to station B, and he knows the way from A to B, so this comes at the knowledge level.
2. Logical level
At this level, we understand that how the knowledge representation of knowledge is stored. At this level, sentences are encoded into different logics. At the logical level, an encoding of knowledge into logical sentences occurs. At the logical level we can expect to the automated taxi agent to reach to the destination B.
3. Implementation level
This is the physical representation of logic and knowledge. At the implementation level agent perform actions as per logical and knowledge level. At this level, an automated taxi agent actually implement his knowledge and logic so that he can reach to the destination.
Knowledge-based agents have explicit representation of knowledge that can be reasoned. They maintain internal state of knowledge, reason over it, update it and perform actions accordingly. These agents act intelligently according to requirements.
Knowledge based agents give the current situation in the form of sentences. They have complete knowledge of current situation of mini-world and its surroundings. These agents manipulate knowledge to infer new things at "Knowledge level".
knowledge-based system has following features
Knowledge base (KB): It is the key component of a knowledge-based agent. These deal with real facts of world. It is a mixture of sentences which are explained in knowledge representation language.
Inference Engine(IE): It is knowledge-based system engine used to infer new knowledge in the system.
Actions performed by an agent
Inference System is used when we want to update some information (sentences) in Knowledge-Based System and to know the already present information. This mechanism is done by TELL and ASK operations. They include inference i.e. producing new sentences from old. Inference must accept needs when one asks a question to KB and answer should follow from what has been Told to KB. Agent also has a KB, which initially has some background Knowledge. Whenever, agent program is called, it performs some actions.
Actions done by KB Agent:
- It TELLS what it recognized from the environment and what it needs to know to the knowledge base.
- It ASKS what actions to do? and gets answers from the knowledge base.
- It TELLS the which action is selected , then agent will execute that action.
Algorithm :
function KB_AGENT (percept) returns an action
KB : knowledge base
t : time ( counter initially 0)
TELL(KB, MAKE_PERCEPT_SENTENCE (percept,t) )
action = ASK(KB, MAKE_ACTION_QUERY (t) )
TELL(KB, MAKE_ACTION_SENTENCE (action,t) )
t = t + 1
return action
If a percept is given, agent adds it to KB, then it will ask KB for the best action and then tells KB that it has in fact taken that action.
Knowledge Based AgentsA Knowledge based system behavior can be designed in following approaches:-
Declarative Approach: In this beginning from an empty knowledge base, the agent can TELL sentences one after another till the agent has knowledge of how to work with its environment. This is known as the declarative approach. It stores required information in empty knowledge-based system.
Procedural Approach: This converts required behaviors directly into program code in empty knowledge-based system. It is a contrast approach when compared to Declarative approach. In this by coding behavior of system is designed .
Similar Reads
Model-Based Reflex Agents in AI
Model-based reflex agents are a type of intelligent agent in artificial intelligence that operate on the basis of a simplified model of the world. Unlike simple reflex agents that only react to current perceptual information, model-based reflex agents maintain an internal representation, or model, o
6 min read
Goal-based AI Agents
Goal-based AI agents represent a sophisticated approach in artificial intelligence (AI), where agents are programmed to achieve specific objectives. These agents are designed to plan, execute, and adjust their actions dynamically to meet predefined goals. This approach is particularly useful in comp
6 min read
Utility-Based Agents in AI
Artificial Intelligence has boomed in growth in recent years. Various types of intelligent agents are being developed to solve complex problems. Utility-based agents hold a strong position due to their ability to make rational decisions based on a utility function. These agents are designed to optim
9 min read
Learning Agents in AI
Learning agents are a shining example of scientific advancement in the field of artificial intelligence. This innovative approach to problem-solving puts an end to the static nature of classical planning by rejecting the conclusions based on the trivial pursuit of perfect knowledge. This article dis
4 min read
Intelligent Agent in AI
In the realm of AI, Intelligent Agents stand as pivotal entities, driving automation and decision-making with cognitive abilities. This article explores the concept, architecture, functionalities, and real-world applications of these agents, shaping the modern AI landscape. Table of Content Understa
7 min read
Types of Agents in AI
Types of Agents in AI, agents are the entities that perceive their environment and take actions to achieve specific goals. These agents exhibit diverse behaviours and capabilities, ranging from simple reactive responses to sophisticated decision-making. This article explores the different types of A
11 min read
Agents in AI
An AI agent is a software program that can interact with its surroundings, gather information, and use that information to complete tasks on its own to achieve goals set by humans.For instance, an AI agent on an online shopping platform can recommend products, answer customer questions, and process
9 min read
Perception in AI Agents
Perception stands as a foundational concept in the realm of AI, enabling agents to glean insights from their environment through sensory inputs. From visual interpretation to auditory recognition, perceptions empower AI agents to make informed decisions, adapt to dynamic conditions, and interact mea
7 min read
Applications of Intelligent Agents in AI
In the rapidly developing field of artificial intelligence (AI), intelligent agents are essential for streamlining decision-making procedures, increasing productivity, and simulating human thought processes across a range of areas. These agents are essential to many applications, from basic email fi
4 min read
Simple Reflex Agents in AI
In this domain of artificial intelligence (AI), where complexity often reigns supreme, there exists a fundamental concept that stands as a cornerstone of decision-making: the simple reflex agent. These agents, despite their apparent simplicity, wield immense power in their ability to perceive, analy
4 min read