feat: Rule 3 moment chunks — 10s windows with 1-2 key frames

- Add ChunkType::Moment to types.rs
- Add moment_interval to FileProfile (configurable, default 10s)
- Create rule3_moment.rs: reads trace_profile.json, groups by time window,
  selects 1-2 diverse key frames using Jaccard similarity on VLM text
- Embed moment chunks into Qdrant using trace VLM embeddings
- Wire into worker: triggers after VLM completes, blocks job completion
- Add moment_chunks progress stage (weight: 0.01)
This commit is contained in:
Accusys
2026-08-26 02:37:47 +08:00
parent 8732c3e0a4
commit 20f5974b52
7 changed files with 440 additions and 6 deletions
+5
View File
@@ -45,6 +45,8 @@ pub struct FileProfile {
pub proxy_path: Option<String>, // 720p proxy path for 1080p+ videos
pub audio_track: Option<String>, // audio track classification: no_audio/silent_audio/music_only/speech_only/speech_with_music
pub face_filter: Option<FaceFilterSettings>,
#[serde(default)]
pub moment_interval: Option<f64>, // seconds per moment window, default 10.0
}
#[derive(Debug, Clone, Serialize, Deserialize)]
@@ -149,6 +151,7 @@ impl FileProfile {
proxy_path: None,
audio_track: None,
face_filter: None,
moment_interval: None,
}
}
@@ -188,6 +191,7 @@ impl FileProfile {
proxy_path: None,
audio_track: None,
face_filter: None,
moment_interval: None,
}
}
@@ -317,6 +321,7 @@ impl FileProfile {
proxy_path: None,
audio_track: None,
face_filter: None,
moment_interval: None,
}
}