Spaces:
Running
Running
SyedAzlanzar
commited on
Commit
·
a25322d
1
Parent(s):
a988ec8
@debug : prompt 1.9
Browse files- app/services/generator.py +8 -16
app/services/generator.py
CHANGED
@@ -31,9 +31,9 @@ async def generate_cover_letter(data: GenerateRequest, resume_text: str) -> str:
|
|
31 |
|
32 |
|
33 |
prompt = f"""
|
34 |
-
# AI
|
35 |
|
36 |
-
You are an expert
|
37 |
|
38 |
## Input Requirements
|
39 |
|
@@ -42,21 +42,13 @@ async def generate_cover_letter(data: GenerateRequest, resume_text: str) -> str:
|
|
42 |
|
43 |
## Output Format
|
44 |
|
45 |
-
Provide only the
|
46 |
|
47 |
Dear {data.company_name},
|
48 |
|
49 |
-
[
|
50 |
|
51 |
|
52 |
-
**Do not include:**
|
53 |
-
|
54 |
-
- Header with personal contact information
|
55 |
-
- Date
|
56 |
-
- Subject line
|
57 |
-
- Closing signature
|
58 |
-
- Any formatting beyond the basic greeting and paragraphs
|
59 |
-
|
60 |
## Core Writing Instructions
|
61 |
|
62 |
### Content Strategy (German Market Focus)
|
@@ -76,7 +68,7 @@ async def generate_cover_letter(data: GenerateRequest, resume_text: str) -> str:
|
|
76 |
- **Opening:** 50-70 words
|
77 |
- **Body:** 80-100 words
|
78 |
- **Closing:** 50-70 words
|
79 |
-
- **Format:** Use continuous text only - no bullet points or lists within the
|
80 |
- **Avoid These Overused Words:**
|
81 |
- Robust → use "strong," "reliable," or "sturdy"
|
82 |
- Keen → use "eager," "interested," or "enthusiastic"
|
@@ -114,13 +106,13 @@ async def generate_cover_letter(data: GenerateRequest, resume_text: str) -> str:
|
|
114 |
## Output Rules
|
115 |
|
116 |
1. **Content Only:** Provide only the greeting and 3-paragraph body content - no headers, contact information, date, subject line, or closing signature
|
117 |
-
2. **Customization:** Every
|
118 |
3. **Authenticity:** Write like a real human - natural flow, simple language, avoid overly polished corporate speak
|
119 |
4. **Specificity:** Reference specific company details, role requirements, and technologies mentioned in the JD
|
120 |
|
121 |
## Quality Checklist
|
122 |
|
123 |
-
Before finalizing, ensure the
|
124 |
|
125 |
- [ ] Addresses the specific role and company by name
|
126 |
- [ ] Highlights 2-3 most relevant experiences from the CV
|
@@ -131,7 +123,7 @@ async def generate_cover_letter(data: GenerateRequest, resume_text: str) -> str:
|
|
131 |
- [ ] Includes a clear call to action
|
132 |
- [ ] Stays within 3-4 paragraph limit
|
133 |
|
134 |
-
Remember: Your goal is to write
|
135 |
|
136 |
Job Title:
|
137 |
{data.job_title}
|
|
|
31 |
|
32 |
|
33 |
prompt = f"""
|
34 |
+
# AI Writer Bot Prompt
|
35 |
|
36 |
+
You are an expert writer that creates personalized, human-written paragraphs based on job descriptions and CV information. Your goal is to craft authentic paragraphs that sound like they're written by a Pakistani professional with 6.5 IELTS band score - natural, clear, but not overly sophisticated or AI-generated.
|
37 |
|
38 |
## Input Requirements
|
39 |
|
|
|
42 |
|
43 |
## Output Format
|
44 |
|
45 |
+
Provide only the paragraph content in this format:
|
46 |
|
47 |
Dear {data.company_name},
|
48 |
|
49 |
+
[3 paragraphs]
|
50 |
|
51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
## Core Writing Instructions
|
53 |
|
54 |
### Content Strategy (German Market Focus)
|
|
|
68 |
- **Opening:** 50-70 words
|
69 |
- **Body:** 80-100 words
|
70 |
- **Closing:** 50-70 words
|
71 |
+
- **Format:** Use continuous text only - no bullet points or lists within the paragraph body
|
72 |
- **Avoid These Overused Words:**
|
73 |
- Robust → use "strong," "reliable," or "sturdy"
|
74 |
- Keen → use "eager," "interested," or "enthusiastic"
|
|
|
106 |
## Output Rules
|
107 |
|
108 |
1. **Content Only:** Provide only the greeting and 3-paragraph body content - no headers, contact information, date, subject line, or closing signature
|
109 |
+
2. **Customization:** Every paragraph must be specifically tailored to the job description
|
110 |
3. **Authenticity:** Write like a real human - natural flow, simple language, avoid overly polished corporate speak
|
111 |
4. **Specificity:** Reference specific company details, role requirements, and technologies mentioned in the JD
|
112 |
|
113 |
## Quality Checklist
|
114 |
|
115 |
+
Before finalizing, ensure the paragraphs meet these criteria:
|
116 |
|
117 |
- [ ] Addresses the specific role and company by name
|
118 |
- [ ] Highlights 2-3 most relevant experiences from the CV
|
|
|
123 |
- [ ] Includes a clear call to action
|
124 |
- [ ] Stays within 3-4 paragraph limit
|
125 |
|
126 |
+
Remember: Your goal is to write paragraphs that sounds like it was written by a real person with good English skills, not by AI. Keep it natural, straightforward, and genuine.
|
127 |
|
128 |
Job Title:
|
129 |
{data.job_title}
|