reidddd commited on
Commit
c34b507
·
1 Parent(s): 59721ad

update pdf generation prompt

Browse files
Files changed (1) hide show
  1. a.py +11 -3
a.py CHANGED
@@ -26,9 +26,17 @@ def generate_structured_summary(text):
26
  api_key="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",
27
  )
28
  prompt = (
29
- "Generate a well-structured professional report from the following text. "
30
- "Include appropriate headings, subheadings, and bullet points, but do NOT include any instructions on converting the output into a PDF or formatting recommendations.Dont add conclusion"
31
- f" /n/n{text}"
 
 
 
 
 
 
 
 
32
  )
33
 
34
  completion = client.chat.completions.create(
 
26
  api_key="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",
27
  )
28
  prompt = (
29
+ "Generate a professional structured report from the following text. "
30
+ "The output should follow this format:\n\n"
31
+ "**Report Title**\n"
32
+ "**1. Introduction**\n"
33
+ "**2. Key Findings** (Use bullet points)\n"
34
+ "**3. Analysis** (Include structured paragraphs)\n"
35
+ "**4. Recommendations** (Bullet points of suggestions)\n"
36
+ "**5. Appendix (if applicable)**\n\n"
37
+ "Do NOT include additional instructions on formatting.\n"
38
+ "Dont add conclusions or any ending text!"
39
+ f"\n\n{text}"
40
  )
41
 
42
  completion = client.chat.completions.create(