Repository navigation
Description
Self Checks
- I have searched for existing issues search for existing issues, including closed ones.
- I confirm that I am using English to submit this report (Language Policy).
- Non-english title submitions will be closed directly ( 非英文标题的提交将会被直接关闭 ) (Language Policy).
- Please do not modify this template :) and fill in all the required fields.
Is your feature request related to a problem?
In the current Go backend on main (commit fe8201db8), two key multimodal ingestion pathways are currently stubbed or disabled, blocking video analysis in knowledge bases and file attachments in Agent webhooks:
-
Video Ingestion Blocked in Parser Dispatch (
internal/ingestion/component/media_dispatch.go#L65-L85):
Uploading video files (.mp4,.mkv,.avi,.mov) into a dataset causes ingestion to fail immediately during the parsing phase:// Video parsing is intentionally not implemented yet: the underlying // video-analysis capability is pending. The previously-shipped path sent a // video_url data URI, but no model driver honors it — OpenAI-compatible // drivers only accept image_url (the block is ignored), and Gemini's // googleMessageParts only accepts text/image_url and silently drops // video_url. Returning an explicit error is safer than silently producing // a description from the prompt text alone. The real implementation must // be provider-specific (OpenAI-compatible: frame extraction -> image_url; // Gemini: raw-bytes inline_data; Qwen: file://). return parser.ParseResult{}, true, fmt.Errorf("Parser: video parsing is not yet supported; underlying video analysis capability is pending")
Furthermore,
internal/ingestion/pipeline/template/ingestion_pipeline_general.jsonomits thevideofile family altogether (only declared iningestion_pipeline_picture.json). -
Agent Webhook Rejects Multipart File Uploads with HTTP 501 (
internal/handler/agent_webhook.go#L45-L55, L225-L235):
External webhooks, automation bots, and integrations attempting to send document, image, or audio attachments to an Agent Canvas trigger fail withHTTP 501 Not Implemented:// multipart/form-data uploads are rejected with HTTP 501 // (ErrWebhookMultipartNotSupported) at parse time. The Python // upload path through canvas.get_files_async depends on // FileService.upload_info which is itself not in the Go port yet. // When FileService.upload_info lands, the 501 branch in Webhook // (line 162-185) becomes the dispatch entry point.
Describe the feature you'd like
1. Provider-Adaptive Video Ingestion Pipeline
- Restore and enhance video parsing in
media_dispatch.go:- OpenAI-Compatible & vLLM: Pass
video_urldata URIs directly to vision-language backends that natively support video tokens (such as Qwen2-VL, Qwen2.5-VL, InternVL via vLLM), or extract temporal keyframes into animage_urlarray for models without native video payload support. - Gemini: Format video chunks using
inline_datawith standard video MIME types (video/mp4, etc.). - Pipeline Templates: Declare the
videofamily iningestion_pipeline_general.jsonso video formats are recognized across all dataset pipeline configurations. - Output Parity: Emit structured chunks (
[{"text": transcript, "doc_type_kwd": "text"}]) matching the text chunking and indexing pipeline.
- OpenAI-Compatible & vLLM: Pass
2. Streaming Agent Webhook Multipart File Handler
- Implement the Go counterpart to
FileService.upload_info:- Parse
multipart/form-datauploads ininternal/handler/agent_webhook.gowithout buffering multi-megabyte payloads in memory. - Stream uploaded files directly into MinIO/S3 object storage under the tenant namespace.
- Register uploaded files in the database and bind file handles into the Agent execution context (
canvas.get_files_asyncparity), enabling downstream agent components (OCR, Doc, Vision, CodeExec) to consume webhook-uploaded files.
- Parse
Describe implementation you've considered
- Video Processing Strategy:
- For small clips (< 20 MB), direct base64
video_urlor Geminiinline_dataminimizes latency and avoids local CGO/FFmpeg binary dependencies. - For larger videos, extract keyframes using lightweight client-side sampling to prevent model server HTTP payload limits.
- For small clips (< 20 MB), direct base64
- Webhook File Streaming:
- Utilize
gin.Context.Request.MultipartReader()for streaming parts directly to MinIO viastorage.PutObjectwith quota and MIME validation.
- Utilize
Documentation, adoption, use case
- Use Cases:
- Ingesting video lectures, meeting recordings, product demos, and surveillance footage into RAGFlow knowledge bases.
- ChatOps, Slack/Discord bots, and enterprise workflow webhooks triggering RAGFlow agents with PDF reports, receipts, or image attachments directly via webhook endpoints.
Additional information
- Affected Files:
internal/ingestion/component/media_dispatch.go:65-85internal/ingestion/pipeline/template/ingestion_pipeline_general.jsoninternal/handler/agent_webhook.go:45-55, 215-235internal/service/(pendingFileService.upload_info)
Activity
zatharox commentedon Nov 25, 2026
Hello RAGFlow maintainers,
I'm interested in contributing to this feature, particularly the Agent Webhook multipart file upload functionality.
I'd like to take ownership of this part, including:
I'm happy to investigate the existing Go implementation, understand the dependencies, and submit a PR with appropriate tests.
Would a maintainer be able to assign this issue to me, or confirm if I can proceed with the implementation?
Thank you!