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
# Deploy a .NET Blazor app connected to Azure SQL and Azure OpenAI on Azure App Service
13
13
14
-
When creating intelligent apps, you may want to ground the context of your app using your own SQL data. With the recent announcement of [Azure SQL vector support (preview)](https://devblogs.microsoft.com/azure-sql/announcing-eap-native-vector-support-in-azure-sql-database/), you can ground the context using the Azure SQL data you already have with new [vector functions](https://learn.microsoft.com/sql/t-sql/functions/vector-functions-transact-sql) that help manage vector data.
14
+
When creating intelligent apps, you may want to ground the context of your app using your own SQL data. With the recent announcement of [Azure SQL vector support (preview)](https://devblogs.microsoft.com/azure-sql/announcing-eap-native-vector-support-in-azure-sql-database/), you can ground the context using the Azure SQL data you already have with new [vector functions](/sql/t-sql/functions/vector-functions-transact-sql) that help manage vector data.
15
15
16
16
In this tutorial, you'll create a RAG sample application by setting up a Hybrid vector search against your Azure SQL database using a .NET 8 Blazor app. This example builds from the previous documentation to deploy a [.NET Blazor app with OpenAI](/azure/app-service/deploy-intelligent-apps?pivots=openai-dotnet).
17
17
18
18
## Prerequisites
19
19
20
-
- An [Azure OpenAI](https://learn.microsoft.com/azure/ai-services/openai/quickstart?pivots=programming-language-csharp&tabs=command-line%2Ckeyless%2Ctypescript-keyless%2Cpython#set-up) resource with deployed models
20
+
- An [Azure OpenAI](/azure/ai-services/openai/quickstart?pivots=programming-language-csharp&tabs=command-line%2Ckeyless%2Ctypescript-keyless%2Cpython#set-up) resource with deployed models
21
21
- A .NET 8 or 9 Blazor Web App deployed on App Service
22
22
- An Azure SQL database resource with vector embeddings.
23
23
@@ -135,15 +135,15 @@ In order to prepare your Azure SQL database for vector search, you need to make
Thesetwomodelsneedtobedeployedbeforecontinuingthenextstep. Visitthe [documentation](https://learn.microsoft.com/azure/ai-studio/how-to/deploy-models-openai) for deploying models with Azure OpenAI using Azure AI Foundry.
ToperformahybridvectorsearchonyourAzureSQLdatabase, youfirstneedtohavetheappropriateembeddingsinyourdatabase. Therearemanywaysyoucanvectorizeyourdatabase. Oneoptionistousethefollowing [AzureSQLdatabasevectorizer](https://github.com/Azure-Samples/azure-sql-db-vectorizer) to generate embeddings for your SQL database. Vectorize your Azure SQL database before continuing.
143
143
144
144
## 5. Create procedure to generate embeddings
145
145
146
-
With [AzureSQLvectorsupport (preview)](https://devblogs.microsoft.com/azure-sql/announcing-eap-native-vector-support-in-azure-sql-database/), you can create a stored procedure that will use a Vector data type to store generated embeddings for search queries. The stored procedure invokes an external REST API endpoint to get the embeddings. See the [documentation](https://learn.microsoft.com/azure-data-studio/quickstart-sql-database) to use Azure Data Studio to connect to your database before running the query.
146
+
With [AzureSQLvectorsupport (preview)](https://devblogs.microsoft.com/azure-sql/announcing-eap-native-vector-support-in-azure-sql-database/), you can create a stored procedure that will use a Vector data type to store generated embeddings for search queries. The stored procedure invokes an external REST API endpoint to get the embeddings. See the [documentation](/azure-data-studio/quickstart-sql-database) to use Azure Data Studio to connect to your database before running the query.
147
147
148
148
-UsethefollowingtocreateastoredprocedurewithyourpreferredSQLqueryeditor. Youneedtopopulatethe@urlparameterwithyourAzureOpenAIresourcenameandpopulatetherestendpointwiththeAPIkeyfromyourtextembeddingmodel. You'll notice the model name as part of the @url, which will be populated with your search query.
149
149
@@ -469,4 +469,4 @@ Here's the full example of the added *OpenAI.razor* page:
0 commit comments