diff --git a/SqlDatabaseVectorSearch/Program.cs b/SqlDatabaseVectorSearch/Program.cs index 4b09813..18fec2b 100644 --- a/SqlDatabaseVectorSearch/Program.cs +++ b/SqlDatabaseVectorSearch/Program.cs @@ -160,14 +160,15 @@ var textSearchOptions = new TextSearchProviderOptions() 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. 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("- 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 block quote MUST start on a new line with the '>' Markdown character."); + 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(" *Sources*"); - sb.AppendLine(" 1. SourceName, localized-page-label PageNumber"); - sb.AppendLine(" > Supporting excerpt quote of about 20-30 words."); + 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("- Include ONLY sources you actually used. No duplicates."); sb.AppendLine();