You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/ai-studio/how-to/develop/sdk-overview.md
+5-17Lines changed: 5 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -163,10 +163,10 @@ The [Azure AI model inference service](/azure/ai-studio/ai-services/model-infere
163
163
164
164
To use the model inference service, first ensure that your project has an AI Services connection (in the management center).
165
165
166
-
::: zone pivot="programming-language-python"
167
-
168
166
Install the `azure-ai-inferencing` client library:
169
167
168
+
::: zone pivot="programming-language-python"
169
+
170
170
```bash
171
171
pip install azure-ai-inference
172
172
```
@@ -206,14 +206,14 @@ You can change the model name to any model that you deployed to the inference se
206
206
207
207
To learn more about using the Azure AI inferencing client, check out the [Azure AI model inferencing reference](/azure/ai-studio/reference/reference-model-inference-api).
208
208
209
+
::: zone pivot="programming-language-python"
210
+
209
211
## Prompt Templates
210
212
211
213
The inferencing client supports for creating prompt messages from templates. The template allows you to dynamically generate prompts using inputs that are available at runtime.
212
214
213
215
To use prompt templates, install the `azure-ai-inferencing` package:
214
216
215
-
::: zone pivot="programming-language-python"
216
-
217
217
```bash
218
218
pip install azure-ai-inference
219
219
```
@@ -267,19 +267,6 @@ response = chat.complete(
267
267
268
268
::: zone-end
269
269
270
-
::: zone pivot="programming-language-csharp"
271
-
272
-
```dotnet
273
-
dotnet add package Azure.AI.Inference
274
-
```
275
-
276
-
You can render a prompt template from an inline string:
If you have an Azure AI Search resource connected to your project, you can also use the project client to create an Azure AI Search client using the project connection.
@@ -326,6 +313,7 @@ search_client = SearchClient(
326
313
```dotnet
327
314
dotnet add package Azure.Search.Documents
328
315
```
316
+
329
317
Instantiate the search and/or search index client as desired:
0 commit comments