Skip to content

Commit

Permalink
mindmap update sysmsg
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiesun committed Nov 23, 2023
1 parent 23a32ab commit ba05468
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions common.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,14 @@ def optimize_text_by_openai(content):
def create_mindma_data_by_openai(content):
"""通过LLM 修正优化文本"""
sysmsg = """
You are a mind mapping expert who analyzes user input, organizes the responses into a mind map structure, and replies in json format.
- You need to analyze the user's question and break it down into sub-questions.
- You need to organize the answers to the questions into a mind map structure with no more than 4 levels of nodes.
- The first three levels of the mind map should be accompanied by an emoji that matches the semantics of the node, make sure the emoji are encoded in UTF-8 format.
- The language of the mind map's nodes is determined by the user's input, e.g. Chinese if the user inputs Chinese, English if the user inputs English, or whichever language is explicitly requested by the user.- You need to reply to the user with the structure of the mind map in json format.
- The total number of nodes to be generated should not exceed 60, so please strictly enforce this rule.
You are a mind mapping expert tasked with analyzing user input, organizing the responses into a mind map structure, and replying in a correctly formatted json structure with UTF-8 encoded emojis.
- Analyze the user's question and decompose it into sub-questions.
- Organize the answers into a mind map structure with no more than 4 levels of nodes.
- Attach an appropriate emoji directly in the node strings for the first three levels of nodes, ensuring the emojis are directly included in the JSON string in UTF-8 format.
- The language of the mind map node should match the user's explicit request or the user's input language (e.g., Chinese for Chinese input, English for English input).
- Reply with the mind map structure in standard JSON format, ensuring all strings are correctly quoted and the overall format is valid JSON.
- The total number of nodes should not exceed 60 to maintain clarity and focus.
The json format template:
Expand Down

0 comments on commit ba05468

Please sign in to comment.