feat: add video multimodal functionality

This commit is contained in:
DaWesen
2026-04-08 19:52:28 +08:00
committed by lyingbug
parent 2b10cc54de
commit b80bdb1079
20 changed files with 1213 additions and 28 deletions
@@ -0,0 +1,7 @@
-- Migration: 000032_add_video_info_to_chunks (down)
-- Description: Remove video_info column from chunks table.
DO $$ BEGIN RAISE NOTICE '[Migration 000032 down] Removing video_info column from chunks'; END $$;
ALTER TABLE chunks DROP COLUMN IF EXISTS video_info;
DO $$ BEGIN RAISE NOTICE '[Migration 000032 down] video_info column removed successfully'; END $$;
@@ -0,0 +1,10 @@
-- Migration: 000032_add_video_info_to_chunks
-- Description: Add video_info column to chunks table for video multimodal processing.
-- This column stores JSON-serialized VideoInfo struct containing video analysis results.
DO $$ BEGIN RAISE NOTICE '[Migration 000032] Adding video_info column to chunks'; END $$;
ALTER TABLE chunks ADD COLUMN IF NOT EXISTS video_info TEXT;
COMMENT ON COLUMN chunks.video_info IS 'Video information in JSON format: {"url": string, "frame_count": int, "has_vlm_analysis": bool, "has_asr": bool, "video_summary": string, "asr_text": string, "frame_descriptions": string[]}';
DO $$ BEGIN RAISE NOTICE '[Migration 000032] video_info column added successfully'; END $$;