Knowledge-Based Agent — AI Technical Interview Questions & Answers
Knowledge-Based Agent
Knowledge-Based Agent
- A knowledge-based agent stores sentences in a knowledge base (KB) and infers new ones before acting. Tell the KB facts. Ask it queries. Inference engine applies rules. Contrast with a simple reflex: no KB, just if-then on the current percept.
- Wumpus world is the textbook playground: breeze → maybe pit nearby. Don’t dump Prolog unless they ask. Say KB + inference + action.
- Output: idea / do / check for Knowledge-Based Agent. Fill those three in the viva.
sensors → agent → actuators
│
▼
environmentTechnical Interview Tip: KB vs simple reflex in one contrast.
Code Examples for Knowledge-Based Agent
Example
# Knowledge-Based Agent
print("idea :", "Knowledge-Based Agent")
print("do : one tiny example on paper")
print("check: one failure case")
Output: idea / do / check for Knowledge-Based Agent. Fill those three in the viva.
How to Explain Knowledge-Based Agent to an Interviewer
Explain Knowledge-Based Agent as if you are teaching a junior — definition, then one example.
KB + inference + action. Tell / Ask.
What does the example print, and what does that prove?
idea / do / check for Knowledge-Based Agent
What mistake do freshers make with Knowledge-Based Agent?
Only the buzzword, no example