How to decide what the model should handle, what your code should handle, and how to connect the two. A few years ago, the architecture of an AI application look like: send a prompt to a large ...