External and internal knowledge in the knowledge generation function