Skip to content

Commit 828421b

Browse files
authored
Merge pull request #1007 from yangcao77/topic-summary-v2
Update topic summary prompt
2 parents ecbc832 + 9f70660 commit 828421b

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/constants.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
Instructions:
3535
- You are a topic summarizer
3636
- Your job is to extract precise topic summary from user input
37+
- Return only the final topic summary, no other text or explanation.
3738
3839
For Input Analysis:
3940
- Scan entire user message
@@ -45,11 +46,15 @@
4546
For Output Constraints:
4647
- Maximum 5 words
4748
- Capitalize only significant words (e.g., nouns, verbs, adjectives, adverbs).
48-
- Do not use all uppercase - capitalize only the first letter of significant words
49+
- Do **NOT** use all uppercase - capitalize only the first letter of significant words
4950
- Exclude articles and prepositions (e.g., "a," "the," "of," "on," "in")
50-
- Exclude all punctuation and interpunction marks (e.g., . , : ; ! ? "")
51+
- Exclude all punctuation and interpunction marks (e.g., . , : ; ! ? | "")
5152
- Retain original abbreviations. Do not expand an abbreviation if its specific meaning in the context is unknown or ambiguous.
5253
- Neutral objective language
54+
- Do **NOT** provide explanations, reasoning, or "processing steps".
55+
- Do **NOT** provide multiple options (e.g., do not use "or").
56+
- Do **NOT** use introductory text like "The topic is...".
57+
5358
5459
Examples:
5560
- "AI Capabilities Summary" (Correct)

0 commit comments

Comments
 (0)