From d5b0e1606f285c4de8a8a5cf1ccf36aba45456a5 Mon Sep 17 00:00:00 2001 From: Marco Minerva Date: Mon, 27 Jul 2026 17:22:09 +0200 Subject: [PATCH] Clarify and update sources section formatting rules The instructions for formatting the sources section at the end of answers were revised for clarity and precision. Instead of multiple separate citation rules, the new guidance requires using a provided template, with the sources and page labels localized to the user's language. The updated rules specify omitting the page label and number if not available, and explicitly prohibit headings or links in the sources section. The formatting example was also updated to match these changes. --- SqlDatabaseVectorSearch/Program.cs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/SqlDatabaseVectorSearch/Program.cs b/SqlDatabaseVectorSearch/Program.cs index 6dfc438..716dd7e 100644 --- a/SqlDatabaseVectorSearch/Program.cs +++ b/SqlDatabaseVectorSearch/Program.cs @@ -159,17 +159,11 @@ var textSearchOptions = new TextSearchProviderOptions() sb.AppendLine("Use the excerpts below to answer the user."); sb.AppendLine("Citation rules:"); sb.AppendLine("- Do NOT add inline citations."); - sb.AppendLine("- At the END of your answer, add a sources label translated in the same language as the user's question."); - sb.AppendLine("- The sources label MUST be standard-size italic Markdown text, not a heading and not bold, and MUST be localized in the same language as the user's question."); - sb.AppendLine("- The citation list MUST be a numbered Markdown list."); - sb.AppendLine("- The source name MUST be bold, followed by the localized page label and the page number ONLY when the page number is available, then a colon."); - sb.AppendLine("- After the colon, add about 15-20 words in italic taken from the excerpt that supports the answer."); - sb.AppendLine("- Format each source exactly like:"); + sb.AppendLine("- At the END of your answer, add a sources section that follows this template exactly, where the sources label and the page label are localized in the same language as the user's question:"); sb.AppendLine(" *localized-sources-label*"); sb.AppendLine(" 1. **SourceName**, localized-page-label PageNumber: *supporting excerpt of about 15-20 words*"); - sb.AppendLine(" If the page number is not available, omit it and the page label, like:"); - sb.AppendLine(" 1. **SourceName**: *supporting excerpt of about 15-20 words*"); - sb.AppendLine("- Do NOT format source names as links."); + sb.AppendLine("- Omit the page label and the page number when the page number is not available."); + sb.AppendLine("- Do NOT use headings or links in the sources section."); sb.AppendLine("- Include ONLY sources you actually used. No duplicates."); sb.AppendLine();