Skip to content

Commit 508ffda

Browse files
authored
Update README.md
1 parent 7b391ae commit 508ffda

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,23 +537,27 @@ Based on successful OpenEvolve implementations, system messages are best created
537537
<summary><b>🔄 Step-by-Step Process</b></summary>
538538
539539
**Phase 1: Initial Draft**
540+
540541
1. Start with a basic system message describing your goal
541542
2. Run 20-50 evolution iterations to observe behavior
542543
3. Note where the system gets "stuck" or makes poor choices
543544
544545
**Phase 2: Refinement**
546+
545547
4. Add specific guidance based on observed issues
546548
5. Include domain-specific terminology and concepts
547549
6. Define clear constraints and optimization targets
548550
7. Run another batch of iterations
549551
550552
**Phase 3: Specialization**
553+
551554
8. Add detailed examples of good vs bad approaches
552555
9. Include specific library/framework guidance
553556
10. Add error avoidance patterns you've observed
554557
11. Fine-tune based on artifact feedback
555558
556559
**Phase 4: Optimization**
560+
557561
12. Consider using OpenEvolve itself to optimize your prompt
558562
13. Measure improvements using combined score metrics
559563
@@ -626,13 +630,15 @@ prompt:
626630
<summary><b>🎨 Prompt Engineering Patterns</b></summary>
627631
628632
**Structure Your Message:**
633+
629634
- Start with role definition ("You are an expert...")
630635
- Define the specific task and context
631636
- List optimization opportunities with examples
632637
- Set clear constraints and safety rules
633638
- End with success criteria
634639
635640
**Use Specific Examples:**
641+
636642
```yaml
637643
# Good: Specific optimization targets
638644
system_message: |
@@ -644,6 +650,7 @@ system_message: "Make the code faster"
644650
```
645651
646652
**Include Domain Knowledge:**
653+
647654
```yaml
648655
# Good: Domain-specific guidance
649656
system_message: |
@@ -657,6 +664,7 @@ system_message: "Optimize the algorithm"
657664
```
658665
659666
**Set Clear Boundaries:**
667+
660668
```yaml
661669
system_message: |
662670
MUST NOT CHANGE:
@@ -676,11 +684,13 @@ system_message: |
676684
<summary><b>🔬 Advanced Techniques</b></summary>
677685
678686
**Artifact-Driven Iteration:**
687+
679688
- Enable artifacts in your config
680689
- Include common error patterns in system message
681690
- Add guidance based on stderr/warning patterns
682691
683692
**Multi-Phase Evolution:**
693+
684694
```yaml
685695
# Phase 1: Broad exploration
686696
system_message: "Explore different algorithmic approaches..."
@@ -691,6 +701,7 @@ focus on parameter tuning and cooling schedules..."
691701
```
692702
693703
**Template Variation:**
704+
694705
```yaml
695706
prompt:
696707
template_dir: "custom_templates/"
@@ -747,6 +758,7 @@ return EvaluationResult(
747758
```
748759

749760
**Next generation prompt automatically includes:**
761+
750762
```markdown
751763
## Previous Execution Feedback
752764
⚠️ Warning: suboptimal memory access pattern
@@ -772,6 +784,7 @@ python scripts/visualizer.py --path examples/function_minimization/openevolve_ou
772784
```
773785

774786
**Features:**
787+
775788
- 🌳 **Evolution tree** with parent-child relationships
776789
- 📈 **Performance tracking** across generations
777790
- 🔍 **Code diff viewer** showing mutations

0 commit comments

Comments
 (0)