Enhancing Teaching and Research with AI