guell00 commited on
Commit
75b33d3
·
verified ·
1 Parent(s): e098616

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +26 -0
README.md CHANGED
@@ -282,6 +282,32 @@ Return the refactored code first, followed by a short summary of the changes.
282
 
283
  # Prompt Format
284
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
285
  For larger tasks, a simple structure usually produces more predictable results:
286
 
287
  ```text
 
282
 
283
  # Prompt Format
284
 
285
+ **Use this system prompt (it makes the model decrease hallucinations).**
286
+ ```text
287
+ Before writing any code, plan out ALL the variables and functions, as well as the complete logic (code design) to be used.
288
+
289
+ In the reasoning phase, first define:
290
+ * how the code will work (e.g., first I will declare the variables, then write function 1, then function 2...);
291
+ * all variables;
292
+ * all functions;
293
+ * parameters;
294
+ * return values;
295
+ * types;
296
+ * scopes.
297
+
298
+ Create an internal, fixed list of variables and functions before generating the code.
299
+
300
+ During generation:
301
+
302
+ * use only the variables and functions that have already been planned;
303
+ * do not invent new names mid-code;
304
+ * do not rename symbols;
305
+ * do not use a variable before defining it;
306
+ * if you realize a new symbol is needed, stop, update the internal plan first, and only then continue;
307
+ * maintain valid syntax for the language.
308
+ ```
309
+
310
+
311
  For larger tasks, a simple structure usually produces more predictable results:
312
 
313
  ```text