Refactor Sources section formatting in output

Updated the "Sources" section header and changed the source list from bullets to a numbered format (e.g., "[1] SourceName"). Each source now includes its excerpt and a separator line ("---"). Removed the "### Excerpts" section and extra blank lines, consolidating sources and excerpts for improved clarity.
This commit is contained in:
Marco Minerva
2026-07-27 17:19:34 +02:00
parent 57ba80bae4
commit 3b06b0e0f9
+1 -9
View File
@@ -173,15 +173,7 @@ var textSearchOptions = new TextSearchProviderOptions()
sb.AppendLine("- Include ONLY sources you actually used. No duplicates."); sb.AppendLine("- Include ONLY sources you actually used. No duplicates.");
sb.AppendLine(); sb.AppendLine();
sb.AppendLine("### Sources (copy/paste-ready)"); sb.AppendLine("### Sources");
foreach (var (i, r) in results.Index())
{
sb.AppendLine($"- {GetSourceName(r, i)}");
}
sb.AppendLine();
sb.AppendLine("### Excerpts");
foreach (var (i, r) in results.Index()) foreach (var (i, r) in results.Index())
{ {
sb.AppendLine($"[{i + 1}] {GetSourceName(r, i)}"); sb.AppendLine($"[{i + 1}] {GetSourceName(r, i)}");