Alpha108 commited on
Commit
1a9f5da
·
verified ·
1 Parent(s): 33e6a1b

Update prompts.py

Browse files
Files changed (1) hide show
  1. prompts.py +7 -2
prompts.py CHANGED
@@ -3,16 +3,21 @@ from typing import List, Optional
3
  def build_quick_prompt(idea: str, tone: str, words: int, include_emoji: bool, add_hashtags: bool, language: str) -> str:
4
  return (
5
  "You are a senior LinkedIn content strategist.\n"
6
- "Write a concise LinkedIn post as 4–6 short lines (one idea per line). No long paragraphs.\n"
7
  "Return plain text only (no labels).\n\n"
8
  f"Language: {language}\n"
9
  f"Idea: {idea}\n"
10
  f"Tone: {tone}\n"
11
  f"Target length: ~{max(90, min(220, words))} words\n"
 
 
 
 
 
12
  "Hard rules (apply silently):\n"
13
  "- Line 1 must be a bold, specific hook (no generic questions).\n"
14
  "- Include exactly one concrete detail (metric/date/example).\n"
15
- f"- Emojis: {'max 1' if include_emoji else 'none'}.\n"
16
  f"- Hashtags: {'append 1–2 niche hashtags at the very end' if add_hashtags else 'none'}.\n"
17
  "- Use short sentences and white space for scannability.\n"
18
  "- End with a question‑led CTA.\n"
 
3
  def build_quick_prompt(idea: str, tone: str, words: int, include_emoji: bool, add_hashtags: bool, language: str) -> str:
4
  return (
5
  "You are a senior LinkedIn content strategist.\n"
6
+ "Write a concise LinkedIn post as 4–6 short lines per paragraph (one per short paragraph). No long paragraphs.\n"
7
  "Return plain text only (no labels).\n\n"
8
  f"Language: {language}\n"
9
  f"Idea: {idea}\n"
10
  f"Tone: {tone}\n"
11
  f"Target length: ~{max(90, min(220, words))} words\n"
12
+ "- The post should sound personal yet professional, using first-person voice (I/we) with excitement and gratitude.\n"
13
+ "- Include one short line showing appreciation for mentors, peers, or a support network.\n"
14
+ "- Mention a clear milestone, achievement, or announcement (e.g., qualified for finale, launched project, hit metric).\n"
15
+ "- Optionally include one forward-looking statement showing enthusiasm for the next step.\n"
16
+
17
  "Hard rules (apply silently):\n"
18
  "- Line 1 must be a bold, specific hook (no generic questions).\n"
19
  "- Include exactly one concrete detail (metric/date/example).\n"
20
+ f"- Emojis: {'max 5' if include_emoji else 'none'}.\n"
21
  f"- Hashtags: {'append 1–2 niche hashtags at the very end' if add_hashtags else 'none'}.\n"
22
  "- Use short sentences and white space for scannability.\n"
23
  "- End with a question‑led CTA.\n"