feat(search): query-relevance rerank, list answers, multi-round latency guard#87
Open
us wants to merge 1 commit into
Open
feat(search): query-relevance rerank, list answers, multi-round latency guard#87us wants to merge 1 commit into
us wants to merge 1 commit into
Conversation
…cy guard
Fix the "best pizza in belgrade" failure (geo-wrong sources, no list)
deployment-agnostically — inject NO geo/country signal, since the engine
is self-hosted in arbitrary regions. Rank on the query's own tokens.
All gated, default-off (byte-identical until flipped post-benchmark):
- rerank_relevance: a max-coverage gate drops partial-match homonyms (a
"pizza in REDMOND" row, coverage 1/2) once a full-match row ("pizza …
belgrade", 2/2) is present. Degrade-safe — never empties a non-empty pool.
- expand_query/scout_followups: always retain place names in every rewrite
so query expansion can't strip the geo qualifier.
- answer_list_format + is_list_intent: ranked-list answers for "best/top X
in Y" queries; cite_sources moat and abstention rule preserved.
- multi_round deadline budget: skip the extra scout round when under 20s of
the request deadline remains, capping worst-case latency.
Tests: new rerank relevance-gate, is_list_intent, and prompt-swap cases;
the frozen 56-query rerank benchmark is unchanged.
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.
No description provided.