mirror of
https://github.com/langgenius/dify-docs.git
synced 2026-03-26 13:18:34 +07:00
Documentation edits made through Mintlify web editor
This commit is contained in:
@@ -140,13 +140,11 @@ The **Code Fix** feature enables **automatic code correction** by leveraging the
|
||||
|
||||
1. **Write Repair Prompt**:
|
||||
|
||||
In the prompt editor, use the variable insertion menu (`/` or `{`) to insert variables. You may customize a prompt like:
|
||||
In the prompt editor, use the variable insertion menu (`/` or `{`) to insert variables. You may customize a prompt like:
|
||||
|
||||
`Fix the following code based on this error message: Code: {{current_code}} Error: {{error_message}}`
|
||||
|
||||
<img
|
||||
style={{ width:"2874%" }}
|
||||
/>
|
||||

|
||||
|
||||
2. **Using Context Variables (if needed later in workflow)**
|
||||
|
||||
|
||||
@@ -394,9 +394,7 @@ Click the wand icon to launch the Prompt Generator, which pre-fills a repair ins
|
||||
|
||||
`The output of this prompt is not as expected: {{last_run}}. You should edit the prompt according to the IDEAL OUTPUT.`
|
||||
|
||||
<img
|
||||
style={{ width:"2644%" }}
|
||||
/>
|
||||

|
||||
|
||||
2. Customize the Instruction
|
||||
|
||||
@@ -410,9 +408,7 @@ _Note: You cannot insert variables into the Ideal Output box. It is for static e
|
||||
|
||||
For example, if your task were to rewrite the prompt so that the model outputs a concise summary of a news article in exactly three bullet points, an ideal output could be:
|
||||
|
||||
<img
|
||||
style={{ width:"1092%" }}
|
||||
/>
|
||||

|
||||
|
||||
4. Generate an Optimized Prompt
|
||||
|
||||
|
||||
Reference in New Issue
Block a user