Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Feat: Add suffix to the parser operator's video configuration #9869 (#10741)

balibabu494f84cd6983
diff --git a/web/src/pages/agent/chat/chat-sheet.tsx b/web/src/pages/agent/chat/chat-sheet.tsx
index b994c6cd35..d007dfb74d 100644
--- a/web/src/pages/agent/chat/chat-sheet.tsx
+++ b/web/src/pages/agent/chat/chat-sheet.tsx
@@ -2,10 +2,13 @@ import { Sheet, SheetContent, SheetTitle } from '@/components/ui/sheet';
import { IModalProps } from '@/interfaces/common';
import { cn } from '@/lib/utils';
import { useTranslation } from 'react-i18next';
+import { useIsTaskMode } from '../hooks/use-get-begin-query';
import AgentChatBox from './box';
export function ChatSheet({ hideModal }: IModalProps<any>) {
const { t } = useTranslation();
+ const isTaskMode = useIsTaskMode();
+
return (
<Sheet open modal={false} onOpenChange={hideModal}>
<SheetContent
@@ -13,7 +16,9 @@ export function ChatSheet({ hideModal }: IModalProps<any>) {
onInteractOutside={(e) => e.preventDefault()}
>
<SheetTitle className="hidden"></SheetTitle>
- <div className="pl-5 pt-2">{t('chat.chat')}</div>
+ <div className="pl-5 pt-2">
+ {t(isTaskMode ? 'flow.task' : 'chat.chat')}
+ </div>
<AgentChatBox></AgentChatBox>
</SheetContent>
</Sheet>
diff --git a/web/src/pages/agent/constant/pipeline.tsx b/web/src/pages/agent/constant/pipeline.tsx
index 78d4b3ac99..d45eabd3f1 100644
--- a/web/src/pages/agent/constant/pipeline.tsx
+++ b/web/src/pages/agent/constant/pipeline.tsx
@@ -244,7 +244,7 @@ export const FileTypeSuffixMap = {
[FileType.TextMarkdown]: ['md', 'markdown', 'mdx', 'txt'],
[FileType.Docx]: ['doc', 'docx'],
[FileType.PowerPoint]: ['pptx'],
- [FileType.Video]: [],
+ [FileType.Video]: ['mp4', 'avi', 'mkv'],
[FileType.Audio]: [
'da',
'wave',