It dawned on me yesterday that the computer in star trek has to be an AI program of some sort in order to be so responsive to the wide range of queries it receives. However, it exists as a supplemental tool to the extensive knowledge and expertise of Starfleet, not a primary source of information.