Skip to content

Commit 86e29b9

Browse files
committed
shuffle QS steps around
1 parent 454a91c commit 86e29b9

File tree

1 file changed

+51
-59
lines changed

1 file changed

+51
-59
lines changed

articles/ai-foundry/includes/get-started-fdp.md

Lines changed: 51 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,20 @@ The Azure AI Foundry SDK is available in multiple languages, including Python, J
3030

3131
[!INCLUDE [feature-preview](feature-preview.md)]
3232

33-
## Create a [!INCLUDE [fdp-project-name](fdp-project-name.md)]
33+
## Start with a project and model
3434

3535
1. Sign in to the [Azure AI Foundry portal](https://ai.azure.com).
36-
1. On the home page, select **Create an agent**. This creates a project and also include steps to start working with a basic Agent.
36+
1. On the home page, select **Create an agent**.
3737

3838
<!-- :::image type="content" source="../media/quickstarts/start-building.png" alt-text="Screenshot shows how to start building an Agent in Azure AI Foundry portal."::: -->
3939

40-
1. Fill in a name for your project and select **Create**.
41-
42-
## Deploy a model
43-
44-
[!INCLUDE [tip-left-pane](../includes/tip-left-pane.md)]
45-
46-
1. If you just used the Azure AI Foundry portal to create the project with the **Create an agent** link, you'll already have a default **gpt-4o** model deployed.
47-
1. Or else, sign in to the [Azure AI Foundry portal](https://ai.azure.com), select your project, and select **Model catalog**.
48-
1. Search for the model you want to deploy. For this quickstart, select **gpt-4o**.
49-
1. Select **Confirm**.
50-
1. Don't change the default settings. Select **Deploy**.
40+
1. Fill in a name to use for your project and select **Create**.
41+
1. Once your resources are created, you are in the agent playground.
42+
1. If you're asked to select a model, search for and select **gpt-4o**.
43+
1. Select **Confirm**.
44+
1. Don't change the default settings. Select **Deploy**.
45+
46+
You now have both a project and a model available for your agent.
5147

5248
### Set up your environment
5349

@@ -130,59 +126,17 @@ No installation is necessary to use the Azure AI Foundry portal.
130126
131127
---
132128
133-
## Run a chat completion
134-
135-
Chat completions are the basic building block of AI applications. Using chat completions you can send a list of messages and get a response.
136-
137-
# [Azure AI Foundry portal](#tab/azure-ai-foundry)
138-
139-
1. If you used **Create an agent** to create the project, you'll now find yourself in the Agents playground, ready to try it out. You'll come back here in a moment, but first let's play with the model.
140-
1. In the left pane, select **Playgrounds**.
141-
1. Select **Try the chat playground**.
142-
1. Fill in the prompt and select the **Send** button.
143-
1. The model returns a response in the **Response** pane.
144-
145-
# [Python](#tab/python)
146-
147-
Substitute your value for the endpoint in this code:
148-
149-
:::code language="python" source="~/foundry-samples-main/samples/microsoft/python/mslearn-resources/quickstart/quickstart.py" id="chat_completion":::
150-
151-
152-
# [Java (preview)](#tab/java)
153-
154-
:::code language="java" source="~/foundry-samples-main/samples/microsoft/java/mslearn-resources/quickstart/src/main/java/com/azure/ai/foundry/samples/ChatCompletionSample.java" :::
155-
156-
# [JavaScript (preview)](#tab/javascript)
157-
158-
:::code language="javascript" source="~/foundry-samples-main/samples/microsoft/javascript/mslearn-resources/quickstart/src/quickstart.js" id="chat_completion":::
159-
160-
161-
# [C#](#tab/csharp)
162-
163-
:::code language="csharp" source="~/foundry-samples-main/samples/microsoft/csharp/mslearn-resources/quickstart/Samples/SimpleInference.cs" id="chat_completion":::
164-
165-
# [REST API](#tab/rest)
166-
167-
Replace `YOUR-FOUNDRY-RESOURCE-NAME` with your values:
168-
169-
:::code language="console" source="~/foundry-samples-main/samples/microsoft/REST/mslearn-resources/quickstart/quickstart.sh" id="chat_completion":::
170-
171-
---
172129
173130
## Create and run an agent
174131
175-
Agents allow more powerful capabilities through the use of tools. First, let's write the same chat completion code using agents.
132+
Agents have powerful capabilities through the use of tools. Write a simple chat completion code for an agent.
176133
177134
# [Azure AI Foundry portal](#tab/azure-ai-foundry)
178135
179-
1. In your project, on the left pane, select **Agents**.
180-
1. Select the agent created with the project.
181-
1. If you didn't create one with your project, select **New agent** to create an agent now.
182-
1. On the right **Setup** pane, change the name if you'd like.
136+
After the preceeding steps, you're now in the agents playground.
137+
183138
1. Add instructions, such as, "You are a helpful writing assistant."
184-
1. At the top of the **Setup** pane, select **Try in playground**.
185-
1. Start chatting with your agent, for example, "Write me a poem about flowers"
139+
1. Start chatting with your agent, for example, "Write me a poem about flowers."
186140
187141
# [Python](#tab/python)
188142
@@ -252,6 +206,44 @@ Replace `YOUR-FOUNDRY-RESOURCE-NAME` and `YOUR-PROJECT-NAME` with your values:
252206
253207
---
254208
209+
## Run a chat completion
210+
211+
Chat completions are the basic building block of AI applications. Using chat completions you can send a list of messages and get a response from the model instead of the agent.
212+
213+
# [Azure AI Foundry portal](#tab/azure-ai-foundry)
214+
215+
1. In the left pane, select **Playgrounds**.
216+
1. Select **Try the chat playground**.
217+
1. Fill in the prompt and select the **Send** button.
218+
1. The model returns a response in the **Response** pane.
219+
220+
# [Python](#tab/python)
221+
222+
Substitute your value for the endpoint in this code:
223+
224+
:::code language="python" source="~/foundry-samples-main/samples/microsoft/python/mslearn-resources/quickstart/quickstart.py" id="chat_completion":::
225+
226+
227+
# [Java (preview)](#tab/java)
228+
229+
:::code language="java" source="~/foundry-samples-main/samples/microsoft/java/mslearn-resources/quickstart/src/main/java/com/azure/ai/foundry/samples/ChatCompletionSample.java" :::
230+
231+
# [JavaScript (preview)](#tab/javascript)
232+
233+
:::code language="javascript" source="~/foundry-samples-main/samples/microsoft/javascript/mslearn-resources/quickstart/src/quickstart.js" id="chat_completion":::
234+
235+
236+
# [C#](#tab/csharp)
237+
238+
:::code language="csharp" source="~/foundry-samples-main/samples/microsoft/csharp/mslearn-resources/quickstart/Samples/SimpleInference.cs" id="chat_completion":::
239+
240+
# [REST API](#tab/rest)
241+
242+
Replace `YOUR-FOUNDRY-RESOURCE-NAME` with your values:
243+
244+
:::code language="console" source="~/foundry-samples-main/samples/microsoft/REST/mslearn-resources/quickstart/quickstart.sh" id="chat_completion":::
245+
246+
---
255247
256248
## Clean up resources
257249

0 commit comments

Comments
 (0)