mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Feat: The default value of the parser operator's Video output format is set to text #9869 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -49,7 +49,7 @@ export enum PptOutputFormat {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export enum VideoOutputFormat {
|
export enum VideoOutputFormat {
|
||||||
Json = 'json',
|
Text = 'text',
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum AudioOutputFormat {
|
export enum AudioOutputFormat {
|
||||||
@ -76,7 +76,7 @@ export const InitialOutputFormatMap = {
|
|||||||
[FileType.TextMarkdown]: TextMarkdownOutputFormat.Text,
|
[FileType.TextMarkdown]: TextMarkdownOutputFormat.Text,
|
||||||
[FileType.Docx]: DocxOutputFormat.Json,
|
[FileType.Docx]: DocxOutputFormat.Json,
|
||||||
[FileType.PowerPoint]: PptOutputFormat.Json,
|
[FileType.PowerPoint]: PptOutputFormat.Json,
|
||||||
[FileType.Video]: VideoOutputFormat.Json,
|
[FileType.Video]: VideoOutputFormat.Text,
|
||||||
[FileType.Audio]: AudioOutputFormat.Text,
|
[FileType.Audio]: AudioOutputFormat.Text,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -28,6 +28,7 @@ import {
|
|||||||
} from '@/components/ui/breadcrumb';
|
} from '@/components/ui/breadcrumb';
|
||||||
import { Button } from '@/components/ui/button';
|
import { Button } from '@/components/ui/button';
|
||||||
import { Modal } from '@/components/ui/modal/modal';
|
import { Modal } from '@/components/ui/modal/modal';
|
||||||
|
import { AgentCategory } from '@/constants/agent';
|
||||||
import { Images } from '@/constants/common';
|
import { Images } from '@/constants/common';
|
||||||
import { useNavigatePage } from '@/hooks/logic-hooks/navigate-hooks';
|
import { useNavigatePage } from '@/hooks/logic-hooks/navigate-hooks';
|
||||||
import { useGetKnowledgeSearchParams } from '@/hooks/route-hook';
|
import { useGetKnowledgeSearchParams } from '@/hooks/route-hook';
|
||||||
@ -178,8 +179,8 @@ const Chunk = () => {
|
|||||||
if (knowledgeId) {
|
if (knowledgeId) {
|
||||||
navigateToDatasetOverview(knowledgeId)();
|
navigateToDatasetOverview(knowledgeId)();
|
||||||
}
|
}
|
||||||
if (agentId) {
|
if (isAgent) {
|
||||||
navigateToAgent(agentId)();
|
navigateToAgent(agentId, AgentCategory.DataflowCanvas)();
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user