get knowledgeBase from factory and use it