Text this: The power duo: unleashing cognitive potential through human-AI synergy in STEM and non-STEM education