Testing mock scenarios with a Power Parse app
A Power Parse app will be the demo app that will be run in all tests. Let’s describe its main screens briefly. You can see the home page describing how to use it in Figure 11.12.
Figure 11.12 – The Power Parse home page with the user guide
Once you configure the Power Parse app, and use or create the prompts and content, it will send a request to Azure OpenAI Service or the Hugging Face BLOOM Model, getting a generative AI response based on the prompt and content sent. Basically, it will send a metaprompt as a result of the concatenation of both pieces of information – Prompt or instruction\n\nContext Content
. Figure 11.13 shows the screen where choosing a prompt and its corresponding context generates an email text with the selected model.
Figure 11.13 – The Power Parse generative AI question screen
We created this app to include all the mocks needed...