|
@@ -7,7 +7,7 @@ import {
|
|
|
Radio, Switch, Row, Col, Slider, Space, RadioChangeEvent,
|
|
Radio, Switch, Row, Col, Slider, Space, RadioChangeEvent,
|
|
|
Spin, message
|
|
Spin, message
|
|
|
} from 'antd';
|
|
} from 'antd';
|
|
|
-import { PlusCircleOutlined, MinusCircleOutlined } from '@ant-design/icons';
|
|
|
|
|
|
|
+import { PlusCircleOutlined, MinusCircleOutlined, ArrowLeftOutlined } from '@ant-design/icons';
|
|
|
import { apis } from '@/apis';
|
|
import { apis } from '@/apis';
|
|
|
import router from '@/router';
|
|
import router from '@/router';
|
|
|
import LocalStorage from '@/LocalStorage';
|
|
import LocalStorage from '@/LocalStorage';
|
|
@@ -503,7 +503,7 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
|
|
|
|
|
<div style={{ display: 'flex', gap: '12px', marginTop: '24px', paddingTop: '24px', borderTop: '1px solid #f0f0f0' }}>
|
|
<div style={{ display: 'flex', gap: '12px', marginTop: '24px', paddingTop: '24px', borderTop: '1px solid #f0f0f0' }}>
|
|
|
<Button
|
|
<Button
|
|
|
- className='btn-secondary'
|
|
|
|
|
|
|
+ className='btn-cancel'
|
|
|
onClick={() => {
|
|
onClick={() => {
|
|
|
router.navigate({ pathname: '/deepseek/questionAnswer' });
|
|
router.navigate({ pathname: '/deepseek/questionAnswer' });
|
|
|
}}
|
|
}}
|
|
@@ -527,16 +527,27 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div style={{ display: step === 2 ? 'block' : 'none' }} className='questionAnswerInfo-content'>
|
|
<div style={{ display: step === 2 ? 'block' : 'none' }} className='questionAnswerInfo-content'>
|
|
|
- <div className='flex-end padding-bottom-10'>
|
|
|
|
|
|
|
+ <div className='flex-between padding-bottom-10'>
|
|
|
<div>
|
|
<div>
|
|
|
<Button
|
|
<Button
|
|
|
- className='btn-secondary'
|
|
|
|
|
|
|
+ className='btn-back'
|
|
|
|
|
+ icon={<ArrowLeftOutlined />}
|
|
|
onClick={() => {
|
|
onClick={() => {
|
|
|
setStep(1);
|
|
setStep(1);
|
|
|
}}
|
|
}}
|
|
|
>
|
|
>
|
|
|
上一步
|
|
上一步
|
|
|
</Button>
|
|
</Button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div style={{ display: 'flex', gap: '12px' }}>
|
|
|
|
|
+ <Button
|
|
|
|
|
+ className='btn-cancel'
|
|
|
|
|
+ onClick={() => {
|
|
|
|
|
+ router.navigate({ pathname: '/deepseek/questionAnswer' });
|
|
|
|
|
+ }}
|
|
|
|
|
+ >
|
|
|
|
|
+ 取消
|
|
|
|
|
+ </Button>
|
|
|
{
|
|
{
|
|
|
createFlag &&
|
|
createFlag &&
|
|
|
<Button
|
|
<Button
|
|
@@ -647,30 +658,30 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
className='textarea-full-width textarea-fixed-height'
|
|
className='textarea-full-width textarea-fixed-height'
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
|
- <Divider plain></Divider>
|
|
|
|
|
<div >
|
|
<div >
|
|
|
<FormItem name='prompt'
|
|
<FormItem name='prompt'
|
|
|
- initialValue={`你是一位知识检索助手,你必须并且只能从我发送的众多知识片段中寻找能够解决用户输入问题的最优答案,并且在执行任务的过程中严格执行规定的要求。
|
|
|
|
|
-
|
|
|
|
|
|
|
+ initialValue={
|
|
|
|
|
+ `你是一位知识检索助手,你必须并且只能从我发送的众多知识片段中寻找能够解决用户输入问题的最优答案,并且在执行任务的过程中严格执行规定的要求。 \n
|
|
|
知识片段如下:
|
|
知识片段如下:
|
|
|
{{知识}}
|
|
{{知识}}
|
|
|
|
|
|
|
|
规定要求:
|
|
规定要求:
|
|
|
-- 找到答案就仅使用知识片段中的原文回答用户的提问;
|
|
|
|
|
-- 找不到答案就用自身知识并且告诉用户该信息不是来自文档;
|
|
|
|
|
|
|
+- 找到答案就仅使用知识片段中的原文回答用户的提问;- 找不到答案就用自身知识并且告诉用户该信息不是来自文档;
|
|
|
- 所引用的文本片段中所包含的示意图占位符必须进行返回,占位符格式参考:【示意图序号_编号】
|
|
- 所引用的文本片段中所包含的示意图占位符必须进行返回,占位符格式参考:【示意图序号_编号】
|
|
|
- - 严禁输出任何知识片段中不存在的示意图占位符;
|
|
|
|
|
- - 输出的内容必须删除其中包含的任何图注、序号等信息。例如:“进入登录页面(图1.1)”需要从文字中删除图序,回复效果为:“进入登录页面”;“如图所示1.1”,回复效果为:“如图所示”;
|
|
|
|
|
-- 格式规范
|
|
|
|
|
- - 文档中会出现包含表格的情况,表格是以图片标识符的形式呈现,表格中缺失数据时候返回空单元格;
|
|
|
|
|
- - 如果需要用到表格中的数据,以代码块语法输出表格中的数据;
|
|
|
|
|
- - 避免使用代码块语法回复信息;
|
|
|
|
|
- - 回复的开头语不要输出诸如:“我想”,“我认为”,“think”等相关语义的文本。
|
|
|
|
|
|
|
+- 严禁输出任何知识片段中不存在的示意图占位符;
|
|
|
|
|
+- 输出的内容必须删除其中包含的任何图注、序号等信息。例如:“进入登录页面(图1.1)”需要从文字中删除图序,回复效果为:“进入登录页面”;“如图所示1.1”,回复效果为:“如图所示”;
|
|
|
|
|
+
|
|
|
|
|
+格式规范:
|
|
|
|
|
+- 文档中会出现包含表格的情况,表格是以图片标识符的形式呈现,表格中缺失数据时候返回空单元格;
|
|
|
|
|
+- 如果需要用到表格中的数据,以代码块语法输出表格中的数据;
|
|
|
|
|
+- 避免使用代码块语法回复信息;
|
|
|
|
|
+- 回复的开头语不要输出诸如:“我想”,“我认为”,“think”等相关语义的文本。
|
|
|
|
|
|
|
|
严格执行规定要求,不要复述问题,直接开始回答。
|
|
严格执行规定要求,不要复述问题,直接开始回答。
|
|
|
|
|
|
|
|
用户输入问题:
|
|
用户输入问题:
|
|
|
-{{用户}}`}
|
|
|
|
|
|
|
+{{用户}}`
|
|
|
|
|
+ }
|
|
|
rules={[{ required: true, message: '提示词不能为空' }]}>
|
|
rules={[{ required: true, message: '提示词不能为空' }]}>
|
|
|
<TextArea
|
|
<TextArea
|
|
|
placeholder="提示词"
|
|
placeholder="提示词"
|