Microsoft.Azure.Functions.Worker.Extensions.OpenAI.AzureAISearch 0.6.3-alpha

Prefix Reserved
Additional Details

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.

This is a prerelease version of Microsoft.Azure.Functions.Worker.Extensions.OpenAI.AzureAISearch.
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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.OpenAI.AzureAISearch" Version="0.6.3-alpha" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.Azure.Functions.Worker.Extensions.OpenAI.AzureAISearch" Version="0.6.3-alpha" />
                    
Directory.Packages.props
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.OpenAI.AzureAISearch" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
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"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Microsoft.Azure.Functions.Worker.Extensions.OpenAI.AzureAISearch@0.6.3-alpha
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Microsoft.Azure.Functions.Worker.Extensions.OpenAI.AzureAISearch&version=0.6.3-alpha&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.Azure.Functions.Worker.Extensions.OpenAI.AzureAISearch&version=0.6.3-alpha&prerelease
                    
Install as a Cake Tool

Azure Functions OpenAI Extension

License: MIT Build

The Azure Functions OpenAI extension retires on April 20, 2027. Preview extension bundle version 4.60.0 and later don't include the extension.

See retirement and migration guidance.

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

NuGet NuGet NuGet NuGet NuGet

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_NAME and EMBEDDING_MODEL_DEPLOYMENT_NAME to 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.

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.