better way to add knowledge base?

To your experience, which has been the better method to add a knowledge base to your agent?

Adding it as a file? Or a Tool?
Was this page helpful?