Expose reranker score in MCP/REST explain output - #752
Open
Kyzcreig wants to merge 1 commit into
Open
Conversation
Author
|
Hi! This PR has been open for about 37 days and hasn't had a look from anyone yet. It's not a draft and currently shows as mergeable, so it should be ready for a first pass whenever someone has a moment. No decision needed from me right now — just flagging it for visibility so it doesn't keep sitting in the queue. Happy to rebase, split it up, or add more context if that would make reviewing easier. Thanks! |
|
Dear tobi/qmd,
We would like to acknowledge that we have received your request and a ticket has been created.
A support representative will be reviewing your request and will send you a personal response.(usually within 24-48 hours).
Thank you for your patience.
…On Thu, Aug 06 2026, at 11:49 PM, tobi/qmd ***@***.***> wrote:
Kyzcreig left a comment (tobi/qmd#752) (#752 (comment))
Hi! This PR has been open for about 37 days and hasn't had a look from anyone yet. It's not a draft and currently shows as mergeable, so it should be ready for a first pass whenever someone has a moment.
No decision needed from me right now — just flagging it for visibility so it doesn't keep sitting in the queue. Happy to rebase, split it up, or add more context if that would make reviewing easier. Thanks!
—
Reply to this email directly, view it on GitHub, or (#752?email_source=notifications&email_token=BRF3HG4Y4SJALPZ5EPIFUB35IUKSPA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMRRGAYDKOBUGM3KM4TFMFZW63VKON2WE43DOJUWEZLEUVSXMZLOOSWGM33PORSXEX3DNRUWG2Y#issuecomment-5210058436) unsubscribe. (https://github.com/notifications/unsubscribe-auth/BRF3HG7MPDKIRBHW3XDWQWT5IUKSPAVCNFSNUABGKJSXA33TNF2G64TZHMYTCMJSGM3DKMZQGE5US43TOVSTWNBXHAYDKOBVHAYTHILWAI)
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and (https://github.com/notifications/mobile/ios/BRF3HGZIQWOPFOMA4446FRL5IUKSPA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMRRGAYDKOBUGM3KM4TFMFZW63VKON2WE43DOJUWEZLEUVSXMZLOOSVGM33PORSXEX3JN5ZQ) Android. Download it today! (https://github.com/notifications/mobile/android/BRF3HGZ2IB7CU4Z42LGXCB35IUKSPA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMRRGAYDKOBUGM3KM4TFMFZW63VKON2WE43DOJUWEZLEUVSXMZLOOSXGM33PORSXEX3BNZSHE33JMQ)
You are receiving this because you are subscribed to this thread. Message ID: <tobi/qmd/pull/752/c5210058436 @ github . com> [
{
***@***.***": "http://schema.org",
***@***.***": "EmailMessage",
"potentialAction": {
***@***.***": "ViewAction",
"target": "#752?email_source=notifications\u0026email_token=BRF3HG64TW3C2S2ISZVO3YL5IUKSPA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMRRGAYDKOBUGM3KM4TFMFZW63VKON2WE43DOJUWEZLEUVSXMZLOOSVWO3LBNFWF6Y3MNFRWW#issuecomment-5210058436",
"url": "#752?email_source=notifications\u0026email_token=BRF3HG64TW3C2S2ISZVO3YL5IUKSPA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMRRGAYDKOBUGM3KM4TFMFZW63VKON2WE43DOJUWEZLEUVSXMZLOOSVWO3LBNFWF6Y3MNFRWW#issuecomment-5210058436",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
***@***.***": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]
|
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
explain: truesupport to the MCPquerytool and HTTP REST/query//searchpath.rerankScoreper result when explain output is requested.explain, norerankScoreunlessexplain: trueis supplied.nullinstead of exposing0as a semantic relevance score.Why
QMD already computes a pure semantic reranker score inside
HybridQueryExplain.rerankScore, but callers at the MCP/HTTP boundary only receive the blended displayscore. That blended score includes RRF/position signal, so it is useful for ranking but not for applying a semantic relevance floor.This exposes the existing pure reranker signal without changing the default response shape.
Test plan
bun installbun run test:typesCI=true bunx vitest run test/mcp.test.ts --reporter=verbose --testTimeout 60000bun run buildNODE_NO_WARNINGS=1 bun run test:unitNote:
bun run test:unitwithoutNODE_NO_WARNINGS=1failed locally only on pre-existingtest/cli.test.tsstderr-empty assertions due to Node DEP0205module.register()deprecation warnings; rerunning with warnings suppressed produced883 pass / 80 skip / 0 fail.