diff --git a/samples/dotnet/github-skills/GitHubSkill.cs b/samples/dotnet/github-skills/GitHubSkill.cs index 67fd8b22e907..eb96a276dda7 100644 --- a/samples/dotnet/github-skills/GitHubSkill.cs +++ b/samples/dotnet/github-skills/GitHubSkill.cs @@ -191,12 +191,12 @@ private async Task SummarizeCodeFileAsync(string filePath, string repositoryUri, } } - foreach (var paragraph in paragraphs) + for (int i = 0; i < paragraphs.Count; i++) { await this._kernel.Memory.SaveInformationAsync( $"{repositoryUri}-{repositoryBranch}", - text: $"{paragraph} File:{repositoryUri}/blob/{repositoryBranch}/{fileUri}", - id: fileUri); + text: $"{paragraphs[i]} File:{repositoryUri}/blob/{repositoryBranch}/{fileUri}", + id: $"{fileUri}_{i}"); } } else