mirror of
https://github.com/marcominerva/SqlDatabaseVectorSearch.git
synced 2026-08-04 09:48:57 +00:00
Update citation formatting rules for Markdown output
Clarifies citation formatting: the sources label must be localized and in standard-size italic text (not a heading or bold). Citations now require the source name in bold, followed by the localized page label and page number if available, then a colon and 15-20 italicized words from the excerpt. Source names are not links, and only actually used, non-duplicate sources are included. Example formats are updated accordingly.
This commit is contained in:
@@ -160,14 +160,15 @@ var textSearchOptions = new TextSearchProviderOptions()
|
|||||||
sb.AppendLine("Citation rules:");
|
sb.AppendLine("Citation rules:");
|
||||||
sb.AppendLine("- Do NOT add inline citations.");
|
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("- 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. For example: *Sources* or *Fonti*.");
|
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 citation list MUST be a numbered Markdown list.");
|
||||||
sb.AppendLine("- Format each citation with the source name and the localized page label, followed by a Markdown block quote of about 20-30 words from the excerpt that supports the answer.");
|
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("- The block quote MUST start on a new line with the '>' Markdown character.");
|
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("- Format each source exactly like:");
|
||||||
sb.AppendLine(" *Sources*");
|
sb.AppendLine(" *localized-sources-label*");
|
||||||
sb.AppendLine(" 1. SourceName, localized-page-label PageNumber");
|
sb.AppendLine(" 1. **SourceName**, localized-page-label PageNumber: *supporting excerpt of about 15-20 words*");
|
||||||
sb.AppendLine(" > Supporting excerpt quote of about 20-30 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("- Do NOT format source names as links.");
|
||||||
sb.AppendLine("- Include ONLY sources you actually used. No duplicates.");
|
sb.AppendLine("- Include ONLY sources you actually used. No duplicates.");
|
||||||
sb.AppendLine();
|
sb.AppendLine();
|
||||||
|
|||||||
Reference in New Issue
Block a user