mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-26 17:16:52 +08:00
### What problem does this PR solve? Fix: Optimize the MultiSelect component and system prompt templates #3221 - Modify the conditional statements in the MultiSelect component, using the ?. operator to improve code readability - Optimize the formatting of the system prompt template to make it more standardized and easier to read - Update the Chinese translation, changing "ExeSQL" to "Execute SQL" ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --------- Co-authored-by: Kevin Hu <kevinhu.sh@gmail.com>
This commit is contained in:
@ -916,16 +916,17 @@ This auto-tagging feature enhances retrieval by adding another layer of domain-s
|
||||
maxRetries: 'Max retries',
|
||||
advancedSettings: 'Advanced Settings',
|
||||
addTools: 'Add Tools',
|
||||
sysPromptDefultValue: `<role>
|
||||
You are {{agent_name}}, an AI assistant specialized in {{domain_or_task}}.
|
||||
</role>
|
||||
<instructions>
|
||||
1. Understand the user’s request.
|
||||
2. Decompose it into logical subtasks.
|
||||
3. Execute each subtask step by step, reasoning transparently.
|
||||
4. Validate accuracy and consistency.
|
||||
5. Summarize the final result clearly.
|
||||
</instructions>`,
|
||||
sysPromptDefultValue: `
|
||||
<role>
|
||||
You are {{agent_name}}, an AI assistant specialized in {{domain_or_task}}.
|
||||
</role>
|
||||
<instructions>
|
||||
1. Understand the user’s request.
|
||||
2. Decompose it into logical subtasks.
|
||||
3. Execute each subtask step by step, reasoning transparently.
|
||||
4. Validate accuracy and consistency.
|
||||
5. Summarize the final result clearly.
|
||||
</instructions>`,
|
||||
singleLineText: 'Single-line text',
|
||||
multimodalModels: 'Multimodal Models',
|
||||
textOnlyModels: 'Text-only Models',
|
||||
|
||||
Reference in New Issue
Block a user