Repository navigation
server : support typed content input for RERANK endpoint - #29625
timothywang21 wants to merge 3 commits into
Conversation
|
Pinging @ngxson |
|
/bot review |
This comment was marked as outdated.
This comment was marked as outdated.
|
/bot review |
Automated code reviewNote: the previous automated review run failed with a 503 (diff fetch error), so no findings were recorded - this is the first substantive review of the full diff. Review of PR #29625 (commit eb30d6a)Overall the approach is sound: extracting Blocking (correctness)(point 1) Will slow the review(point 2) (point 3) Comment/whitespace style in
(point 4) Design consistency worth being ready to defend: the embeddings endpoint (your own #29556) accepts multimodal input via the OAI content array ( Nits(point 5) (point 6) (point 7) The mmproj check only fires inside (point 8) (point 9) README says the TEI format is "text-only", but the code happily accepts image objects with (point 10) The (point 11) The README diff adds a stray extra blank line in the Checked and OK
This review was generated automatically by pi coding agent using |
|
@ngxson I updated the PR with the bot's proposed fixes. |
There was a problem hiding this comment.
reduce the docs, just enough to mention that it's the same input format as /embeddings endpoint
There was a problem hiding this comment.
I trimmed the README but I want to clarify that the rerank endpoint does not have the same input format as the /embeddings endpoint. Embeddings is OpenAI-format while Rerank is Jina/TEI. There is no OpenAI rerank format.
|
/bot review |
Automated code reviewFollow-up review of PR #29625 (commit 5993b5b, delta since eb30d6a)I reviewed the fix commit against the findings from the previous review. All blocking and "will slow the review" points were addressed correctly. Findings on the delta: Fixes verified(point 1) The new guard in (point 2) The (point 3, 5, 8, 9, 11) Comment rewrites, the condition rewrite, Remaining nits (carried over, non-blocking)(point 3) The (point 4) The mmproj check still fires only inside (point 5) Note for completeness, not a demand: a corrupt image that passes Checked and OK
No blocking findings remain on the delta. This review was generated automatically by pi coding agent using |
5993b5b to
fdea8e5
Compare
Assisted-by: Opencode/Qwen3.8 27B
- reject multimodal rerank input when the model has no rerank chat template (images were silently dropped) - translate handle_media download/base64 failures to 400 instead of 500 - reject negative top_n with 400 instead of letting resize throw - fix comment typos, redundant comments, indentation and trailing whitespace - README: document that TEI input accepts the same shape as Jina; drop stray blank line Assisted-by: opencode
fdea8e5 to
4e40dd6
Compare
|
The build failed because of a rebase semantic break. The is_stateless_task check in my code was superseded by #30498. I removed the redundant prompt clear check. The CI should be successful now. |
Overview
Currently, the RERANK endpoint does not support multi-modality. This PR adds that functionality. Targets Qwen 3-VL Rerank model.
NOTE: Rerank endpoint is not OpenAI API but rather JINA/TEI format.
Builds on #28876, and #29556
Code Changes
Additional information
This is the final PR that allows for full multimodal rerank and embedding functionality which means Qwen 3VL Embedding and Rerank models can be fully utilized.
From #18665 (comment)
Requirements