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
+9 -1
View File
@@ -95,7 +95,15 @@ impl PipelineProgress {
// VLM Summary (5%)
PipelineStage {
name: "vlm_summary".into(),
weight: 0.05,
weight: 0.04,
progress: 0.0,
status: "pending".into(),
detail: None,
},
// Rule 3 Moment Chunks (1%)
PipelineStage {
name: "moment_chunks".into(),
weight: 0.01,
progress: 0.0,
status: "pending".into(),
detail: None,