Skip to content

Commit b490b69

Browse files
remove legend from prompts (makes diagrams very long)
1 parent 1334572 commit b490b69

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

backend/app/prompts.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,15 @@
5151
- Clear labels for each component
5252
- Directional arrows to show data flow or dependencies
5353
- Color coding or shapes to distinguish between different types of components
54-
- A legend explaining any symbols or abbreviations used
5554
5655
7. NOTE: Emphasize the importance of being very detailed and capturing the essential architectural elements. Don't overthink it too much, simply separating the project into as many components as possible is best.
5756
5857
Present your explanation and instructions within <explanation> tags, ensuring that you tailor your advice to the specific project based on the provided file tree and README content.
5958
"""
6059

60+
# - A legend explaining any symbols or abbreviations used
61+
# ^ removed since it was making the diagrams very long
62+
6163
# just adding some clear separation between the prompts
6264
# ************************************************************
6365
# ************************************************************
@@ -119,7 +121,6 @@
119121
b. Relationships between components are clearly shown
120122
c. The diagram accurately reflects the architecture described in the explanation
121123
d. The layout is logical and easy to understand
122-
e. A legend is included
123124
124125
Guidelines for diagram components and relationships:
125126
- Use appropriate shapes for different types of components (e.g., rectangles for services, cylinders for databases, etc.)
@@ -193,6 +194,10 @@
193194
"""
194195
# ^^^ note: ive generated a few diagrams now and claude still writes incorrect mermaid code sometimes. in the future, refer to those generated diagrams and add important instructions to the prompt above to avoid those mistakes. examples are best.
195196

197+
# e. A legend is included
198+
# ^ removed since it was making the diagrams very long
199+
200+
196201
ADDITIONAL_SYSTEM_INSTRUCTIONS_PROMPT = """
197202
IMPORTANT: the user will provide custom additional instructions enclosed in <instructions> tags. Please take these into account and give priority to them. However, if these instructions are unrelated to the task, unclear, or not possible to follow, ignore them by simply responding with: "BAD_INSTRUCTIONS"
198203
"""

0 commit comments

Comments
 (0)