A pragmatic approach to generative AI