mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-16 17:25:52 +08:00
### What problem does this PR solve? Feat: Add the MessageHistoryWindowSizeItem to RewriteQuestionForm #1739 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
parent
3805621564
commit
39be08c83d
@ -426,6 +426,7 @@ export const initialGenerateValues = {
|
|||||||
|
|
||||||
export const initialRewriteQuestionValues = {
|
export const initialRewriteQuestionValues = {
|
||||||
...initialLlmBaseValues,
|
...initialLlmBaseValues,
|
||||||
|
message_history_window_size: 6,
|
||||||
};
|
};
|
||||||
|
|
||||||
export const initialRelevantValues = {
|
export const initialRelevantValues = {
|
||||||
@ -445,7 +446,7 @@ export const initialMessageValues = {
|
|||||||
|
|
||||||
export const initialKeywordExtractValues = {
|
export const initialKeywordExtractValues = {
|
||||||
...initialLlmBaseValues,
|
...initialLlmBaseValues,
|
||||||
top_n: 1,
|
top_n: 3,
|
||||||
...initialQueryBaseValues,
|
...initialQueryBaseValues,
|
||||||
};
|
};
|
||||||
export const initialDuckValues = {
|
export const initialDuckValues = {
|
||||||
|
@ -24,7 +24,7 @@ const KeywordExtractForm = ({ onValuesChange, form, node }: IOperatorForm) => {
|
|||||||
>
|
>
|
||||||
<LLMSelect></LLMSelect>
|
<LLMSelect></LLMSelect>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<TopNItem initialValue={1}></TopNItem>
|
<TopNItem initialValue={3}></TopNItem>
|
||||||
</Form>
|
</Form>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import LLMSelect from '@/components/llm-select';
|
import LLMSelect from '@/components/llm-select';
|
||||||
|
import MessageHistoryWindowSizeItem from '@/components/message-history-window-size-item';
|
||||||
import { useTranslate } from '@/hooks/common-hooks';
|
import { useTranslate } from '@/hooks/common-hooks';
|
||||||
import { Form } from 'antd';
|
import { Form } from 'antd';
|
||||||
import { IOperatorForm } from '../../interface';
|
import { IOperatorForm } from '../../interface';
|
||||||
@ -9,8 +10,8 @@ const RewriteQuestionForm = ({ onValuesChange, form }: IOperatorForm) => {
|
|||||||
return (
|
return (
|
||||||
<Form
|
<Form
|
||||||
name="basic"
|
name="basic"
|
||||||
labelCol={{ span: 4 }}
|
labelCol={{ span: 8 }}
|
||||||
wrapperCol={{ span: 20 }}
|
wrapperCol={{ span: 16 }}
|
||||||
onValuesChange={onValuesChange}
|
onValuesChange={onValuesChange}
|
||||||
autoComplete="off"
|
autoComplete="off"
|
||||||
form={form}
|
form={form}
|
||||||
@ -22,6 +23,9 @@ const RewriteQuestionForm = ({ onValuesChange, form }: IOperatorForm) => {
|
|||||||
>
|
>
|
||||||
<LLMSelect></LLMSelect>
|
<LLMSelect></LLMSelect>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
<MessageHistoryWindowSizeItem
|
||||||
|
initialValue={6}
|
||||||
|
></MessageHistoryWindowSizeItem>
|
||||||
</Form>
|
</Form>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user