Quail AI.SCORE: score and sort beats pairwise ranking
Full Stack Data Lab found per-record LLM scoring matched or beat pairwise comparison for semantic top-k on three business tasks, and ran 8.2x faster.
Asking a small model to score each record and then sorting the scores matched or beat pairwise LLM comparisons on three business ranking tasks, and ran 8.2x faster per task (geometric mean). The Full Stack Data Lab published the result on Nov 23, 2026 in a post about Quail, its open-source SQL engine with AI functions. If you rank call transcripts, contracts or articles by a fuzzy criterion, the simpler approach looks like the better default.
The common assumption, as Shreya Shankar (@sh_reya) put it, is that pairwise comparisons buy accuracy. Using Qwen3-4B, the lab's pointwise AI.SCORE tied pairwise at 44% Precision@25 on sales calls and won on contracts (96% vs. 80%) and drug-safety articles (28% vs. 20%). Embedding retrieval scored lower on all three. The authors' explanation: swapping the order of two records in the prompt can flip the model's pick, and one wrong call in a Quickselect pass drops a true top-k record for good. Scores at least give a consistent order.
In Quail, AI.SCORE is a yes/no prompt that returns a number from 0 to 1, combined with ORDER BY ... DESC and LIMIT 25. The authors warn the scores are only good for ranking, since the model isn't necessarily trained to give calibrated probabilities, and that rewording the ranking prompt sometimes changed Precision@25. They also call their pairwise and retrieval implementations experimental and unoptimized.
A dedicated cross-encoder reranker remains an option. AIMultiple's Nov 16, 2026 benchmark found Qwen3-Reranker-4B took over a second to score 100 candidates and placed fourth behind smaller models, but that test used English Amazon reviews with one retriever, and AIMultiple says results will differ on legal or scientific text.
Our read: the pattern is portable. It needs a model that answers yes or no and a way to read its confidence, not a ranking algorithm. On getting Quail itself, the post says only that "the latest Quail release" supports pointwise scoring, with no version number.
Try it: pick a ranking question you already ask of your data and rewrite it as a yes/no criterion that says what doesn't count (our example, modelled on the post's sales prompt). Score 50–100 records you've already labelled, sort them, and count how many of the top 25 are true yeses. Then reword the prompt once and recount to see how sensitive it is.
Sources
- Supporting LLM-Powered Top-k Queries in Quail · Full Stack Data Lab
- Reranker Benchmark: Top 8 Models Compared · AIMultiple
- Shreya Shankar (@sh_reya) on X · @sh_reya