diff --git a/src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/ChatWithCustomData/ChatWithCustomData-CSharp.Web/Services/Ingestion/PDFDirectorySource.cs b/src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/ChatWithCustomData/ChatWithCustomData-CSharp.Web/Services/Ingestion/PDFDirectorySource.cs index 7970123b73d..f52cd86c6e6 100644 --- a/src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/ChatWithCustomData/ChatWithCustomData-CSharp.Web/Services/Ingestion/PDFDirectorySource.cs +++ b/src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/ChatWithCustomData/ChatWithCustomData-CSharp.Web/Services/Ingestion/PDFDirectorySource.cs @@ -53,7 +53,7 @@ public async Task> CreateChunksForDocumentAsync(IEmbe var embeddings = await embeddingGenerator.GenerateAsync(paragraphs.Select(c => c.Text)); - return paragraphs.Zip(embeddings).Select((pair, index) => new IngestedChunk + return paragraphs.Zip(embeddings).Select(pair => new IngestedChunk { #if (UseQdrant) Key = Guid.CreateVersion7(), diff --git a/test/ProjectTemplates/Microsoft.Extensions.AI.Templates.IntegrationTests/Snapshots/aichatweb.Basic.verified/aichatweb/Services/Ingestion/PDFDirectorySource.cs b/test/ProjectTemplates/Microsoft.Extensions.AI.Templates.IntegrationTests/Snapshots/aichatweb.Basic.verified/aichatweb/Services/Ingestion/PDFDirectorySource.cs index 2ede5add217..39a079e76fe 100644 --- a/test/ProjectTemplates/Microsoft.Extensions.AI.Templates.IntegrationTests/Snapshots/aichatweb.Basic.verified/aichatweb/Services/Ingestion/PDFDirectorySource.cs +++ b/test/ProjectTemplates/Microsoft.Extensions.AI.Templates.IntegrationTests/Snapshots/aichatweb.Basic.verified/aichatweb/Services/Ingestion/PDFDirectorySource.cs @@ -49,7 +49,7 @@ public async Task> CreateChunksForDocumentAsync(IEmbe var embeddings = await embeddingGenerator.GenerateAsync(paragraphs.Select(c => c.Text)); - return paragraphs.Zip(embeddings).Select((pair, index) => new IngestedChunk + return paragraphs.Zip(embeddings).Select(pair => new IngestedChunk { Key = Guid.CreateVersion7().ToString(), DocumentId = document.DocumentId, diff --git a/test/ProjectTemplates/Microsoft.Extensions.AI.Templates.IntegrationTests/Snapshots/aichatweb.BasicAspire.verified/aichatweb/aichatweb.Web/Services/Ingestion/PDFDirectorySource.cs b/test/ProjectTemplates/Microsoft.Extensions.AI.Templates.IntegrationTests/Snapshots/aichatweb.BasicAspire.verified/aichatweb/aichatweb.Web/Services/Ingestion/PDFDirectorySource.cs index 2bd7a97bd7b..01c370d9dec 100644 --- a/test/ProjectTemplates/Microsoft.Extensions.AI.Templates.IntegrationTests/Snapshots/aichatweb.BasicAspire.verified/aichatweb/aichatweb.Web/Services/Ingestion/PDFDirectorySource.cs +++ b/test/ProjectTemplates/Microsoft.Extensions.AI.Templates.IntegrationTests/Snapshots/aichatweb.BasicAspire.verified/aichatweb/aichatweb.Web/Services/Ingestion/PDFDirectorySource.cs @@ -49,7 +49,7 @@ public async Task> CreateChunksForDocumentAsync(IEmbe var embeddings = await embeddingGenerator.GenerateAsync(paragraphs.Select(c => c.Text)); - return paragraphs.Zip(embeddings).Select((pair, index) => new IngestedChunk + return paragraphs.Zip(embeddings).Select(pair => new IngestedChunk { Key = Guid.CreateVersion7().ToString(), DocumentId = document.DocumentId, diff --git a/test/ProjectTemplates/Microsoft.Extensions.AI.Templates.IntegrationTests/Snapshots/aichatweb.OpenAI_AzureAISearch.verified/aichatweb/Services/Ingestion/PDFDirectorySource.cs b/test/ProjectTemplates/Microsoft.Extensions.AI.Templates.IntegrationTests/Snapshots/aichatweb.OpenAI_AzureAISearch.verified/aichatweb/Services/Ingestion/PDFDirectorySource.cs index 2ede5add217..39a079e76fe 100644 --- a/test/ProjectTemplates/Microsoft.Extensions.AI.Templates.IntegrationTests/Snapshots/aichatweb.OpenAI_AzureAISearch.verified/aichatweb/Services/Ingestion/PDFDirectorySource.cs +++ b/test/ProjectTemplates/Microsoft.Extensions.AI.Templates.IntegrationTests/Snapshots/aichatweb.OpenAI_AzureAISearch.verified/aichatweb/Services/Ingestion/PDFDirectorySource.cs @@ -49,7 +49,7 @@ public async Task> CreateChunksForDocumentAsync(IEmbe var embeddings = await embeddingGenerator.GenerateAsync(paragraphs.Select(c => c.Text)); - return paragraphs.Zip(embeddings).Select((pair, index) => new IngestedChunk + return paragraphs.Zip(embeddings).Select(pair => new IngestedChunk { Key = Guid.CreateVersion7().ToString(), DocumentId = document.DocumentId,