Repository navigation
fix(multimodal-rag): preserve ingestion state and clean up requests - #1366
Merged
Shubhamsaboo merged 1 commit intoDec 2, 2026
Merged
Shubhamsaboo merged 1 commit into
Shubhamsaboo merged 1 commit into
Conversation
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.
Problem
This groups the multimodal_agentic_rag correctness fixes from #1334, #1335 and #1336 into one app-scoped PR, following the consolidation request in #1361 (comment).
A text ingestion failure currently leaves a source and any previously embedded chunks in the store, even though the request failed. Each answer request also leaves its private ADK session behind, and the upload handler reads the whole file before applying its existing size limit.
Changes
finally, preserving success, model errors and cancellation while leaving unrelated sessions intact.The change touches two production files and one 136-line standard
unittestfile. Tests import the real modules normally and use real ADK sessions, SDK event types and FastAPI uploads; external embedding/model execution is replaced at those boundaries.Validation
cd rag_tutorials/multimodal_agentic_rag/backend python -m unittest test_request_correctness -vpip checkpasses.mainplus these regressions fails in all three areas (7 failing assertions/subtests).git diff --checkpasses.The closed individual PRs remain closed; this PR is their consolidated replacement.