refine mindmap (#1817)

### What problem does this PR solve?

#1594
### Type of change

- [x] Refactoring
This commit is contained in:
Kevin Hu
2024-08-06 09:24:53 +08:00
committed by GitHub
parent 5650442b0b
commit 3fd7db40ea
3 changed files with 39 additions and 24 deletions

View File

@ -14,28 +14,20 @@
# limitations under the License.
#
MIND_MAP_EXTRACTION_PROMPT = """
- Role: You're a talent text processor.
- Role: You're a talent text processor to summarize a piece of text into a mind map.
- Step of task:
1. Generate a title for user's 'TEXT'
2. Classify the 'TEXT' into sections as you see fit.
3. If the subject matter is really complex, split them into sub-sections.
- Step of task:
1. Generate a title for user's 'TEXT'
2. Classify the 'TEXT' into sections of a mind map.
3. If the subject matter is really complex, split them into sub-sections and sub-subsections.
4. Add a shot content summary of the bottom level section.
- Output requirement:
- Always try to maximize the number of sub-sections.
- In language of 'Text'
- MUST IN FORMAT OF MARKDOWN
- Output requirement:
- In language of
- MUST IN FORMAT OF MARKDOWN
Output:
## <Title>
<Section Name>
<Section Name>
<Subsection Name>
<Subsection Name>
<Section Name>
<Subsection Name>
-TEXT-
{input_text}
Output:
"""