mirror of
https://github.com/marcominerva/SqlDatabaseVectorSearch.git
synced 2026-06-20 12:23:10 +00:00
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.
This commit is contained in:
@@ -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.
|
// 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("---");
|
prompt.AppendLine("---");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user