Prompt Engineering with Power Platform
Rihab Tlili
Consultante Power Platform | Power BI, Power Apps, Power Automate, Power Virtual Agents
Prompt Engineering
Parts of a prompt:
There are two parts to a prompt for a GPT model, the instruction and the context.
Characteristics of a good prompt:
Power Platform for Prompt Engineering
Text generation is powered by Azure OpenAI Service, which is built on Generative Pre-trained Transformer (GPT) technology.
Overview:
This guide outlines 3 easy steps to create an AI-powered solution tailored for healthcare workers.
Prerequisites:
1. Create a Prompt:
Sign in to Power Apps. On the left navigation panel, select AI Hub > AI Prompts (Invites) > Crete text using custom prompts
There are many types of prompts to pick from, I used the "Custom task with custom prompts".
领英推荐
Building the prompt:
Context: "I am a nurse at a children's hospital that needs to instructions on how to use this medical instrument:" I added a dynamic value "Medical Instrument" for the user to select (on the PowerApp).
Instruction: "Provide a concise list of instructions to help me use the instrument appropriately. Do not add any additional text."propriately. Do not add any additional text.
I am a nurse at a children's hospital that needs to instructions on how to use this medical instrument: Medical Instrument . Provide a concise list of instructions to help me use the instrument appropriately. Do not add any additional text.
2. Creating a Dataverse table:
I created a simple Dataverse table to store a list of medical devices used by healthcare workers. We will use this table in our canvas PowerApp.
3. Canvas PowerApp:
Set(varInstructions, 'Medical Instrument Instructions'.Predict(ThisItem.'Nom du Dispositif'))
5. Add a text label on the right half and the 'Text' property set to:
varInstructions.Text
Demo:
Unmanaged Solution is available to download on GitHub