RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
Fix: Bug fixes #9869 (#10600)
chanxe76db6e222a4
diff --git a/web/src/components/chunk-method-dialog/index.tsx b/web/src/components/chunk-method-dialog/index.tsxindex f73680ad86..d8a4d11152 100644--- a/web/src/components/chunk-method-dialog/index.tsx+++ b/web/src/components/chunk-method-dialog/index.tsx@@ -340,7 +340,9 @@ export function ChunkMethodDialog({show={showAutoKeywords(selectedTag) || showExcelToHtml}className="space-y-3">- <EnableTocToggle />+ {selectedTag === DocumentParserType.Naive && (+ <EnableTocToggle />+ )}{showAutoKeywords(selectedTag) && (<><AutoKeywordsFormField></AutoKeywordsFormField>diff --git a/web/src/components/ui/modal/modal.tsx b/web/src/components/ui/modal/modal.tsxindex fff5216b8a..64fb176a10 100644--- a/web/src/components/ui/modal/modal.tsx+++ b/web/src/components/ui/modal/modal.tsx@@ -27,6 +27,7 @@ export interface ModalProps {okText?: ReactNode | string;onOk?: () => void;onCancel?: () => void;+ disabled?: boolean;}export interface ModalType extends FC<ModalProps> {show: typeof modalIns.show;@@ -55,6 +56,7 @@ const Modal: ModalType = ({confirmLoading,cancelText,okText,+ disabled = false,}) => {const sizeClasses = {small: 'max-w-md',@@ -86,7 +88,7 @@ const Modal: ModalType = ({const handleChange = (open: boolean) => {onOpenChange?.(open);console.log('open', open, onOpenChange);- if (open) {+ if (open && !disabled) {onOk?.();}if (!open) {@@ -112,7 +114,7 @@ const Modal: ModalType = ({</button><buttontype="button"- disabled={confirmLoading}+ disabled={confirmLoading || disabled}onClick={() => handleOk()}className="px-2 py-1 bg-primary text-primary-foreground rounded-md hover:bg-primary/90">diff --git a/web/src/locales/zh.ts b/web/src/locales/zh.tsindex ae5656b103..8c5bbf939a 100644--- a/web/src/locales/zh.ts+++ b/web/src/locales/zh.ts@@ -258,7 +258,6 @@ export default {theDocumentBeingParsedCannotBeDeleted: '正在解析的文档不能被删除',},knowledgeConfiguration: {- tocExtraction: '目录增强',tocExtractionTip:'对于已有的chunk生成层级结构的目录信息(每个文件一个目录)。在查询时,激活`目录增强`后,系统会用大模型去判断用户问题和哪些目录项相关,从而找到相关的chunk。',deleteGenerateModalContent: `diff --git a/web/src/pages/dataset/dataset-setting/configuration/common-item.tsx b/web/src/pages/dataset/dataset-setting/configuration/common-item.tsxindex 7e183e22d9..c63309c507 100644--- a/web/src/pages/dataset/dataset-setting/configuration/common-item.tsx+++ b/web/src/pages/dataset/dataset-setting/configuration/common-item.tsx@@ -7,7 +7,6 @@ import {FormMessage,} from '@/components/ui/form';import { Radio } from '@/components/ui/radio';-import { RAGFlowSelect } from '@/components/ui/select';import { Switch } from '@/components/ui/switch';import { useTranslate } from '@/hooks/common-hooks';import { cn } from '@/lib/utils';@@ -46,7 +45,7 @@ export function ChunkMethodItem(props: IProps) {</FormLabel><div className={line === 1 ? 'w-3/4 ' : 'w-full'}><FormControl>- <RAGFlowSelect+ <SelectWithSearch{...field}options={parserList}placeholder={t('chunkMethodPlaceholder')}