Skip to content

Commit ea2ad09

Browse files
committed
Dheeraj updates + cleanups
1 parent c979af4 commit ea2ad09

10 files changed

+72
-156
lines changed

articles/azure-functions/functions-bindings-openai-assistant-trigger.md

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,28 @@
11
---
2-
title: Azure OpenAI Assistant Trigger for Azure Functions
2+
title: Azure OpenAI assistant trigger for Azure Functions
33
description: Learn how to use the Azure OpenAI assistant trigger to execute code based on custom chat bots and skills in Azure Functions.
44
ms.topic: reference
5-
ms.date: 05/07/2024
5+
ms.date: 05/20/2024
66
zone_pivot_groups: programming-languages-set-functions
77
---
88

9-
# Azure OpenAI Assistant Trigger for Azure Functions
9+
# Azure OpenAI assistant trigger for Azure Functions
1010

1111
[!INCLUDE [preview-support](../../includes/functions-openai-support-limitations.md)]
1212

1313
The Azure OpenAI assistant trigger lets you run your code based on custom chat bot or skill request made to an assistant.
1414

1515
For information on setup and configuration details of the Azure OpenAI extension, see [Azure OpenAI extensions for Azure Functions](./functions-bindings-openai.md). To learn more about Azure OpenAI assistants, see [Azure OpenAI Assistants API](../ai-services/openai/concepts/assistants.md).
16-
::: zone pivot="programming-language-javascript,programming-language-typescript"
17-
> [!NOTE]
18-
> References and examples are only provided for the [Node.js v4 model](./functions-reference-node.md?pivots=nodejs-model-v4).
19-
::: zone-end
20-
::: zone pivot="programming-language-python"
21-
> [!NOTE]
22-
> References and examples are only provided for the [Python v2 model](functions-reference-python.md?pivots=python-mode-decorators#development-options).
23-
::: zone-end
16+
17+
[!INCLUDE [functions-support-notes-samples-openai](../../includes/functions-support-notes-samples-openai.md)]
2418

2519
## Example
2620

2721
::: zone pivot="programming-language-csharp"
28-
A C# function can be created using one of the following C# modes:
29-
30-
[!INCLUDE [dotnet-execution](../../includes/functions-dotnet-execution-model.md)]
31-
32-
### [Isolated process](#tab/isolated-process)
33-
3422
This example demonstrates how to create an assistant that adds a new todo task to a database. The trigger has a static description of `Create a new todo task` used by the model. The function itself takes a string, which represents a new task to add. When executed, the function adds the task as a new todo item in a custom item store and returns a response from the store.
3523

3624
:::code language="csharp" source="~/functions-openai-extension/samples/assistant/csharp-ooproc/AssistantSkills.cs" range="31-43" :::
3725

38-
<!-- ### [In-process](#tab/in-process)
39-
40-
[!INCLUDE [functions-examples-not-available-note](../../includes/functions-examples-not-available-note.md)] -->
41-
42-
---
43-
4426
::: zone-end
4527
::: zone pivot="programming-language-java"
4628

articles/azure-functions/functions-bindings-openai-assistantcreate-output.md

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,30 @@
11
---
2-
title: Azure OpenAI Assistant Create Output Binding for Azure Functions
2+
title: Azure OpenAI assistant create output binding for Azure Functions
33
description: Learn how to use the Azure OpenAI assistant create output binding to create Azure OpenAI assistants from your function code executions.
44
ms.topic: reference
5-
ms.date: 05/07/2024
5+
ms.date: 05/20/2024
66
zone_pivot_groups: programming-languages-set-functions
77
---
88

9-
# Azure OpenAI Assistant Create Output Binding for Azure Functions
9+
# Azure OpenAI assistant create output binding for Azure Functions
1010

1111
[!INCLUDE [preview-support](../../includes/functions-openai-support-limitations.md)]
1212

1313
The Azure OpenAI assistant create output binding allows you to create a new assistant chat bot from your function code execution.
1414

1515
For information on setup and configuration details of the Azure OpenAI extension, see [Azure OpenAI extensions for Azure Functions](./functions-bindings-openai.md). To learn more about Azure OpenAI assistants, see [Azure OpenAI Assistants API](../ai-services/openai/concepts/assistants.md).
16-
::: zone pivot="programming-language-javascript,programming-language-typescript"
17-
> [!NOTE]
18-
> References and examples are only provided for the [Node.js v4 model](./functions-reference-node.md?pivots=nodejs-model-v4).
19-
::: zone-end
20-
::: zone pivot="programming-language-python"
21-
> [!NOTE]
22-
> References and examples are only provided for the [Python v2 model](functions-reference-python.md?pivots=python-mode-decorators#development-options).
23-
::: zone-end
16+
17+
[!INCLUDE [functions-support-notes-samples-openai](../../includes/functions-support-notes-samples-openai.md)]
2418

2519
## Example
2620

2721
::: zone pivot="programming-language-csharp"
28-
A C# function can be created using one of the following C# modes:
29-
30-
[!INCLUDE [dotnet-execution](../../includes/functions-dotnet-execution-model.md)]
31-
32-
### [Isolated process](#tab/isolated-process)
33-
3422
This example demonstrates the creation process, where the HTTP PUT function that creates a new assistant chat bot with the specified ID. The response to the prompt is returned in the HTTP response.
3523

3624
:::code language="csharp" source="~/functions-openai-extension/samples/assistant/csharp-ooproc/AssistantApis.cs" range="20-45":::
3725

38-
<!-- ### [In-process](#tab/in-process)
39-
40-
[!INCLUDE [functions-examples-not-available-note](../../includes/functions-examples-not-available-note.md)] -->
41-
42-
---
43-
4426
::: zone-end
4527
::: zone pivot="programming-language-java"
46-
<!-- [!INCLUDE [functions-examples-not-available-note](../../includes/functions-examples-not-available-note.md)] -->
47-
4828
This example demonstrates the creation process, where the HTTP PUT function that creates a new assistant chat bot with the specified ID. The response to the prompt is returned in the HTTP response.
4929

5030
:::code language="java" source="~/functions-openai-extension/samples/assistant/java/src/main/java/com/azfs/AssistantApis.java" range="33-58":::
@@ -70,8 +50,6 @@ This example demonstrates the creation process, where the HTTP PUT function that
7050

7151
::: zone-end
7252
::: zone pivot="programming-language-powershell"
73-
<!-- [!INCLUDE [functions-examples-not-available-note](../../includes/functions-examples-not-available-note.md)] -->
74-
7553
This example demonstrates the creation process, where the HTTP PUT function that creates a new assistant chat bot with the specified ID. The response to the prompt is returned in the HTTP response.
7654

7755
Here's the _function.json_ file for Create Assistant:

articles/azure-functions/functions-bindings-openai-assistantpost-input.md

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,27 @@
11
---
2-
title: Azure OpenAI Assistant Post Input Binding for Azure Functions
2+
title: Azure OpenAI assistant post input binding for Azure Functions
33
description: Learn how to use the Azure OpenAI assistant post input binding to query chat bots during function execution in Azure Functions.
44
ms.topic: reference
5-
ms.date: 05/07/2024
5+
ms.date: 05/20/2024
66
zone_pivot_groups: programming-languages-set-functions
77
---
88

9-
# Azure OpenAI Assistant Post Input Binding for Azure Functions
9+
# Azure OpenAI assistant post input binding for Azure Functions
1010

1111
[!INCLUDE [preview-support](../../includes/functions-openai-support-limitations.md)]
1212

1313
The Azure OpenAI assistant post input binding lets you send prompts to assistant chat bots.
1414

15-
For information on setup and configuration details of the Azure OpenAI extension, see [Azure OpenAI extensions for Azure Functions](./functions-bindings-openai.md). To learn more about Azure OpenAI assistants, see [Azure OpenAI Assistants API](../ai-services/openai/concepts/assistants.md).
16-
::: zone pivot="programming-language-javascript,programming-language-typescript"
17-
> [!NOTE]
18-
> References and examples are only provided for the [Node.js v4 model](./functions-reference-node.md?pivots=nodejs-model-v4).
19-
::: zone-end
20-
::: zone pivot="programming-language-python"
21-
> [!NOTE]
22-
> References and examples are only provided for the [Python v2 model](functions-reference-python.md?pivots=python-mode-decorators#development-options).
23-
::: zone-end
15+
For information on setup and configuration details of the Azure OpenAI extension, see [Azure OpenAI extensions for Azure Functions](./functions-bindings-openai.md). To learn more about Azure OpenAI assistants, see [Azure OpenAI Assistants API](../ai-services/openai/
16+
17+
[!INCLUDE [functions-support-notes-samples-openai](../../includes/functions-support-notes-samples-openai.md)]
2418

2519
## Example
2620

2721
::: zone pivot="programming-language-csharp"
28-
A C# function can be created using one of the following C# modes:
29-
30-
[!INCLUDE [dotnet-execution](../../includes/functions-dotnet-execution-model.md)]
31-
32-
### [Isolated process](#tab/isolated-process)
33-
3422
This example demonstrates the creation process, where the HTTP POST function that sends user prompts to the assistant chat bot. The response to the prompt is returned in the HTTP response.
3523

3624
:::code language="csharp" source="~/functions-openai-extension/samples/assistant/csharp-ooproc/AssistantApis.cs" range="58-78":::
37-
<!--
38-
### [In-process](#tab/in-process)
39-
40-
[!INCLUDE [functions-examples-not-available-note](../../includes/functions-examples-not-available-note.md)] -->
41-
42-
---
4325

4426
::: zone-end
4527
::: zone pivot="programming-language-java"

articles/azure-functions/functions-bindings-openai-assistantquery-input.md

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,28 @@
11
---
2-
title: Azure OpenAI Assistant Query Input Binding for Azure Functions
2+
title: Azure OpenAI assistant query input binding for Azure Functions
33
description: Learn how to use the Azure OpenAI assistant query input binding to access Azure OpenAI Assistants APIs during function execution in Azure Functions.
44
ms.topic: reference
5-
ms.date: 05/14/2024
5+
ms.date: 05/20/2024
66
zone_pivot_groups: programming-languages-set-functions
77
---
88

9-
# Azure OpenAI Assistant Query Input Binding for Azure Functions
9+
# Azure OpenAI assistant query input binding for Azure Functions
1010

1111
[!INCLUDE [preview-support](../../includes/functions-openai-support-limitations.md)]
1212

1313
The Azure OpenAI assistant query input binding allows you to integrate Assistants API queries into your code executions.
1414

1515
For information on setup and configuration details of the Azure OpenAI extension, see [Azure OpenAI extensions for Azure Functions](./functions-bindings-openai.md). To learn more about Azure OpenAI assistants, see [Azure OpenAI Assistants API](../ai-services/openai/concepts/assistants.md).
16-
::: zone pivot="programming-language-javascript,programming-language-typescript"
17-
> [!NOTE]
18-
> References and examples are only provided for the [Node.js v4 model](./functions-reference-node.md?pivots=nodejs-model-v4).
19-
::: zone-end
20-
::: zone pivot="programming-language-python"
21-
> [!NOTE]
22-
> References and examples are only provided for the [Python v2 model](functions-reference-python.md?pivots=python-mode-decorators#development-options).
23-
::: zone-end
16+
17+
[!INCLUDE [functions-support-notes-samples-openai](../../includes/functions-support-notes-samples-openai.md)]
2418

2519
## Example
2620

2721
::: zone pivot="programming-language-csharp"
28-
A C# function can be created using one of the following C# modes:
29-
30-
[!INCLUDE [dotnet-execution](../../includes/functions-dotnet-execution-model.md)]
31-
32-
### [Isolated process](#tab/isolated-process)
33-
3422
This example demonstrates the creation process, where the HTTP GET function that queries the conversation history of the assistant chat bot. The response to the prompt is returned in the HTTP response.
3523

3624
:::code language="csharp" source="~/functions-openai-extension/samples/assistant/csharp-ooproc/AssistantApis.cs" range="74-83":::
3725

38-
<!-- ### [In-process](#tab/in-process)
39-
40-
[!INCLUDE [functions-examples-not-available-note](../../includes/functions-examples-not-available-note.md)] -->
41-
42-
---
43-
4426
::: zone-end
4527
::: zone pivot="programming-language-java"
4628

articles/azure-functions/functions-bindings-openai-embeddings-input.md

Lines changed: 5 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,24 @@
11
---
2-
title: Azure OpenAI Embeddings Input Binding for Azure Functions
2+
title: Azure OpenAI embeddings input binding for Azure Functions
33
description: Learn how to use the Azure OpenAI embeddings input binding to generate embeddings during function execution in Azure Functions.
44
ms.topic: reference
5-
ms.date: 05/07/2024
5+
ms.date: 05/20/2024
66
zone_pivot_groups: programming-languages-set-functions
77
---
88

9-
# Azure OpenAI Embeddings Input Binding for Azure Functions
9+
# Azure OpenAI embeddings input binding for Azure Functions
1010

1111
[!INCLUDE [preview-support](../../includes/functions-openai-support-limitations.md)]
1212

1313
The Azure OpenAI embeddings input binding allows you to generate embeddings for inputs. The binding can generate embeddings from files or raw text inputs.
1414

1515
For information on setup and configuration details of the Azure OpenAI extension, see [Azure OpenAI extensions for Azure Functions](./functions-bindings-openai.md). To learn more about embeddings in Azure OpenAI Service, see [Understand embeddings in Azure OpenAI Service](../ai-services/openai/concepts/understand-embeddings.md).
16-
::: zone pivot="programming-language-javascript,programming-language-typescript"
17-
> [!NOTE]
18-
> References and examples are only provided for the [Node.js v4 model](./functions-reference-node.md?pivots=nodejs-model-v4).
19-
::: zone-end
20-
::: zone pivot="programming-language-python"
21-
> [!NOTE]
22-
> References and examples are only provided for the [Python v2 model](functions-reference-python.md?pivots=python-mode-decorators#development-options).
23-
::: zone-end
16+
17+
[!INCLUDE [functions-support-notes-samples-openai](../../includes/functions-support-notes-samples-openai.md)]
2418

2519
## Example
2620

2721
::: zone pivot="programming-language-csharp"
28-
A C# function can be created using one of the following C# modes:
29-
30-
[!INCLUDE [dotnet-execution](../../includes/functions-dotnet-execution-model.md)]
31-
32-
### [Isolated process](#tab/isolated-process)
33-
3422
This example shows how to generate embeddings for a raw text string.
3523

3624
:::code language="csharp" source="~/functions-openai-extension/samples/embeddings/csharp-ooproc/Embeddings/EmbeddingsGenerator.cs" range="41-57":::
@@ -39,15 +27,8 @@ This example shows how to retrieve embeddings stored at a specified file that is
3927

4028
:::code language="csharp" source="~/functions-openai-extension/samples/embeddings/csharp-ooproc/Embeddings/EmbeddingsGenerator.cs" range="63-78":::
4129

42-
<!-- ### [In-process](#tab/in-process)
43-
44-
[!INCLUDE [functions-examples-not-available-note](../../includes/functions-examples-not-available-note.md)] -->
45-
46-
---
47-
4830
::: zone-end
4931
::: zone pivot="programming-language-java"
50-
5132
This example shows how to generate embeddings for a raw text string.
5233

5334
:::code language="java" source="~/functions-openai-extension/samples/embeddings/java/src/main/java/com/azfs/EmbeddingsGenerator.java" range="26-55":::
@@ -56,7 +37,6 @@ This example shows how to retrieve embeddings stored at a specified file that is
5637

5738
:::code language="java" source="~/functions-openai-extension/samples/embeddings/java/src/main/java/com/azfs/EmbeddingsGenerator.java" range="61-90":::
5839

59-
6040
::: zone-end
6141
::: zone pivot="programming-language-javascript"
6242
[!INCLUDE [functions-examples-not-available-note](../../includes/functions-examples-not-available-note.md)]
@@ -69,7 +49,6 @@ This example shows how to retrieve embeddings stored at a specified file that is
6949
-->
7050
::: zone-end
7151
::: zone pivot="programming-language-typescript"
72-
7352
This example shows how to generate embeddings for a raw text string.
7453

7554
:::code language="typescript" source="~/functions-openai-extension/samples/embeddings/nodejs/src/app.ts" range="7-31":::
@@ -78,11 +57,8 @@ This example shows how to retrieve embeddings stored at a specified file that is
7857

7958
:::code language="typescript" source="~/functions-openai-extension/samples/embeddings/nodejs/src/app.ts" range="37-61":::
8059

81-
82-
8360
::: zone-end
8461
::: zone pivot="programming-language-powershell"
85-
8662
This example shows how to generate embeddings for a raw text string.
8763

8864
Here's the _function.json_ file for generating the embeddings:
@@ -92,11 +68,8 @@ Here's the _function.json_ file for generating the embeddings:
9268
For more information about *function.json* file properties, see the [Configuration](#configuration) section.
9369

9470
:::code language="powershell" source="~/functions-openai-extension/samples/embeddings/powershell/GenerateEmbeddings/run.ps1" :::
95-
96-
9771
::: zone-end
9872
::: zone pivot="programming-language-python"
99-
10073
This example shows how to generate embeddings for a raw text string.
10174

10275
:::code language="python" source="~/functions-openai-extension/samples/embeddings/python/function_app.py" range="8-21":::

0 commit comments

Comments
 (0)