Designing Patterns for Interacting with Generative AI
In the previous chapters, we explored the world of generative AI (GenAI), including the types of use cases and applications that can be developed using this exciting new technology. We also discussed evaluating the business value that GenAI can potentially bring to the table for different organizations and industries.
In this chapter, we will dive deeper into the practical considerations around integrating GenAI capabilities into real-world applications. A key question that arises is, where and how should we incorporate GenAI models within an application’s architecture and workflow? There are a few different approaches we can take, depending on factors like the application type, existing infrastructure, team skills, and more.
Figure 3.1: Image generated by AI to depict AI integration
We will start by examining how user requests or inputs can serve as entry points for generating content or predictions using...