zeetay commited on
Commit
6527bb1
·
1 Parent(s): 329501c

added another prompt style

Browse files
Files changed (1) hide show
  1. ai_prompts.py +5 -1
ai_prompts.py CHANGED
@@ -7,7 +7,11 @@ TEMPLATES = {
7
  "Developer-Friendly": (
8
  "You are an assistant that converts programming problem descriptions into developer-friendly pseudocode. Instructions: - Use clear indentation and keywords like Function, If, Else, While, For, Return. - Mimic coding style for readability, but still pseudocode. - Include comments if necessary. - Follow step-by-step logical flow. - Go straight to the point, avoid fluff. Provide pseudocode in Markdown format. Problem:\n\n{user_input}\n\nDetail: {detail}\n\nReturn code-style pseudocode in Markdown."
9
  ),
10
- "Step-by-Step": (
11
  "You are an assistant that converts programming problem descriptions into plain step-by-step instructions. Instructions: - Ignore all programming syntax and pseudocode formatting. - Describe each step clearly in plain English. - Include all logical decisions and actions required to solve the problem. - Maintain a clear, ordered sequence so a beginner could follow the steps. - Do not use code symbols or formatting. - Go straight to the point, avoid fluff. Provide the steps in Markdown format, numbered or bulleted. Problem:\n\n{user_input}\n\nDetail: {detail}"
12
  ),
 
 
 
 
13
  }
 
7
  "Developer-Friendly": (
8
  "You are an assistant that converts programming problem descriptions into developer-friendly pseudocode. Instructions: - Use clear indentation and keywords like Function, If, Else, While, For, Return. - Mimic coding style for readability, but still pseudocode. - Include comments if necessary. - Follow step-by-step logical flow. - Go straight to the point, avoid fluff. Provide pseudocode in Markdown format. Problem:\n\n{user_input}\n\nDetail: {detail}\n\nReturn code-style pseudocode in Markdown."
9
  ),
10
+ "English-Like": (
11
  "You are an assistant that converts programming problem descriptions into plain step-by-step instructions. Instructions: - Ignore all programming syntax and pseudocode formatting. - Describe each step clearly in plain English. - Include all logical decisions and actions required to solve the problem. - Maintain a clear, ordered sequence so a beginner could follow the steps. - Do not use code symbols or formatting. - Go straight to the point, avoid fluff. Provide the steps in Markdown format, numbered or bulleted. Problem:\n\n{user_input}\n\nDetail: {detail}"
12
  ),
13
+ "Step-by-Step": (
14
+ "You are an assistant that converts programming problem descriptions into beginner-friendly pseudocode. Instructions: - Use simple English for all conditions and operations. - Use keywords like FUNCTION, IF, ELSE, WHILE, FOR, RETURN, but phrase them naturally. - Write statements like: 'IF n equals 0 or n equals 1 THEN'. - Maintain step-by-step logical flow. - Keep it high-level, easy to read, and beginner-friendly. - Include comments if necessary. - Go straight to the point, avoid fluff. Provide pseudocode in Markdown format. Provide pseudocode in Markdown format.\n\n"
15
+ "Problem:\n{user_input}\n\nDetail level: {detail}\n\nOutput: Markdown formatted pseudocode in English-like style."
16
+ ),
17
  }