@@ -343,8 +343,10 @@ def check_document_fits_context(document_text, model_name, user_prompt=""):
343
343
344
344
CITATION GUIDELINES:
345
345
- Use verbatim quotes in their original language (never translate)
346
- - Quote meaningful phrases (3-8 words) that provide context
347
- - Include descriptive context around numbers/measurements
346
+ - Quote meaningful phrases (5-15 words) that provide sufficient context
347
+ - Include descriptive context around numbers/measurements (e.g., "increased by 50% compared to" not just "50%")
348
+ - Avoid very short snippets like single numbers, dates, or isolated words
349
+ - Each citation should be substantial enough to be meaningful on its own
348
350
- Each citation on its own line
349
351
350
352
LANGUAGE RULES:
@@ -1033,8 +1035,10 @@ def create_system_prompt(document_content, is_rag=False):
1033
1035
# Citation guidelines (shared)
1034
1036
citation_guidelines = """CITATION GUIDELINES:
1035
1037
- Use verbatim quotes in their original language (never translate)
1036
- - Quote meaningful phrases (3-8 words) that provide context
1037
- - Include descriptive context around numbers/measurements
1038
+ - Quote meaningful phrases (5-15 words) that provide sufficient context
1039
+ - Include descriptive context around numbers/measurements (e.g., "increased by 50% compared to" not just "50%")
1040
+ - Avoid very short snippets like single numbers, dates, or isolated words
1041
+ - Each citation should be substantial enough to be meaningful on its own
1038
1042
- Each citation on its own line"""
1039
1043
1040
1044
# Language rules (shared)
0 commit comments