Research leftover questions, and open pages that actually answer - #48
Merged
Conversation
A factual question no skill claimed was left to the 0.8B model, which answered from training data. Routing now researches those — capital of France, why the sky is blue — and still leaves greetings like wie geht's dir alone. The tool itself now searches Wikipedia alongside the web, ranks by snippet, replaces a blocked page from the remaining hits, and treats Bundeskanzler/Bundeskanzlers as one term. Co-authored-by: Sebastian <devbadya@users.noreply.github.com>
A 0.8B model forwards the whole question to research. Searching "What is the capital of France?" ranked a page about questions ahead of Paris. The query is now narrowed the way weather narrows a place, while why/how keep their shell so "sky blue" does not beat Rayleigh scattering. Language is taken from the original, so a stripped German who-question still hits de.wiki. Co-authored-by: Sebastian <devbadya@users.noreply.github.com>
MediaWiki still ranks "capital of France" as a list, then capital punishment, then Paris. Paris's short description is the query; the others are a list article and the death penalty. That article takes the free first slot, Wikimedia lists are pushed back, and a second Wikipedia hit no longer crowds out another site. Co-authored-by: Sebastian <devbadya@users.noreply.github.com>
devbadya
marked this pull request as ready for review
August 31, 2026 11:14
Keep both sides of #47: Wikipedia alongside the web, retries, inflections, and the Amtsträger incumbent-line, plus leftover-question routing, query focusing, and Wikipedia short-description ranking. Co-authored-by: Sebastian <devbadya@users.noreply.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.
A 0.8B model will invent a capital, a boiling point, or a current office-holder rather than admit it does not know. Research already existed for the shapes the skill author wrote; everything else was left unaided. Greetings were never the problem — leftover questions were.
Merged with
mainafter #47 landed. Wikipedia-alongside-web, retries, inflections, and the Amtsträger incumbent-line come from there. This branch adds when to research, query focusing, and Wikipedia short-description ranking.When it researches
Routing gains a fourth stage, after triggers, the keyword index, and carry-over:
What is the capital of France?,Warum ist der Himmel blau?,What is 32 fahrenheit in celsius) now loadsresearch-question.wie geht's dir,wie gehts dir,how are you,Was machst du heute?,Erzähl mir einen Witz.and in Lisbon?still carries the resident skill rather than becoming a search for Lisbon.This is
isResearchablein code, not a broader trigger. A regex on the skill itself cannot hold the exclusions without stealing greetings the waywho isonce stole Who is that?.What one research call does now
capital of France. Searching the whole sentence ranked a page about questions (and WhatsApp) ahead of Paris. Why and how keep the shell, because sky blue ranks a colour swatch and why is the sky blue ranks the physics. Language is taken from the original question, so a stripped German who still hits German Wikipedia.download_pdfgalleries go last.lookup-termis unchanged — a name still does not need three sources.Eval
What is the capital of France?now expectsresearch.Wie geht's dir?andHow are you?expect no tool.Who wrote Dune?andWhat's the population of Tokyo?already routed toresearch-question; the scenarios now expectresearchrather thanweb_search.Verification
pnpm checkafter mergingmain— 1,284 tests. New cases cover the question stage, the greeting exclusions, query focusing, Wikipedia short-description ranking, snippet ranking, login demotion, German inflection, Wikipedia merge, firewall replacement, and the Amtsträger incumbent-line.Live Wikipedia (CORS
*from the Pages origin, extradescription/pagetermsprops): searchingcapital of Franceand reranking by short description puts Paris first. Searching the unfocused full question still ranks Closed-ended question / WhatsApp — which is why focusing is not optional.The model itself is not exercised here: this environment has no GPU adapter. Whether the skill actually reaches
researchstill needs/?evalin Chrome on a real GPU.