|
|
@@ -646,28 +646,26 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
</div>
|
|
|
</div>
|
|
|
<h3>Prompt编写</h3>
|
|
|
- <Splitter style={{ border: '1px solid #d9d9d9', borderRadius: '6px' }}>
|
|
|
- <Splitter.Panel defaultSize="75%">
|
|
|
+ <Splitter style={{ border: '1px solid #f0f0f0', borderRadius: '6px' }}>
|
|
|
+ <Splitter.Panel defaultSize="65%">
|
|
|
<div className='prompt'>
|
|
|
<div className='prompt-info'>
|
|
|
<div className='prompt-info-text'>
|
|
|
- <Typography.Paragraph style={{ fontSize: '12px', lineHeight: '1.6', color: '#999' }}>
|
|
|
+ <Typography.Paragraph style={{ fontSize: '12px', lineHeight: '1.6', color: '#999', margin: 0 }}>
|
|
|
编写Prompt过程中可以引入2项变量:
|
|
|
<span className='variable-highlight'>{'{{知识}}'}</span>
|
|
|
代表知识库中检索到的知识内容,
|
|
|
<span className='variable-highlight'>{'{{用户}}'}</span>
|
|
|
代表用户输入的内容。您可以在编写Prompt过程中将变量拼接在合适的位置。
|
|
|
+ <br />
|
|
|
+ 插入:
|
|
|
+ <span className='variable-highlight'>{'{{知识}}'}</span>,
|
|
|
+ 插入:
|
|
|
+ <span className='variable-highlight'>{'{{用户}}'}</span>。
|
|
|
</Typography.Paragraph>
|
|
|
- <div className='variable-insert-buttons'>
|
|
|
- <Button type="link" size="small" className='insert-variable-btn'>
|
|
|
- 插入:<span className='variable-highlight'>{'{{知识}}'}</span>
|
|
|
- </Button>
|
|
|
- <Button type="link" size="small" className='insert-variable-btn'>
|
|
|
- 插入:<span className='variable-highlight'>{'{{用户}}'}</span>
|
|
|
- </Button>
|
|
|
- </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <Divider style={{ margin: '0' }} />
|
|
|
<div className='prompt-editor-area'>
|
|
|
<FormItem name='prompt'
|
|
|
initialValue={
|
|
|
@@ -700,9 +698,10 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
</Splitter.Panel>
|
|
|
- <Splitter.Panel defaultSize="60%">
|
|
|
+ <Splitter.Panel defaultSize="35%">
|
|
|
+
|
|
|
+
|
|
|
<div className='flex-center-container'>
|
|
|
<div className='half-width'>
|
|
|
<div className='flex-center-top'>
|