Skip to content

Commit ada5e3f

Browse files
Copilotjongalloway
andcommitted
Add links to source files in Part 2 with line numbers for longer files
Co-authored-by: jongalloway <68539+jongalloway@users.noreply.github.com>
1 parent 96d7341 commit ada5e3f

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Part 3 - Template Exploration/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ In this workshop, you'll explore the code structure of the AI Web Chat template.
88

99
## Services in .NET Aspire AppHost Program.cs
1010

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:
1212

1313
```csharp
1414
var builder = DistributedApplication.CreateBuilder(args);
@@ -40,7 +40,7 @@ Key components in the AppHost:
4040

4141
## Application configuration in Web Program.cs
4242

43-
Now let's look at the `Program.cs` file in the `GenAiLab.Web` project:
43+
Now let's look at the [`Program.cs`](../Part%202%20-%20Project%20Creation/GenAiLab/GenAiLab.Web/Program.cs) file in the `GenAiLab.Web` project:
4444

4545
```csharp
4646
using Microsoft.Extensions.AI;
@@ -123,7 +123,7 @@ openai.AddChatClient("gpt-4o-mini")
123123
c.EnableSensitiveData = builder.Environment.IsDevelopment());
124124
```
125125

126-
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:
127127

128128
```csharp
129129
@code {
@@ -182,7 +182,7 @@ These collections store:
182182

183183
### DataIngestor Service with Vector Collections
184184

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:
186186

187187
```csharp
188188
public class DataIngestor(
@@ -249,7 +249,7 @@ The template uses several vector collection methods:
249249

250250
### IngestedChunk for Vector Storage
251251

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:
253253

254254
```csharp
255255
namespace GenAiLab.Web.Services;
@@ -284,7 +284,7 @@ This class represents the data stored in the vector database with specific attri
284284
- `Text`: A chunk of text from the document
285285
- `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.
286286

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:
288288

289289
```csharp
290290
public class SemanticSearch(

0 commit comments

Comments
 (0)