Repository navigation
Conversation
PaddleX's replies carry a logId that is a UUID v4 when the client sends none, and the benchmark receipt already builds one for its run id. The builder moves to ids.zig as uuid4 beside the other id helpers, and runId calls it, so both callers share one source.
PaddleX's serving clients post JSON with a base64 file and read prunedResult and a visualisation, so POST /ocr now answers JSON bodies in PaddleX's envelope: fields converted as its pydantic models convert them, rec_* lines filtered by textRecScoreThresh, integer polygons rounded half to even, word boxes on request, and inputImage and ocrImage with each polygon outlined under the shared image budget. A PDF is read to the page budget as PaddleX reads its first max_num_input_imgs pages, with dataInfo.numPages still the document's page count so a client sees the cut; detector knobs it cannot apply are refused, and file URLs share the Mistral route's fetch.
The API guide adds PaddleX to the /ocr contract choice: JSON bodies, its 422 failures and envelope, PaddleX file URLs, the reading of a PDF to the page budget with a link to the PaddleX page that defines the cut, visualisations in the image budget and their libjpeg-turbo need, word boxes, and the PaddleX section with its fields, key order and dataInfo, whose numPages is the document's page count while pages lists the pages read; the changelog stays with the maintainer.
Owner
Author
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.
CI for a landing train: #2575 stacked on main in that order. Nothing merges from this PR: each PR above lands on its own once this tip is green, and this PR is then closed.