Repository navigation
fix(video): preserve frame embeddings and clean up deleted frames - #1364
Merged
Shubhamsaboo merged 1 commit intoDec 2, 2026
Merged
Conversation
… frames Group the video moment finder ingestion and deletion correctness fixes. Request one embedding per frame and validate response cardinality before writing the index; remove extracted frames only after successful index deletion and report unknown videos accurately. Exercise normal imports, Gemini HTTP serialization and temporary Chroma storage in a single offline unittest suite.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Consolidates #1358 and #1359 into one
multimodal_video_moment_finderPR, following the per-app review request.Two correctness problems affect the video's stored frames:
Changes
Content, reuse the batch helper during ingestion, and require one returned vector per frame before writing Chroma rows. This follows the documented embedding aggregation contract.unittestfile with a normalfrom video_store import VideoStoreimport.Validation
cd advanced_llm_apps/multimodal_video_moment_finder/backend python -m unittest -v test_video_store14c5f8ff: 4 failing cases, 3 passing controls. The ingestion case reaches real Chroma and fails withids: 7, embeddings: 2.git diff --checkpasses, and published files match the locally tested files.The change is limited to
video_store.pyand its consolidated test file.