Microsoft.Azure.Functions.Worker.Extensions.OpenAI.AzureAISearch
0.6.3-alpha
Prefix Reserved
Please note, this package is obsolete and will no longer be maintained after 04/20/2027. Refer to the migration guide (https://learn.microsoft.com/azure/azure-functions/functions-bindings-openai) for guidance on upgrading. Refer to our deprecation policy (https://aka.ms/azsdk/support-policies) for more details.
dotnet add package Microsoft.Azure.Functions.Worker.Extensions.OpenAI.AzureAISearch --version 0.6.3-alpha
NuGet\Install-Package Microsoft.Azure.Functions.Worker.Extensions.OpenAI.AzureAISearch -Version 0.6.3-alpha
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.OpenAI.AzureAISearch" Version="0.6.3-alpha" />
<PackageVersion Include="Microsoft.Azure.Functions.Worker.Extensions.OpenAI.AzureAISearch" Version="0.6.3-alpha" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.OpenAI.AzureAISearch" />
paket add Microsoft.Azure.Functions.Worker.Extensions.OpenAI.AzureAISearch --version 0.6.3-alpha
#r "nuget: Microsoft.Azure.Functions.Worker.Extensions.OpenAI.AzureAISearch, 0.6.3-alpha"
#:package Microsoft.Azure.Functions.Worker.Extensions.OpenAI.AzureAISearch@0.6.3-alpha
#addin nuget:?package=Microsoft.Azure.Functions.Worker.Extensions.OpenAI.AzureAISearch&version=0.6.3-alpha&prerelease
#tool nuget:?package=Microsoft.Azure.Functions.Worker.Extensions.OpenAI.AzureAISearch&version=0.6.3-alpha&prerelease
Azure Functions OpenAI Extension
The Azure Functions OpenAI extension retires on April 20, 2027. Preview extension bundle version 4.60.0 and later don't include the extension.
This project adds OpenAI bindings to Azure Functions using the Azure AI OpenAI SDK.
For installation, configuration, binding references, and examples, see the Microsoft Learn documentation.
NuGet Packages
Preview Bundle
See the installation guidance for using the preview bundle in existing apps.
Requirements
To run the samples:
- .NET 8 SDK or later.
- Azure Functions Core Tools v4.x.
- An Azure Storage emulator such as Azurite.
- The runtime for your chosen sample.
- Set
CHAT_MODEL_DEPLOYMENT_NAMEandEMBEDDING_MODEL_DEPLOYMENT_NAMEto the Azure OpenAI deployment names or OpenAI model names. Check each sample's README for additional settings.
Configuring AI Service Connections
Use the AIConnectionName binding property to specify a connection. See connection guidance for configuration and authentication.
Missing Endpoint and Key values in a named section fall back individually to AZURE_OPENAI_ENDPOINT and AZURE_OPENAI_KEY. A key takes precedence over identity-based authentication, so leave both key settings unset to use an identity.
A nonempty OPENAI_API_KEY selects OpenAI rather than Azure OpenAI.
Using Reasoning Models
See the IsReasoningModel option in the assistant post, semantic search, and text completion binding references.
Features
Text completion input binding
See the binding documentation and samples.
Chat completion
See the binding overview and chat samples.
Assistants
See the assistant trigger documentation and assistant samples.
Embeddings Generator
See the binding documentation and samples.
Restricting FilePath and Url inputs
Configure file and URL input restrictions in the deployed function app when inputs are caller-supplied. Without restrictions, the binding can read any file the app can access or fetch any HTTPS URL. local.settings.json applies only to local development.
The settings are read once per host process. When the URL allowlist is configured, URLs with user information are rejected and downloads are limited to 10 MB and 30 seconds.
Semantic Search
See the embeddings store output and semantic search input binding references.
Use the same EmbeddingsModel for indexing and querying an index; if you change the model, re-index its documents. See embedding model guidance.
The defaults are 8,192 characters for MaxChunkLength, 128 for MaxOverlap, and 1 for MaxKnowledgeCount.
Samples are available for Azure AI Search, Azure Data Explorer, Azure Cosmos DB for MongoDB, and Azure Cosmos DB for NoSQL.
Default OpenAI models
See the binding documentation for model options and defaults. In this repository, SemanticSearch defaults to the text-embedding-ada-002 embedding model.
Contributing
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
Trademarks
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 0.6.3-alpha | 98 | 11/25/2026 | |
| 0.6.2-alpha | 76 | 11/24/2026 | |
| 0.6.1-alpha | 170 | 9/16/2026 | |
| 0.6.0-alpha | 135 | 6/15/2026 | |
| 0.5.0-alpha | 292 | 5/9/2025 | |
| 0.4.0-alpha | 285 | 10/8/2024 | |
| 0.3.0-alpha | 809 | 5/6/2024 | |
| 0.2.0-alpha | 178 | 4/24/2024 | |
| 0.1.0-alpha | 229 | 4/5/2024 |