mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
refine mindmap (#1817)
### What problem does this PR solve? #1594 ### Type of change - [x] Refactoring
This commit is contained in:
@ -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:
|
||||
"""
|
||||
Reference in New Issue
Block a user