TNO/knowledge-engine

Prevent the same knowledge base to be contacted multiple times in a single interaction.

Sophietje opened this issue · 2 comments

In GitLab by @barry.nouwt.tno.nl on Aug 29, 2023, 09:12

In some circumstances, when the reasoner is enabled, a knowledge base is contacted multiple times with the same (or nearly the same) question. This is caused by the heuristic of the reasoner plan to determine whether a node changed or not. Currently, it says it changed, while in practice it maybe did not. See also this code: https://github.com/TNO/knowledge-engine/blob/master/reasoner/src/main/java/eu/knowledge/engine/reasoner/ReasonerPlan.java#L134

In GitLab by @barry.nouwt.tno.nl on Aug 29, 2023, 09:13

created branch 426-prevent-the-same-knowledge-base-to-be-contacted-multiple-times-in-a-single-interaction to address this issue

Found the cause and the fix was easier than I thought.