Route bulk prediction through the versioned serving snapshot - #1025
Merged
Userunknown84 merged 1 commit intoJul 31, 2026
Merged
Conversation
|
@pavsoss is attempting to deploy a commit to the Aditya Sharma's projects Team on Vercel. A member of the Team first needs to authorize it. |
Userunknown84
approved these changes
Jul 31, 2026
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.
Summary
Bulk prediction now scores an uploaded file against a single, coherent serving snapshot (model + vectorizer + label encoder) captured at the start of the request, so a concurrent model reload can never score part of a file with a mismatched set. Results carry the serving model version.
Behaviour
skippedlist with a stable typed reason, while every valid row still returns its prediction.envelope) and a per-row length cap (over-length rows are skipped, not fatal).
model_versionfield on the JSON body and a matching column plus header on the CSV export — so consumers can tie predictions to the exact model that produced them.Existing response fields are preserved; the new fields are additive.
Test plan
Regression coverage for mixed valid/invalid uploads (valid rows returned with the skip list populated), row-cap enforcement as a typed error, and version stamping on both the JSON and CSV responses.
Part 1/2 #1021