Skip to content

Commit a9ef2c0

Browse files
committed
refresh prompt flow vision
1 parent 471dde4 commit a9ef2c0

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

articles/ai-studio/how-to/prompt-flow-tools/azure-open-ai-gpt-4v-tool.md

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ The prompt flow *Azure OpenAI GPT-4 Turbo with Vision* tool enables you to use y
2727

2828
- An [Azure AI hub resource](../../how-to/create-azure-ai-resource.md) with a GPT-4 Turbo with Vision model deployed in one of the regions that support GPT-4 Turbo with Vision: Australia East, Switzerland North, Sweden Central, and West US. When you deploy from your project's **Deployments** page, select: `gpt-4` as the model name and `vision-preview` as the model version.
2929

30-
3130
## Build with the Azure OpenAI GPT-4 Turbo with Vision tool
3231

3332
1. Create or open a flow in [Azure AI Studio](https://ai.azure.com). For more information, see [Create a flow](../flow-develop.md).
@@ -36,10 +35,36 @@ The prompt flow *Azure OpenAI GPT-4 Turbo with Vision* tool enables you to use y
3635
:::image type="content" source="../../media/prompt-flow/azure-openai-gpt-4-vision-tool.png" alt-text="Screenshot of the Azure OpenAI GPT-4 Turbo with Vision tool added to a flow in Azure AI Studio." lightbox="../../media/prompt-flow/azure-openai-gpt-4-vision-tool.png":::
3736

3837
1. Select the connection to to your Azure OpenAI Service. For example, you can select the **Default_AzureOpenAI** connection. For more information, see [Prerequisites](#prerequisites).
39-
1. Enter values for the Azure OpenAI GPT-4 Turbo with Vision tool input parameters described [here](#inputs).
38+
1. Enter values for the Azure OpenAI GPT-4 Turbo with Vision tool input parameters described [here](#inputs). For example, you can use this example prompt:
39+
40+
```jinja
41+
# system:
42+
As an AI assistant, your task involves interpreting images and responding to questions about the image.
43+
Remember to provide accurate answers based on the information present in the image.
44+
45+
# user:
46+
Can you tell me what the image depicts?
47+
![image]({{image_input}})
48+
```
49+
50+
1. Select **Validate and parse input** to validate the tool inputs.
51+
1. Specify an image to analyze in the `image_input` input parameter. For example, you can upload an image or enter the URL of an image to analyze. Otherwise you can paste or drag and drop an image into the tool.
4052
1. Add more tools to your flow as needed, or select **Run** to run the flow.
4153
1. The outputs are described [here](#outputs).
4254
55+
Here's an example output response:
56+
57+
```json
58+
{
59+
"system_metrics": {
60+
"completion_tokens": 96,
61+
"duration": 4.874329,
62+
"prompt_tokens": 1157,
63+
"total_tokens": 1253
64+
},
65+
"output": "The image depicts a user interface for Azure's OpenAI GPT-4 service. It is showing a configuration screen where settings related to the AI's behavior can be adjusted, such as the model (GPT-4), temperature, top_p, frequency penalty, etc. There's also an area where users can enter a prompt to generate text, and an option to include an image input for the AI to interpret, suggesting that this particular interface supports both text and image inputs."
66+
}
67+
```
4368

4469
## Inputs
4570

0 commit comments

Comments
 (0)