mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-01-29 14:46:35 +08:00
### What problem does this PR solve? Feat: Add TagTable #4367 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -16,11 +16,7 @@ export const AutoKeywordsItem = () => {
|
||||
<Slider max={30} style={{ width: '100%' }} />
|
||||
</Form.Item>
|
||||
</Flex>
|
||||
<Form.Item
|
||||
name={['parser_config', 'auto_keywords']}
|
||||
noStyle
|
||||
initialValue={0}
|
||||
>
|
||||
<Form.Item name={['parser_config', 'auto_keywords']} noStyle>
|
||||
<InputNumber max={30} min={0} />
|
||||
</Form.Item>
|
||||
</Flex>
|
||||
@ -43,11 +39,7 @@ export const AutoQuestionsItem = () => {
|
||||
<Slider max={10} style={{ width: '100%' }} />
|
||||
</Form.Item>
|
||||
</Flex>
|
||||
<Form.Item
|
||||
name={['parser_config', 'auto_questions']}
|
||||
noStyle
|
||||
initialValue={0}
|
||||
>
|
||||
<Form.Item name={['parser_config', 'auto_questions']} noStyle>
|
||||
<InputNumber max={10} min={0} />
|
||||
</Form.Item>
|
||||
</Flex>
|
||||
|
||||
@ -119,7 +119,7 @@ export const useFetchParserListOnMount = (
|
||||
return { parserList: nextParserList, handleChange, selectedTag };
|
||||
};
|
||||
|
||||
const hideAutoKeywords = ['qa', 'table', 'resume', 'knowledge_graph'];
|
||||
const hideAutoKeywords = ['qa', 'table', 'resume', 'knowledge_graph', 'tag'];
|
||||
|
||||
export const useShowAutoKeywords = () => {
|
||||
const showAutoKeywords = useCallback((selectedTag: string) => {
|
||||
|
||||
@ -21,6 +21,7 @@ interface IProps {
|
||||
export function ConfirmDeleteDialog({
|
||||
children,
|
||||
title,
|
||||
onOk,
|
||||
}: IProps & PropsWithChildren) {
|
||||
const { t } = useTranslation();
|
||||
|
||||
@ -39,7 +40,10 @@ export function ConfirmDeleteDialog({
|
||||
</AlertDialogHeader>
|
||||
<AlertDialogFooter>
|
||||
<AlertDialogCancel>{t('common.cancel')}</AlertDialogCancel>
|
||||
<AlertDialogAction className="bg-colors-background-functional-solid-danger text--colors-text-neutral-strong">
|
||||
<AlertDialogAction
|
||||
className="bg-colors-background-functional-solid-danger text--colors-text-neutral-strong"
|
||||
onClick={onOk}
|
||||
>
|
||||
<Trash2 />
|
||||
{t('common.ok')}
|
||||
</AlertDialogAction>
|
||||
|
||||
@ -25,7 +25,6 @@ const MaxTokenNumber = ({ initialValue = 128, max = 2048 }: IProps) => {
|
||||
<Form.Item
|
||||
name={['parser_config', 'chunk_token_num']}
|
||||
noStyle
|
||||
initialValue={initialValue}
|
||||
rules={[{ required: true, message: t('chunkTokenNumberMessage') }]}
|
||||
>
|
||||
<InputNumber max={max} min={0} />
|
||||
|
||||
@ -17,12 +17,7 @@ const PageRank = () => {
|
||||
<Slider max={100} style={{ width: '100%' }} />
|
||||
</Form.Item>
|
||||
</Flex>
|
||||
<Form.Item
|
||||
name={['pagerank']}
|
||||
noStyle
|
||||
initialValue={0}
|
||||
rules={[{ required: true }]}
|
||||
>
|
||||
<Form.Item name={['pagerank']} noStyle rules={[{ required: true }]}>
|
||||
<InputNumber max={100} min={0} />
|
||||
</Form.Item>
|
||||
</Flex>
|
||||
|
||||
@ -18,6 +18,8 @@ export const excludedParseMethods = [
|
||||
'one',
|
||||
'picture',
|
||||
'knowledge_graph',
|
||||
'qa',
|
||||
'tag',
|
||||
];
|
||||
|
||||
export const showRaptorParseConfiguration = (parserId: string) => {
|
||||
|
||||
Reference in New Issue
Block a user