From 6c423fb306d3b8c1bb57753055a46b146f44d05d Mon Sep 17 00:00:00 2001 From: Marco Minerva Date: Wed, 6 Nov 2024 17:27:47 +0100 Subject: [PATCH] Rename 'result' to 'text' in foreach loop for clarity The variable name `result` in the `foreach` loop has been changed to `text` for better clarity and consistency. This change affects the loop that appends chunks to the `prompt` variable. --- SqlDatabaseVectorSearch/Services/ChatService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SqlDatabaseVectorSearch/Services/ChatService.cs b/SqlDatabaseVectorSearch/Services/ChatService.cs index 978b3c4..f6b1628 100644 --- a/SqlDatabaseVectorSearch/Services/ChatService.cs +++ b/SqlDatabaseVectorSearch/Services/ChatService.cs @@ -49,9 +49,9 @@ public class ChatService(IMemoryCache cache, IChatCompletionService chatCompleti """); // TODO: Ensure that chunks are not too long, according to the model max token. - foreach (var result in chunks) + foreach (var text in chunks) { - prompt.Append(result); + prompt.Append(text); prompt.AppendLine("---"); }