|
@@ -937,7 +937,7 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
</Tooltip>
|
|
</Tooltip>
|
|
|
</div>
|
|
</div>
|
|
|
<Splitter style={{ border: '1px solid #f0f0f0', borderRadius: '6px', height: 550 }}>
|
|
<Splitter style={{ border: '1px solid #f0f0f0', borderRadius: '6px', height: 550 }}>
|
|
|
- <Splitter.Panel defaultSize="45%">
|
|
|
|
|
|
|
+ <Splitter.Panel defaultSize="35%">
|
|
|
<div className='prompt'>
|
|
<div className='prompt'>
|
|
|
<div className='prompt-info'>
|
|
<div className='prompt-info'>
|
|
|
<div className='prompt-info-text'>
|
|
<div className='prompt-info-text'>
|
|
@@ -947,15 +947,15 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
代表知识库中检索到的知识内容,
|
|
代表知识库中检索到的知识内容,
|
|
|
<span className='variable-highlight'>{'{{用户}}'}</span>
|
|
<span className='variable-highlight'>{'{{用户}}'}</span>
|
|
|
代表用户输入的内容。您可以在编写Prompt过程中将变量拼接在合适的位置。
|
|
代表用户输入的内容。您可以在编写Prompt过程中将变量拼接在合适的位置。
|
|
|
- <br />
|
|
|
|
|
|
|
+ {/* <br />
|
|
|
插入:
|
|
插入:
|
|
|
<span className='variable-highlight'>{'{{知识}}'}</span>,
|
|
<span className='variable-highlight'>{'{{知识}}'}</span>,
|
|
|
插入:
|
|
插入:
|
|
|
- <span className='variable-highlight'>{'{{用户}}'}</span>。
|
|
|
|
|
|
|
+ <span className='variable-highlight'>{'{{用户}}'}</span>。 */}
|
|
|
</Typography.Paragraph>
|
|
</Typography.Paragraph>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <Divider style={{ margin: '0' }} />
|
|
|
|
|
|
|
+ {/* 移除 Divider,使用 CSS 边框替代 */}
|
|
|
<div className='prompt-editor-area'>
|
|
<div className='prompt-editor-area'>
|
|
|
<FormItem name='prompt'
|
|
<FormItem name='prompt'
|
|
|
initialValue={
|
|
initialValue={
|
|
@@ -989,11 +989,11 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</Splitter.Panel>
|
|
</Splitter.Panel>
|
|
|
- <Splitter.Panel defaultSize="25%">
|
|
|
|
|
|
|
+ <Splitter.Panel defaultSize="30%">
|
|
|
<div className='flex-center-container'>
|
|
<div className='flex-center-container'>
|
|
|
<div className='half-width'>
|
|
<div className='half-width'>
|
|
|
<div className='flex-center-top'>
|
|
<div className='flex-center-top'>
|
|
|
- 欢迎使用 {name}
|
|
|
|
|
|
|
+ 欢迎使用 {name || '问答应用'}
|
|
|
</div>
|
|
</div>
|
|
|
<div className='flex-center padding-top-20'>
|
|
<div className='flex-center padding-top-20'>
|
|
|
<FormItem
|
|
<FormItem
|
|
@@ -1005,7 +1005,7 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
maxCount={MAX_COUNT}
|
|
maxCount={MAX_COUNT}
|
|
|
showSearch={true}
|
|
showSearch={true}
|
|
|
className='form-element-select'
|
|
className='form-element-select'
|
|
|
- placeholder='请选择知识库'
|
|
|
|
|
|
|
+ placeholder='请选择需要引用的知识库'
|
|
|
>
|
|
>
|
|
|
{
|
|
{
|
|
|
knowledgeList.map((item, index) => {
|
|
knowledgeList.map((item, index) => {
|
|
@@ -1201,7 +1201,7 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
placeholder='请选择模型'
|
|
placeholder='请选择模型'
|
|
|
// defaultValue={'rerank'}
|
|
// defaultValue={'rerank'}
|
|
|
>
|
|
>
|
|
|
- <Option value='rerank'>默认rerank模型</Option>
|
|
|
|
|
|
|
+ <Option value='rerank'>默认Rerank模型</Option>
|
|
|
</Select>
|
|
</Select>
|
|
|
</FormItem>
|
|
</FormItem>
|
|
|
</div>
|
|
</div>
|
|
@@ -1216,7 +1216,8 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
name='slice_config_type'
|
|
name='slice_config_type'
|
|
|
rules={[{ required: true, message: '召回方式不能为空' }]}>
|
|
rules={[{ required: true, message: '召回方式不能为空' }]}>
|
|
|
<Select
|
|
<Select
|
|
|
- className='questionAnswerInfo-content-title'
|
|
|
|
|
|
|
+ // className='questionAnswerInfo-content-title'
|
|
|
|
|
+ className='form-element-select'
|
|
|
placeholder='请选择'
|
|
placeholder='请选择'
|
|
|
onChange={onChangeCount}>
|
|
onChange={onChangeCount}>
|
|
|
<Option value="fixed">手动设置</Option>
|
|
<Option value="fixed">手动设置</Option>
|
|
@@ -1236,7 +1237,9 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
name='slice_count'
|
|
name='slice_count'
|
|
|
rules={[{ required: true, message: '切片数不能为空' }]}>
|
|
rules={[{ required: true, message: '切片数不能为空' }]}>
|
|
|
<InputNumber max={1024} changeOnWheel
|
|
<InputNumber max={1024} changeOnWheel
|
|
|
- className='questionAnswerInfo-content-title' />
|
|
|
|
|
|
|
+ // className='questionAnswerInfo-content-title'
|
|
|
|
|
+ className='form-element-standard'
|
|
|
|
|
+ />
|
|
|
</FormItem>
|
|
</FormItem>
|
|
|
</div>
|
|
</div>
|
|
|
}
|
|
}
|
|
@@ -1261,7 +1264,7 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</Splitter.Panel>
|
|
</Splitter.Panel>
|
|
|
- {appId && (<Splitter.Panel defaultSize="30%">
|
|
|
|
|
|
|
+ {appId && (<Splitter.Panel defaultSize="35%">
|
|
|
<Chat appId={appId} />
|
|
<Chat appId={appId} />
|
|
|
</Splitter.Panel>)}
|
|
</Splitter.Panel>)}
|
|
|
</Splitter>
|
|
</Splitter>
|