Muokkaa

Jaa


Quickstart: Get started using vision-enabled chats in Azure AI Foundry portal

Important

Items marked (preview) in this article are currently in public preview. This preview is provided without a service-level agreement, and we don't recommend it for production workloads. Certain features might not be supported or might have constrained capabilities. For more information, see Supplemental Terms of Use for Microsoft Azure Previews.

Use this article to get started using Azure AI Foundry to deploy and test a chat completion model with image understanding.

Extra usage fees might apply when using chat completion models with vision functionality.

Prerequisites

Prepare your media

You need an image to complete this quickstart. You can use this sample image or any other image you have available.

Photo of a car accident that can be used to complete the quickstart.

Deploy a vision-enabled chat model

  1. Sign in to Azure AI Foundry and select the hub you'd like to work in.
  2. On the left nav menu, select Models + endpoints and select + Deploy model.
  3. On the model selection page, select a vision-enabled model like GPT-4o. In the window that appears, select a name and deployment type. Make sure your Azure OpenAI resource is connected.
  4. Select Deploy.
  5. Next, select your new model and select Open in playground. In the chat playground, the deployment you created should be selected in the Deployment dropdown.

Image prompts

In this chat session, you instruct the assistant to aid you in understanding images that you input.

  1. In the context text box on the Setup panel, provide this prompt to guide the assistant: "You're an AI assistant that helps people find information." Or, you can tailor the prompt to your image or scenario.
  2. Select Apply changes to save your changes.
  3. In the chat session pane, select the attachment button and then Upload image. Choose your image.
  4. Add the following prompt in the chat field: "Describe this image", and then select the send icon to submit it.
  5. The send icon is replaced by a stop button. If you select it, the assistant stops processing your request. For this quickstart, let the assistant finish its reply.
  6. The assistant replies with a description of the image.
  7. Ask a follow-up question related to the analysis of your image. You could enter, "What should I highlight about this image to my insurance company?".
  8. You should receive a relevant response similar to what's shown here:
    When reporting the incident to your insurance company, you should highlight the following key points from the image:  
    
    1. **Location of Damage**: Clearly state that the front end of the car, particularly the driver's side, is damaged. Mention the crumpled hood, broken front bumper, and the damaged left headlight.  
    
    2. **Point of Impact**: Indicate that the car has collided with a guardrail, which may suggest that no other vehicles were involved in the accident.  
    
    3. **Condition of the Car**: Note that the damage seems to be concentrated on the front end, and there is no visible damage to the windshield or rear of the car from this perspective.  
    
    4. **License Plate Visibility**: Mention that the license plate is intact and can be used for identification purposes.  
    
    5. **Environment**: Report that the accident occurred near a roadside with a guardrail, possibly in a rural or semi-rural area, which might help in establishing the accident location and context.  
    
    6. **Other Observations**: If there were any other circumstances or details not visible in the image that may have contributed to the accident, such as weather conditions, road conditions, or any other relevant information, be sure to include those as well.  
    
    Remember to be factual and descriptive, avoiding speculation about the cause of the accident, as the insurance company will conduct its own investigation.
    

View and export code

At any point in the chat session, you can enable the Show raw JSON switch at the top of the chat window to see the conversation formatted as JSON. Heres' what it looks like at the beginning of the quickstart chat session:

[
	{
		"role": "system",
		"content": [
			"You are an AI assistant that helps people find information."
		]
	},
]

Clean up resources

To avoid incurring unnecessary Azure costs, you should delete the resources you created in this quickstart if they're no longer needed. To manage resources, you can use the Azure portal.

Next steps