Skip to content

Commit 0e6199e

Browse files
Updates
1 parent 758ee7f commit 0e6199e

File tree

2 files changed

+33
-31
lines changed

2 files changed

+33
-31
lines changed

Part 4 - Azure OpenAI/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,12 @@ To use Azure OpenAI, you need to set up resources in Azure:
5656

5757
1. **Create an Azure OpenAI resource**: - Navigate to the Azure portal (<https://portal.azure.com>)
5858
- Click "Create a resource" and search for "Azure OpenAI"
59+
- Create a new resrouce group: **rg-aiworkshop**
5960
- Fill in the required details:
6061
- **Subscription**: Will be pre-selected based on your Azure account
6162
- **Resource group**: Select an existing resource group if you are doing this in a managed environment or create a new one (e.g., "rg-mygenaiapp")
6263
- **Region**: Select a region close to you (e.g., "East US" or "West Europe")
64+
- **Name**: This is a unique name, so please do something unique to you like **mynamelocationworkshop**
6365
- **Pricing tier**: Select "Standard" (this is the only option available for Azure OpenAI)
6466
- Click "Next" on the following screens (leaving the default settings) and then "Create"
6567

Part 5 - Products Page/README.md

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,37 @@ This eliminates the need for manual string manipulation and provides compile-tim
388388

389389
For more information about structured output capabilities in Microsoft.Extensions.AI, see the [official documentation](https://learn.microsoft.com/en-us/dotnet/api/microsoft.extensions.ai.chatclientstructuredoutputextensions).
390390

391+
## Add Required Packages and Update Imports
392+
393+
We need to add the QuickGrid package and update our imports to include the necessary namespaces.
394+
395+
1. Open the `GenAiLab.Web.csproj` file and add the QuickGrid package to the `<ItemGroup>` with other PackageReferences:
396+
397+
```xml
398+
<PackageReference Include="Microsoft.AspNetCore.Components.QuickGrid" Version="9.0.7" />
399+
<PackageReference Include="Microsoft.Extensions.VectorData.Abstractions" Version="9.7.0" />
400+
```
401+
402+
1. Open `Components/_Imports.razor` and add the missing using directives:
403+
404+
```razor
405+
@using System.Net.Http
406+
@using System.Net.Http.Json
407+
@using Microsoft.AspNetCore.Components.Forms
408+
@using Microsoft.AspNetCore.Components.Routing
409+
@using Microsoft.AspNetCore.Components.Web
410+
@using static Microsoft.AspNetCore.Components.Web.RenderMode
411+
@using Microsoft.AspNetCore.Components.Web.Virtualization
412+
@using Microsoft.Extensions.AI
413+
@using Microsoft.JSInterop
414+
@using Microsoft.AspNetCore.Components.QuickGrid
415+
@using GenAiLab.Web
416+
@using GenAiLab.Web.Components
417+
@using GenAiLab.Web.Components.Layout
418+
@using GenAiLab.Web.Models
419+
@using GenAiLab.Web.Services
420+
```
421+
391422
## Create the Products UI
392423

393424
Now let's create the user interface for displaying our AI-generated products using QuickGrid component.
@@ -558,37 +589,6 @@ Let's add a link to our new Products page in the navigation.
558589
</div>
559590
```
560591

561-
## Add Required Packages and Update Imports
562-
563-
We need to add the QuickGrid package and update our imports to include the necessary namespaces.
564-
565-
1. Open the `GenAiLab.Web.csproj` file and add the QuickGrid package to the `<ItemGroup>` with other PackageReferences:
566-
567-
```xml
568-
<PackageReference Include="Microsoft.AspNetCore.Components.QuickGrid" Version="9.0.7" />
569-
<PackageReference Include="Microsoft.Extensions.VectorData.Abstractions" Version="9.7.0" />
570-
```
571-
572-
1. Open `Components/_Imports.razor` and add the missing using directives:
573-
574-
```razor
575-
@using System.Net.Http
576-
@using System.Net.Http.Json
577-
@using Microsoft.AspNetCore.Components.Forms
578-
@using Microsoft.AspNetCore.Components.Routing
579-
@using Microsoft.AspNetCore.Components.Web
580-
@using static Microsoft.AspNetCore.Components.Web.RenderMode
581-
@using Microsoft.AspNetCore.Components.Web.Virtualization
582-
@using Microsoft.Extensions.AI
583-
@using Microsoft.JSInterop
584-
@using Microsoft.AspNetCore.Components.QuickGrid
585-
@using GenAiLab.Web
586-
@using GenAiLab.Web.Components
587-
@using GenAiLab.Web.Components.Layout
588-
@using GenAiLab.Web.Models
589-
@using GenAiLab.Web.Services
590-
```
591-
592592
## Update Program.cs for Services
593593

594594
Now we need to register our new services and vector collection in the dependency injection container.

0 commit comments

Comments
 (0)