|
|
@@ -128,7 +128,7 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
const [pageLoading, setPageLoading] = React.useState(false);
|
|
|
const [modelList, setModelList] = React.useState<ModelList>([]);
|
|
|
const [knowledgeList, setKnowledgeList] = React.useState<KnowledgeList>([]);
|
|
|
- const [isVisible, setIsVisible] = React.useState(false);
|
|
|
+ const [isVisible, setIsVisible] = React.useState(true);
|
|
|
const [isVisibleCus, setIsVisibleCus] = React.useState(false);
|
|
|
const [isVisibleSlice, setIsVisibleSlice] = React.useState(false);
|
|
|
const [isVisibleRerank, setIsVisibleRerank] = React.useState(false);
|
|
|
@@ -721,8 +721,9 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
form={form}
|
|
|
layout='vertical'
|
|
|
initialValues={{
|
|
|
- isDeepThink: false,
|
|
|
- max_token: 1024
|
|
|
+ isDeepThink: 'Y',
|
|
|
+ max_token: 4096,
|
|
|
+ param_desc:'strict',
|
|
|
}}
|
|
|
>
|
|
|
<div style={{ display: step === 1 ? 'block' : 'none' }} className='questionAnswerInfo-content'>
|
|
|
@@ -995,7 +996,7 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
<div className='flex-center-top'>
|
|
|
欢迎使用 {name || '问答应用'}
|
|
|
</div>
|
|
|
- <div className='flex-center padding-top-20'>
|
|
|
+ <div className='flex-start pl-20 padding-top-20'>
|
|
|
<FormItem
|
|
|
label='引用知识库'
|
|
|
name='knowledge_ids'
|
|
|
@@ -1017,7 +1018,7 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
</Select>
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
- <div className='flex-center'>
|
|
|
+ <div className='flex-start pl-20'>
|
|
|
<FormItem
|
|
|
label='调用模型'
|
|
|
name="model"
|
|
|
@@ -1040,7 +1041,7 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
- <div className='flex-center' style={{
|
|
|
+ <div className='flex-start pl-20' style={{
|
|
|
display: isDeepThinkVisible ? 'flex' : 'none'
|
|
|
}}>
|
|
|
<FormItem
|
|
|
@@ -1053,7 +1054,7 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
</Radio.Group>
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
- <div className='flex-center'>
|
|
|
+ <div className='flex-start pl-20'>
|
|
|
<FormItem
|
|
|
label='max token'
|
|
|
name='max_token'
|
|
|
@@ -1066,7 +1067,7 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
|
|
|
{
|
|
|
!isVisible &&
|
|
|
- <div className='flex-center'>
|
|
|
+ <div className='flex-start pl-20'>
|
|
|
<a onClick={() => {
|
|
|
setIsVisible(!isVisible);
|
|
|
}} className='link-more-settings'>
|
|
|
@@ -1080,7 +1081,7 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
<div style={{ display: isVisible ? 'block' : 'none', paddingTop: '20px' }}>
|
|
|
{isVisibleCus &&
|
|
|
<Space style={{ width: '100%' }} direction="vertical">
|
|
|
- <div className='flex-center'>
|
|
|
+ <div className='flex-start pl-20'>
|
|
|
<FormItem
|
|
|
label='Top-p'
|
|
|
name='topP'
|
|
|
@@ -1089,7 +1090,7 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
<TopPDecimalStep />
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
- <div className='flex-center'>
|
|
|
+ <div className='flex-start pl-20'>
|
|
|
<FormItem
|
|
|
label='Temperature'
|
|
|
name='temperature'
|
|
|
@@ -1103,9 +1104,9 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
|
|
|
<div style={{
|
|
|
display: 'flex',
|
|
|
- justifyContent: 'center',
|
|
|
+ justifyContent: 'flex-start',
|
|
|
alignItems: 'center'
|
|
|
- }}>
|
|
|
+ }} className='pl-20'>
|
|
|
<FormItem
|
|
|
label='回答风格'
|
|
|
name='param_desc'
|
|
|
@@ -1134,9 +1135,9 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
</div>
|
|
|
<div style={{
|
|
|
display: 'flex',
|
|
|
- justifyContent: 'center',
|
|
|
+ justifyContent: 'flex-start',
|
|
|
alignItems: 'center'
|
|
|
- }}>
|
|
|
+ }} className='pl-20'>
|
|
|
<FormItem
|
|
|
label='展示引用知识'
|
|
|
name='show_recall_result'
|
|
|
@@ -1146,9 +1147,9 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
</div>
|
|
|
<div style={{
|
|
|
display: 'flex',
|
|
|
- justifyContent: 'center',
|
|
|
+ justifyContent: 'flex-start',
|
|
|
alignItems: 'center'
|
|
|
- }}>
|
|
|
+ }} className='pl-20'>
|
|
|
<FormItem
|
|
|
label='召回方式'
|
|
|
name='recall_method'
|
|
|
@@ -1167,16 +1168,16 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
</div>
|
|
|
<div style={{
|
|
|
display: 'flex',
|
|
|
- justifyContent: 'center',
|
|
|
+ justifyContent: 'flex-start',
|
|
|
alignItems: 'center'
|
|
|
- }}>
|
|
|
+ }} className='pl-20'>
|
|
|
<div className='section-title'>重排方式</div>
|
|
|
</div>
|
|
|
<div style={{
|
|
|
display: 'flex',
|
|
|
- justifyContent: 'center',
|
|
|
+ justifyContent: 'flex-start',
|
|
|
alignItems: 'center'
|
|
|
- }}>
|
|
|
+ }} className='pl-20'>
|
|
|
<FormItem
|
|
|
label='Rerank模型'
|
|
|
name='rerank_status'
|
|
|
@@ -1189,9 +1190,9 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
{isVisibleRerank &&
|
|
|
<div style={{
|
|
|
display: 'flex',
|
|
|
- justifyContent: 'center',
|
|
|
+ justifyContent: 'flex-start',
|
|
|
alignItems: 'center'
|
|
|
- }}>
|
|
|
+ }} className='pl-20'>
|
|
|
<FormItem
|
|
|
label='模型选择'
|
|
|
name='rerank_model_name'
|
|
|
@@ -1208,9 +1209,9 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
}
|
|
|
<div style={{
|
|
|
display: 'flex',
|
|
|
- justifyContent: 'center',
|
|
|
+ justifyContent: 'flex-start',
|
|
|
alignItems: 'center'
|
|
|
- }}>
|
|
|
+ }} className='pl-20'>
|
|
|
<FormItem
|
|
|
label='召回切片数量'
|
|
|
name='slice_config_type'
|
|
|
@@ -1229,9 +1230,9 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
{isVisibleSlice &&
|
|
|
<div style={{
|
|
|
display: 'flex',
|
|
|
- justifyContent: 'center',
|
|
|
+ justifyContent: 'flex-start',
|
|
|
alignItems: 'center'
|
|
|
- }}>
|
|
|
+ }} className='pl-20'>
|
|
|
<FormItem
|
|
|
label='召回切片数'
|
|
|
name='slice_count'
|
|
|
@@ -1245,9 +1246,9 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
}
|
|
|
<div style={{
|
|
|
display: 'flex',
|
|
|
- justifyContent: 'center',
|
|
|
+ justifyContent: 'flex-start',
|
|
|
alignItems: 'center'
|
|
|
- }}>
|
|
|
+ }} className='pl-20'>
|
|
|
<FormItem
|
|
|
label='召回切片拼接方式'
|
|
|
name='recall_slice_splicing_method'
|