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: ingestion pipeline (#13012)
Magicbook110875b2d482e2b0
diff --git a/rag/flow/file.py b/rag/flow/file.pyindex 75ec211eb1..f35f3d2114 100644--- a/rag/flow/file.py+++ b/rag/flow/file.py@@ -42,7 +42,7 @@ class File(ProcessBase):#self.set_output("blob", STORAGE_IMPL.get(b, n))self.set_output("name", doc.name)else:- file = kwargs.get("file")+ file = kwargs.get("file")[0]self.set_output("name", file["name"])self.set_output("file", file)#self.set_output("blob", FileService.get_blob(file["created_by"], file["id"]))diff --git a/web/src/pages/agent/debug-content/uploader.tsx b/web/src/pages/agent/debug-content/uploader.tsxindex b0918bf257..9dddb90def 100644--- a/web/src/pages/agent/debug-content/uploader.tsx+++ b/web/src/pages/agent/debug-content/uploader.tsx@@ -21,11 +21,13 @@ import { toast } from 'sonner';type FileUploadDirectUploadProps = {value: Record<string, any> | Record<string, any>[];onChange(value: Record<string, any>[]): void;+ maxFiles?: number;};export function FileUploadDirectUpload({value,onChange,+ maxFiles,}: FileUploadDirectUploadProps) {const [files, setFiles] = React.useState<File[]>([]);const uploadedFilesRef = React.useRef<Record<string, any>[]>(@@ -99,9 +101,10 @@ export function FileUploadDirectUpload({onValueChange={handleFilesChange}onUpload={onUpload}onFileReject={onFileReject}- maxFiles={5}+ // TODO: DEFALUT to 5 / 1 for params+ maxFiles={(maxFiles ?? 5) as number}className="w-full"- multiple={true}+ multiple={!maxFiles || !!(maxFiles && maxFiles > 1)}><FileUploadDropzone><div className="flex flex-col items-center gap-1 text-center">@@ -110,7 +113,7 @@ export function FileUploadDirectUpload({</div><p className="font-medium text-sm">Drag & drop files here</p><p className="text-muted-foreground text-xs">- Or click to browse (max 5 files)+ Or click to browse (max {(maxFiles ?? 5) as number} files)</p></div><FileUploadTrigger asChild>diff --git a/web/src/pages/agent/pipeline-run-sheet/uploader.tsx b/web/src/pages/agent/pipeline-run-sheet/uploader.tsxindex 4670fd2f4f..0af7e00da3 100644--- a/web/src/pages/agent/pipeline-run-sheet/uploader.tsx+++ b/web/src/pages/agent/pipeline-run-sheet/uploader.tsx@@ -37,6 +37,7 @@ export function UploaderForm({ ok, loading }: UploaderFormProps) {<FileUploadDirectUploadvalue={field.value}onChange={field.onChange}+ maxFiles={1}></FileUploadDirectUpload>);}}