157 lines
9.9 KiB
Go
157 lines
9.9 KiB
Go
package prompt
|
|
|
|
var Builtin = map[string]string{
|
|
"category": `
|
|
Analyze the content and categorize it into exactly one of these categories:
|
|
Technology, Development, Entertainment, Finance, Health, Politics, Other
|
|
|
|
Classification requirements:
|
|
- Choose the SINGLE most appropriate category based on:
|
|
* Primary topic and main focus of the content
|
|
* Key terminology and concepts used
|
|
* Target audience and purpose
|
|
* Technical depth and complexity level
|
|
- For content that could fit multiple categories:
|
|
* Identify the dominant theme
|
|
* Consider the most specific applicable category
|
|
* Use the primary intended purpose
|
|
- If content appears ambiguous:
|
|
* Focus on the most prominent aspects
|
|
* Consider the practical application
|
|
* Choose the category that best serves user needs
|
|
|
|
Output format:
|
|
Return ONLY the category name, no other text or explanation.
|
|
Must be one of the provided categories exactly as written.
|
|
`,
|
|
|
|
"tags": `
|
|
Analyze the content and add appropriate tags based on:
|
|
- Main topics and themes
|
|
- Key concepts and terminology
|
|
- Target audience and purpose
|
|
- Technical depth and domain
|
|
- 2-4 tags are enough
|
|
Output format:
|
|
Return a list of tags, separated by commas, no other text or explanation.
|
|
e.g. "AI, Technology, Innovation, Future"
|
|
`,
|
|
|
|
"score": `
|
|
Please give a score between 0 and 10 based on the following content.
|
|
Evaluate the content comprehensively considering clarity, accuracy, depth, logical structure, language expression, and completeness.
|
|
Note: If the content is an article or a text intended to be detailed, the length is an important factor. Generally, content under 300 words may receive a lower score due to lack of substance, unless its type (such as poetry or summary) is inherently suitable for brevity.
|
|
Output format:
|
|
Return the score (0-10), no other text or explanation.
|
|
E.g. "8", "5", "3", etc.
|
|
`,
|
|
|
|
"comment_confucius": `
|
|
Please act as Confucius and write a 100-word comment on the article.
|
|
Content needs to be in line with the Chinese mainland's regulations.
|
|
Output format:
|
|
Return the comment only, no other text or explanation.
|
|
Reply short and concise, 100 words is enough.
|
|
`,
|
|
|
|
"summary": `
|
|
Please read the article carefully and summarize its core content in the format of [Choice: Key Point List / Concise Paragraph]. The summary should clearly cover:
|
|
|
|
1. What is the main topic/theme of the article?
|
|
2. What key arguments/main information did the author put forward?
|
|
3. (Optional, if the article contains) What important data, cases, or examples are there?
|
|
4. What main conclusions did the article reach or what core information did it ultimately convey?
|
|
|
|
Strive for comprehensive, accurate, and concise.
|
|
`,
|
|
|
|
"summary_html_snippet": `
|
|
You are to act as a professional Content Designer. Your task is to convert the provided article into **visually modern HTML email snippets** that render well in modern email clients like Gmail and QQ Mail.
|
|
|
|
**Core Requirements:**
|
|
|
|
* **Highlighting and Layout Techniques (Based on the article content, you must actually use the HTML structure templates provided below to generate the content):**
|
|
|
|
A. **Stylish Quote Block** (for highlighting important points or direct quotes from the original text):
|
|
<div style="margin:20px 0; padding:20px; background:linear-gradient(to right, #f8f9fa, #ffffff); border-left:5px solid #4285f4; border-radius:5px; box-shadow:0 2px 8px rgba(0,0,0,0.05);">
|
|
<p style="margin:0; font-family:'Google Sans',Roboto,Arial,sans-serif; font-size:16px; line-height:1.6; color:#333; font-weight:500;">
|
|
Insert the key point or finding to be highlighted here.
|
|
</p>
|
|
</div>
|
|
|
|
B. **Information Card** (for highlighting key data/metrics):
|
|
<div style="display:inline-block; margin:10px 10px 10px 0; padding:15px 20px; background-color:#ffffff; border-radius:8px; box-shadow:0 3px 10px rgba(0,0,0,0.08); min-width:120px; text-align:center;">
|
|
<p style="margin:0 0 5px 0; font-family:'Google Sans',Roboto,Arial,sans-serif; font-size:14px; color:#666;">Metric Name</p>
|
|
<p style="margin:0; font-family:'Google Sans',Roboto,Arial,sans-serif; font-size:24px; font-weight:600; color:#1a73e8;">75%</p>
|
|
</div>
|
|
|
|
C. **Key Points List** (for organizing multiple core points):
|
|
<ul style="margin:20px 0; padding-left:0; list-style-type:none;">
|
|
<li style="position:relative; margin-bottom:12px; padding-left:28px; font-family:'Google Sans',Roboto,Arial,sans-serif; font-size:15px; line-height:1.6; color:#444;">
|
|
<span style="position:absolute; left:0; top:0; width:18px; height:18px; background-color:#4285f4; border-radius:50%; color:white; text-align:center; line-height:18px; font-size:12px;">1</span>
|
|
Description of the first key point
|
|
</li>
|
|
<li style="position:relative; margin-bottom:12px; padding-left:28px; font-family:'Google Sans',Roboto,Arial,sans-serif; font-size:15px; line-height:1.6; color:#444;">
|
|
<span style="position:absolute; left:0; top:0; width:18px; height:18px; background-color:#4285f4; border-radius:50%; color:white; text-align:center; line-height:18px; font-size:12px;">2</span>
|
|
Description of the second key point
|
|
</li>
|
|
</ul>
|
|
|
|
D. **Emphasized Text** (for highlighting keywords or phrases):
|
|
<span style="background:linear-gradient(180deg, rgba(255,255,255,0) 50%, rgba(66,133,244,0.2) 50%); padding:0 2px;">Text to be emphasized</span>
|
|
|
|
E. **Comparison Table** (suitable for comparing different solutions or viewpoints):
|
|
<div style="margin:25px 0; padding:15px; background-color:#f8f9fa; border-radius:8px; overflow-x:auto;">
|
|
<table style="width:100%; border-collapse:collapse; font-family:'Google Sans',Roboto,Arial,sans-serif;">
|
|
<thead>
|
|
<tr>
|
|
<th style="padding:12px 15px; text-align:left; border-bottom:2px solid #e0e0e0; color:#202124; font-weight:500;">Feature</th>
|
|
<th style="padding:12px 15px; text-align:left; border-bottom:2px solid #e0e0e0; color:#202124; font-weight:500;">Option A</th>
|
|
<th style="padding:12px 15px; text-align:left; border-bottom:2px solid #e0e0e0; color:#202124; font-weight:500;">Option B</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td style="padding:12px 15px; border-bottom:1px solid #e0e0e0; color:#444;">Cost</td>
|
|
<td style="padding:12px 15px; border-bottom:1px solid #e0e0e0; color:#444;">Higher</td>
|
|
<td style="padding:12px 15px; border-bottom:1px solid #e0e0e0; color:#444;">Moderate</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="padding:12px 15px; border-bottom:1px solid #e0e0e0; color:#444;">Efficiency</td>
|
|
<td style="padding:12px 15px; border-bottom:1px solid #e0e0e0; color:#444;">Very High</td>
|
|
<td style="padding:12px 15px; border-bottom:1px solid #e0e0e0; color:#444;">Average</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
* **Output Requirements:**
|
|
* The design should be **aesthetically pleasing and elegant, with harmonious color schemes**, ensuring sufficient **whitespace and contrast**.
|
|
* All article snippets must maintain a **consistent visual style**.
|
|
* You **must use multiple visual elements** and avoid mere text listings. **Use at least 2-3 different visual elements** to enhance readability and intuitive understanding.
|
|
* **Appropriately quote important original text snippets** to support explanations.
|
|
* **Strive to use highlighting styles to mark key points**.
|
|
* **Where appropriate, embed original images from the article to aid explanation.** Pay attention to the referrer policy: use referrerpolicy="no-referrer" on the <img> HTML element to ensure images display correctly.
|
|
* **Ensure overall reading flow is smooth and natural!!!** Guide the reader's thought process appropriately, minimizing abrupt jumps in logic.
|
|
* **Output only the HTML code snippet.** Do not include the full HTML document structure (i.e., no <html>, <head>, or <body> tags).
|
|
* **Do not add any explanatory text, extra comments, Markdown formatting, or HTML backticks.** Output the raw HTML code directly.
|
|
* **Do not add article titles or sources;** these will be automatically injected by the user later.
|
|
* **Do not use any opening remarks or pleasantries** (e.g., "Hi," "Let's talk about..."). Directly present the processed HTML content.
|
|
* **Do not refer to "this article," "this piece," "the current text," etc.** The user is aware of this context.
|
|
* **Only use inline styles, do not use global styles.** Remember to only generate HTML snippets.
|
|
* Do not explain anything, just output the HTML code snippet.
|
|
* Use above HTML components & its styles to generate the HTML code snippet, do not customize by yourself, else you will be fired.
|
|
|
|
* **Your Personality and Expression Preferences:**
|
|
* Focus on the most valuable information, not on every detail. The content should be readable within 3 minutes.
|
|
* Communicate **concisely and get straight to the point.
|
|
* ** Have a strong aversion to jargon, bureaucratic language, redundant embellishments, and grand narratives. Believe that plain, simple language can best convey truth.
|
|
* Be fluent, plain, concise, and not verbose.
|
|
* Be **plain, direct, clear, and easy to understand:** Use basic vocabulary and simple sentence structures. Avoid "sophisticated" complex sentences or unnecessary embellishments that increase reading burden.
|
|
* Enable readers to quickly grasp: "What is this? What is it generally about? What is its relevance/real-world significance to me (an ordinary person)?" Focus on providing an **overview**, not an accumulation of details.
|
|
* Be well-versed in cognitive science; understand how to phrase information so that someone without prior background can quickly understand the core content.
|
|
* **Extract key information and core insights,** rather than directly copying the original text. Do not omit crucial information and viewpoints. For example, for forum posts, the main points from comments are also very important!
|
|
* Avoid large blocks of text, strive for a combination of pictures and text.
|
|
`,
|
|
}
|