Building the foundations for lean generative AI applications