Skip to content

Commit

Permalink
Merge pull request #222 from it-at-m/brainstorm-improvements
Browse files Browse the repository at this point in the history
🧠 improve mindmap generation
  • Loading branch information
Meteord authored Dec 9, 2024
2 parents 987503a + 82ae014 commit 230dde8
Showing 1 changed file with 26 additions and 15 deletions.
41 changes: 26 additions & 15 deletions app/backend/brainstorm/brainstorm.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,38 +19,49 @@ class Brainstorm:
Simple brainstorm implementation. One shot generation of certain markdown files. Translates the result into a target language.
"""
user_mindmap_prompt = """
In a markdown file (MD) plan out a mind map on the topic {topic}. Follow the format in this example. Write it in a code snippet I can copy from directly. Provide only code, no description. Include the exact format I used below.
Example markdown format:
Plan out a mind map in a markdown file on the topic {topic} using the provided format.
Follow the following rules:
- Be very creative and very detailed
- Format the texts in markdown, where it fits.
- Display the text for the most important topic in bold.
- Use always more sublists, if more than one subtopic is available.
- Do just include the topics without structuring information (like topic 1, topic 2, etc.)
Use the following structure to ensure clarity and organization:
# Central topic
## Main topic 1
### Subtopic 1
– Subtopic 1
– Subtopic 2
– Subtopic 3
- Subsubtopic 1
- Subsubsubtopic 1
- Subsubsubtopic 2
- Subsubsubsubtopic 1
- Subsubtopic 2
- Subsubtopic 3
### Subtopic 2
– Subtopic 1
– Subtopic 2
– Subtopic 3
- Subsubtopic 1
- Subsubtopic 2
- Subsubtopic 3
## Main topic 2
### Subtopic 1
– Subtopic 1
- Subsubtopic 1
- Subsubtopic 2
- Subsubtopic 3
– Subtopic 2
# Output Format
– Subtopic 3"""
The output should be formatted as a markdown code snippet for easy copying. Include all elements in the structure specified above, maintaining organized headings and bullet points.
"""

user_translate_prompt = """
Übersetze den folgenden Text in {language}. Beinhalte die Markdown Formatierung bei.
Expand Down

0 comments on commit 230dde8

Please sign in to comment.