mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-13 22:47:21 +00:00
Added an analyzer which keeps line breaks LF on every system (#1193)
This commit is contained in:
1 parent
b1c1f13993
commit
65d50de033
96 files changed
+741
-393
No files matched your search
@@ -138,8 +138,8 @@ public sealed class AugmentationOne : IAugmentationProcess
|
||||
var sb = new StringBuilder();
|
||||
if (selection.Contexts.Count > 0)
|
||||
{
|
||||
sb.AppendLine("The following useful information will help you in processing the user prompt:");
|
||||
sb.AppendLine();
|
||||
sb.AppendLineLF("The following useful information will help you in processing the user prompt:");
|
||||
sb.AppendLineLF();
|
||||
|
||||
// Let's convert the retrieval contexts to Markdown:
|
||||
for (var index = 0; index < selection.Contexts.Count; index++)
|
||||
@@ -147,7 +147,7 @@ public sealed class AugmentationOne : IAugmentationProcess
|
||||
}
|
||||
|
||||
if (selection.LeftOutCount > 0)
|
||||
sb.AppendLine(selection.LeftOutCount is 1
|
||||
sb.AppendLineLF(selection.LeftOutCount is 1
|
||||
? "Of the passages which the search found in the data sources, 1 did not fit into this request and was left out. An answer based on the data sources may therefore be incomplete."
|
||||
: $"Of the passages which the search found in the data sources, {selection.LeftOutCount} did not fit into this request and were left out. An answer based on the data sources may therefore be incomplete.");
|
||||
|
||||
|
||||
Reference in new issue
Block a user