In artificial intelligence, the inference engine is the part of an intelligent system that derives new information from the knowledge base by applying some logical rules.
It mainly works in two modes:
Backward Chaining: It begins with the goal and proceeds backward to deduce the facts that support the goal.
Forward Chaining: It starts with known facts, and asserts new facts.