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.
This commit is contained in:
Marco Minerva
2026-07-27 17:22:09 +02:00
parent 3b06b0e0f9
commit d5b0e1606f
+3 -9
View File
@@ -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();