knowledge based consultation system