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
Copy file name to clipboardExpand all lines: Part 3 - Template Exploration/README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ In this workshop, you'll explore the code structure of the AI Web Chat template.
8
8
9
9
## Services in .NET Aspire AppHost Program.cs
10
10
11
-
Let's start by examining the `Program.cs` file in the `GenAiLab.AppHost` project:
11
+
Let's start by examining the [`AppHost.cs`](../Part%202%20-%20Project%20Creation/GenAiLab/GenAiLab.AppHost/AppHost.cs) file in the `GenAiLab.AppHost` project:
The `IChatClient` is used in the `Chat.razor` component to handle user messages and generate AI responses:
126
+
The `IChatClient` is used in the [`Chat.razor`](../Part%202%20-%20Project%20Creation/GenAiLab/GenAiLab.Web/Components/Pages/Chat/Chat.razor#L58-L84) component to handle user messages and generate AI responses:
127
127
128
128
```csharp
129
129
@code {
@@ -182,7 +182,7 @@ These collections store:
182
182
183
183
### DataIngestor Service with Vector Collections
184
184
185
-
Let's examine how the `DataIngestor.cs` uses vector collections directly:
185
+
Let's examine how the [`DataIngestor.cs`](../Part%202%20-%20Project%20Creation/GenAiLab/GenAiLab.Web/Services/Ingestion/DataIngestor.cs#L18-L57) uses vector collections directly:
186
186
187
187
```csharp
188
188
publicclassDataIngestor(
@@ -249,7 +249,7 @@ The template uses several vector collection methods:
249
249
250
250
### IngestedChunk for Vector Storage
251
251
252
-
The `IngestedChunk.cs` file shows how data is structured for vector storage:
252
+
The [`IngestedChunk.cs`](../Part%202%20-%20Project%20Creation/GenAiLab/GenAiLab.Web/Services/IngestedChunk.cs) file shows how data is structured for vector storage:
253
253
254
254
```csharp
255
255
namespaceGenAiLab.Web.Services;
@@ -284,7 +284,7 @@ This class represents the data stored in the vector database with specific attri
284
284
-`Text`: A chunk of text from the document
285
285
-`Vector`: The embedding vector configured for the OpenAI text-embedding-3-small model's 1536 dimensions using cosine similarity. The property returns the Text, which will be automatically embedded when stored.
286
286
287
-
The `SemanticSearch.cs` file shows how these records are queried:
287
+
The [`SemanticSearch.cs`](../Part%202%20-%20Project%20Creation/GenAiLab/GenAiLab.Web/Services/SemanticSearch.cs) file shows how these records are queried:
0 commit comments