Engineering Corpus

Scored on the same queries

Engineering Corpus and public code search tools get the same questions about code. Each query is asked inside the one repository its answer lives in, and we score the files each tool returns. There are two sets. The held-out set has 58 queries whose answers were recorded before any change made from them, and GitHub code search and searchcode answer them. The tuned set has 124 queries, some of our ranking settings were chosen on them, and GitHub code search, searchcode and Sourcegraph answer them.

On the held-out set, Engineering Corpus returns 0.893 of the relevant files in its first 20 results (Recall@20). GitHub code search returns 0.402 and searchcode 0.369, both asked in keyword form. Those two scores count a file that did not exist at our pinned commit as not relevant; if every such file counted as relevant, the better of them would reach 0.487, and ours stays ahead of that on Recall@20, nDCG@10 and MRR. Files no judge graded count as not relevant, and grading them could move any tool’s score either way. In the first ten results, 11.7% of GitHub code search’s and 8.9% of searchcode’s were never graded, against 0.0% of ours; in the first twenty, 36.4% of GitHub code search’s, 33.1% of searchcode’s and 43.3% of ours. If every ungraded file in a tool’s top twenty counted as relevant instead (all of one tool’s files or none, eight combinations), Recall@20 would run from 0.631 to 0.963 for ours, 0.175 to 0.561 for GitHub code search and 0.153 to 0.535 for searchcode, and ours is first in all eight.

On the tuned set, Engineering Corpus returns 0.953 and the three public tools, each on the keyword form that suits it, 0.433 to 0.446. Ours is lower on the held-out set than on the tuned set. The two sets hold different queries over different repositories, and the held-out set is small, so we do not read the gap as the cost of tuning. On the tuned set, of the tools with a token count, Engineering Corpus uses the most tokens per relevant hit.

Report generated on 19 November 2026 from the frozen inputs e93991ad…57704b. Public tools change, so every score is a snapshot of that date.

Held-out: 58 queries, answers recorded before any change made from them

The share of the relevant files that appear in a tool’s first 20 results. It is the number that says whether the tool finds the file at all.

  1. Engineering Corpus0.893
  2. GitHub code searchUpper bound 0.4870.402
  3. searchcodeUpper bound 0.4470.369

Report of 13 November 2026.

Read with this caveat: 58 queries written from the projects' issues, documentation indexes and file layouts. The answers were recorded on 2026-11-12 and graded on 2026-11-13, before any change made from these queries; their misses have fed ranking work since, so this set is spent for tuning and a later set is the check on that work. The labels are the hand-written proofs plus one grade from 0 to 3 by a Sonnet judge on each file that ours, GitHub code search and searchcode returned in their first ten; a file graded 2 or 3 is relevant. Sourcegraph was not measured on this set. GitHub code search and searchcode look at the upstream HEAD while the labels are at the pinned commit, so a file they return that did not exist at the pin counts as not relevant (the main rule) or as relevant (the post-pin upper bound, shown for those two tools only: their score if every such file were relevant). One query's proof is gone at HEAD, so every score is also given on the 57 queries whose proofs are all there. Files no judge has graded count as not relevant. The judges graded each tool's first ten files, so unjudged@10 shows how many files in the ten that nDCG@10 and MRR read are ungraded, and unjudged@20 how many in the twenty that Recall@20 reads. Grading them could move any tool's score either way: a relevant file a tool returned raises its own score, and a relevant file only another tool returned lowers the others', because it joins the relevant set they are scored against. The robustness figures score the three tools in each of eight combinations of which tools' unjudged top-20 files are relevant (all of a tool's, or none) and say in how many ours is first. The judge is one model, not a person, and the three sources of questions are small samples, not rates.

Held-out results by tool

A file a tool returned that did not exist at our pinned commit counts as not relevant, so each public tool has an upper bound beside its score: the most that rule could cost it, with every such file in its first 20 counted as relevant.

All 58 queries

ToolCountingAnsweredRecall@20nDCG@10MRRUnjudged@10Unjudged@20
Engineering CorpusJudged at our pinned commit580.8930.8000.8700.0%43.3%
GitHub code searchJudged at our pinned commit580.4020.3050.40811.7%36.4%
GitHub code searchUpper bound0.4870.3850.511
searchcodeJudged at our pinned commit580.3690.2820.4028.9%33.1%
searchcodeUpper bound0.4470.3450.486
  • Engineering Corpus Judged at our pinned commit

    Answered
    58
    Recall@20
    0.893
    nDCG@10
    0.800
    MRR
    0.870
    Unjudged@10
    0.0%
    Unjudged@20
    43.3%
  • GitHub code search Judged at our pinned commit

    Answered
    58
    Recall@20
    0.402
    nDCG@10
    0.305
    MRR
    0.408
    Unjudged@10
    11.7%
    Unjudged@20
    36.4%
  • GitHub code search Upper bound

    Recall@20
    0.487
    nDCG@10
    0.385
    MRR
    0.511
  • searchcode Judged at our pinned commit

    Answered
    58
    Recall@20
    0.369
    nDCG@10
    0.282
    MRR
    0.402
    Unjudged@10
    8.9%
    Unjudged@20
    33.1%
  • searchcode Upper bound

    Recall@20
    0.447
    nDCG@10
    0.345
    MRR
    0.486

The 57 queries whose relevant files all still exist at the latest upstream commit

ToolCountingRecall@20nDCG@10MRR
Engineering CorpusJudged at our pinned commit0.8910.7970.868
GitHub code searchJudged at our pinned commit0.4020.3090.414
GitHub code searchUpper bound0.4820.3840.515
searchcodeJudged at our pinned commit0.3720.2840.405
searchcodeUpper bound0.4410.3370.477
  • Engineering Corpus Judged at our pinned commit

    Recall@20
    0.891
    nDCG@10
    0.797
    MRR
    0.868
  • GitHub code search Judged at our pinned commit

    Recall@20
    0.402
    nDCG@10
    0.309
    MRR
    0.414
  • GitHub code search Upper bound

    Recall@20
    0.482
    nDCG@10
    0.384
    MRR
    0.515
  • searchcode Judged at our pinned commit

    Recall@20
    0.372
    nDCG@10
    0.284
    MRR
    0.405
  • searchcode Upper bound

    Recall@20
    0.441
    nDCG@10
    0.337
    MRR
    0.477

Recall@20 by where the question came from. The number in brackets is how many queries each source holds.

Engineering CorpusGitHub code searchsearchcode
Issues (24)0.8780.3100.304
Docs and indexes (5)0.8250.4230.374
Repository layout (29)0.9180.4750.421
  • Issues (24)

    Engineering Corpus
    0.878
    GitHub code search
    0.310
    searchcode
    0.304
  • Docs and indexes (5)

    Engineering Corpus
    0.825
    GitHub code search
    0.423
    searchcode
    0.374
  • Repository layout (29)

    Engineering Corpus
    0.918
    GitHub code search
    0.475
    searchcode
    0.421

The tuned set: 124 queries

  1. Engineering Corpus0.953
  2. GitHub code search0.445
  3. searchcode0.433
  4. Sourcegraph0.446

Report of 19 November 2026.

Read with this caveat: Some ranking settings were chosen on the 124 queries over 12 repositories, so part of our score comes from the data that chose those settings. The held-out set was the check, and it is now spent for tuning. Judges graded only the first ten files of each answer, so files in ranks 11 to 20 are ungraded for every tool, and a file no judge has graded counts as not relevant. Grading them could move any tool's score either way: a relevant file a tool returned raises its own score, and a relevant file only another tool returned lowers the others', because it joins the relevant set they are scored against. unjudged@10 gives the share of a tool's top ten that is ungraded.

Results by tool

Track A: 124 queries, each asked in the repository its answer lives in. Each tool is scored on the query form that answered the most queries.

ToolFormAnsweredRecall@20nDCG@10MRRUnjudged@10Latency p50 / p95Tokens per relevant hit
Engineering Corpusquery124/1240.9530.8710.9959.1%56 ms / 131 ms1,806
GitHub code searchkeywords124/1240.4450.4310.65613.3%1,295 ms / 1,556 ms941
searchcodekeywords124/1240.4330.4170.62915.1%158 ms / 1,794 ms1,351
Sourcegraphkeywords124/1240.4460.4340.66113.4%7,779 ms / 27,330 msn/a
  • Engineering Corpus

    Form
    query
    Answered
    124/124
    Recall@20
    0.953
    nDCG@10
    0.871
    MRR
    0.995
    Unjudged@10
    9.1%
    Latency p50 / p95
    56 ms / 131 ms
    Tokens per relevant hit
    1,806
  • GitHub code search

    Form
    keywords
    Answered
    124/124
    Recall@20
    0.445
    nDCG@10
    0.431
    MRR
    0.656
    Unjudged@10
    13.3%
    Latency p50 / p95
    1,295 ms / 1,556 ms
    Tokens per relevant hit
    941
  • searchcode

    Form
    keywords
    Answered
    124/124
    Recall@20
    0.433
    nDCG@10
    0.417
    MRR
    0.629
    Unjudged@10
    15.1%
    Latency p50 / p95
    158 ms / 1,794 ms
    Tokens per relevant hit
    1,351
  • Sourcegraph

    Form
    keywords
    Answered
    124/124
    Recall@20
    0.446
    nDCG@10
    0.434
    MRR
    0.661
    Unjudged@10
    13.4%
    Latency p50 / p95
    7,779 ms / 27,330 ms
    Tokens per relevant hit
    n/a
query
the query as written
keywords
up to three keywords made from the query by one fixed rule, for the lexical tools (GitHub code search, searchcode and Sourcegraph), which match the words of a query

Report of 19 November 2026.

Read with this caveat: Each request's round trip from the machine that ran the benchmark. Ours is a local stdio server and the others are reached over the network, so the times do not compare like for like. p50 is the median and p95 the 95th percentile of the requests made for the 124 queries. Measured once, on one machine. Ours was measured on the release-build wheel 0.1.0.dev1 (macOS arm64), installed from TestPyPI into a fresh environment, on an Apple M2 laptop (8 cores, 16 GB), CPU only, recorded on 2026-11-18.

Report of 19 November 2026.

Read with this caveat: Recorded on the v0.1 build, whose answers show only the lines of each chunk that hold the most query words. Counted in o200k_base tokens, an approximation of Claude's. Ours also carries each hit's licence class and an automated licence verdict, which the other tools' answers do not.

Recall@20 by kind of query. The number in brackets is how many queries the kind holds.

Engineering CorpusGitHub code searchsearchcodeSourcegraph
Configuration and docs (16)0.9070.3620.3190.326
How-to (85)0.9580.4120.4020.428
Identifier (14)0.9700.7580.7410.691
Turkish, translated to English (9)0.9700.4180.4400.440
  • Configuration and docs (16)

    Engineering Corpus
    0.907
    GitHub code search
    0.362
    searchcode
    0.319
    Sourcegraph
    0.326
  • How-to (85)

    Engineering Corpus
    0.958
    GitHub code search
    0.412
    searchcode
    0.402
    Sourcegraph
    0.428
  • Identifier (14)

    Engineering Corpus
    0.970
    GitHub code search
    0.758
    searchcode
    0.741
    Sourcegraph
    0.691
  • Turkish, translated to English (9)

    Engineering Corpus
    0.970
    GitHub code search
    0.418
    searchcode
    0.440
    Sourcegraph
    0.440

Report of 19 November 2026.

Read with this caveat: The 124 queries fall into four kinds: how-to, config-docs, identifier and Turkish-translated (written in Turkish, asked in English). The size of each kind is a number here. The small kinds are samples, not rates, and no interval is shown for a single kind. The labels, the query forms and the rule for ungraded files are the same as for track A overall: files no judge has graded count as not relevant.

Both query forms for every tool.

ToolFormAnsweredRecall@20nDCG@10MRR
Engineering Corpusquery124/1240.9530.8710.995
GitHub code searchquery123/1240.2270.2540.486
GitHub code searchkeywords124/1240.4450.4310.656
searchcodequery124/1240.2410.2470.435
searchcodekeywords124/1240.4330.4170.629
Sourcegraphquery88/1240.2240.2600.480
Sourcegraphkeywords124/1240.4460.4340.661
  • Engineering Corpus query

    Answered
    124/124
    Recall@20
    0.953
    nDCG@10
    0.871
    MRR
    0.995
  • GitHub code search query

    Answered
    123/124
    Recall@20
    0.227
    nDCG@10
    0.254
    MRR
    0.486
  • GitHub code search keywords

    Answered
    124/124
    Recall@20
    0.445
    nDCG@10
    0.431
    MRR
    0.656
  • searchcode query

    Answered
    124/124
    Recall@20
    0.241
    nDCG@10
    0.247
    MRR
    0.435
  • searchcode keywords

    Answered
    124/124
    Recall@20
    0.433
    nDCG@10
    0.417
    MRR
    0.629
  • Sourcegraph query

    Answered
    88/124
    Recall@20
    0.224
    nDCG@10
    0.260
    MRR
    0.480
  • Sourcegraph keywords

    Answered
    124/124
    Recall@20
    0.446
    nDCG@10
    0.434
    MRR
    0.661

Report of 19 November 2026.

Read with this caveat: Each tool is scored on the query form that answered the most queries: the keyword form for GitHub code search, searchcode and Sourcegraph, and the one form we have. Scores cover the queries a tool answered, and an error is never counted as zero, so a form that lost queries cannot be compared directly with one that did not. Sourcegraph's query form lost queries to a rate limit, and the ones it lost are the end of the list, not a random sample. GitHub code search's query form lost one. Files no judge has graded count as not relevant, and grading them could move a score either way.

How to read the table

Recall@20
The share of the relevant files that appear in a tool’s first 20 results. It is the number that says whether the tool finds the file at all.
nDCG@10
How high the relevant files rank in the first 10 results. A relevant file at rank 1 counts for more than one at rank 10.
MRR
One divided by the rank of the first relevant file, averaged over the queries. It says how far down you read before the first useful file.
Answered
The number of queries the tool answered, out of 124. A failed call is an error and never a score of zero.
Unjudged@10
The share of a tool’s first 10 files that no judge graded and no query lists. Such a file counts as not relevant, and grading it could move a score either way.
Latency
The median and the 95th percentile of each request’s round trip from the machine that ran the benchmark. Engineering Corpus runs locally and the other tools answer over the network, so this column does not compare speed like for like.
Tokens per relevant hit
The tokens of every answer a tool gave, as an agent reads them, divided by the relevant files in the first 10 of each answer. It counts with the o200k_base encoding, which approximates Claude’s. Sourcegraph is asked for file names only, so it has no value.
  • A file counts as relevant when a query lists it as a proof or a judge grades it 2 or 3 on a scale from 0 to 3.
  • Nine queries ask across several repositories. They are scored apart as track B. Their results are in the Track B section of the engine repository’s eval/benchmark/README.md, public from the release, and are not drawn on this page.
  • The three public tools are reached over the network and change without notice, so the date of the report matters.
  • The method page says how each tool is called, how the keyword form is made and how to run the benchmark yourself.

How the benchmark works

Every change to the benchmark, by date

What could favour us

We designed, ran and scored this benchmark, and one of the tools it ranks is ours. A threat marked “Not measured” is still open.

The figures use the final labels, which include the last judge round: 506 new pairs (a pair is one query and one file) graded on top of the earlier rounds. The measured figures come from one command, python -m engineering_corpus.bench.validity, run on the files of this rerun. A few figures do not: the effect of the settings chosen on these queries comes from our earlier measurements, the drift counts from a separate check of the commits searchcode used, and the settings’ values from the engine’s code.

  1. The project that makes the engine chose the queries

    The project that makes the tool chose the 133 queries, and none was drawn from users, which can favour the tool. Four things limit that. Every relevant file a query names carries a proof, a pattern its text must match in the benchmark’s copy of the repositories, so each of those labels was checked against code. The labels the judges added carry no proof; the item on pooled labels gives their share. Every tool is asked in its native form: keywords for the lexical tools, made by one fixed rule and scored on whichever form does better, and a native cross-repository request where a tool has one. The judges grade the files in every tool’s top 10, not only the files a query names. And the cross-repository queries are scored apart.

    Measured

    • The engine was developed against 20 of the queries. On those 20, ours scores 0.994 Recall@20 and 0.939 nDCG@10. On the other 104, it scores 0.946 and 0.858. Leaving the 20 out lowers ours by 0.008 and 0.013. The other tools also score higher on those 20 on nDCG@10: GitHub code search by 0.014, searchcode by 0.001 and Sourcegraph by 0.068. Ours is higher by 0.080, more than any of them, but 20 queries cannot separate that from Sourcegraph’s lift.
    • Some of our ranking settings were chosen on the same queries. The comparison we ran to choose our embedding model, chunker and reranker (the bake-off) scored them on these queries. These queries were also used to choose the fusion depth (400 chunks from each of the two searches, by meaning and by words, go into the merge) and the file score (the best chunk of a file plus 0.2 times its second best), and to decide to drop a per-repository cap on results.
    • The weights of deep mode (0.6 and 1.0) were picked by cross-validation over the judged labels of these queries. Deep mode is off by default, and this benchmark did not ask for it. Two settings were not set on these queries: the dense weight 0.5 (how much the meaning search counts against the word search, left untuned) and the 0.8298 threshold for the no_strong_match status (the similarity below which a search says that nothing is close to the query), which was calibrated on a separate training set.
    • The held-out set was the check. Its answers were recorded on 2026-11-12 and graded on 2026-11-13, before any change made from its queries, and none of its 58 queries came from our list of misses. Its misses have fed ranking work since, so it is spent for tuning, and a later set is the check on that work. 24 are phrased from the topics of public issues (the topic is the reporter’s, the question a paraphrase), 5 from a documentation index and 29 from the file layout. On them ours scores 0.893 Recall@20 and 0.800 nDCG@10, against 0.953 and 0.871 on the 124 tuned queries.

    Not measured

    Held-out queries drawn by a rule the project did not choose, such as a seeded random sample, and rates for each source of them. The three sources hold 24, 29 and 5 queries, too few to read as rates.

  2. Most labels come from judges, and the labels are pooled

    A file counts as relevant only if a proof names it or a judge graded it 2 or 3 on a scale from 0 to 3. Judges grade only the files that some tool returned in its top 10. So most labels come from judges, not from proofs we checked by hand.

    Measured

    • The proofs give 1.2 relevant files per query. With the judges’ grades there are 6.3. The judges supply 81% of the labels, and 121 of the 124 queries gain at least one relevant file.
    • A file no judge saw counts as not relevant. In the top 10, 9% of our files are unjudged, against 11% to 16% of the other tools’ files (13% to 15% for the keyword forms they are scored on).
    • Two groups of files stay unjudged by decision: 144 pairs of the earlier rounds that no judge ever graded (113 of them in our lists), and every file ranked 11 to 20 that no round graded.
    • We put a what-if beside the effect. If every file a tool returned in its top 20 that no judge graded were relevant, the best other tool would score Recall@20 0.501, nDCG@10 0.478 and MRR 0.715. That is a what-if, not a measurement of that tool, and for nDCG@10 it is not the exact maximum. Ours is published at 0.953, 0.871 and 0.995, with our own ungraded files counted as not relevant. The order does not change in any combination we checked.
    • The judged labels help our nDCG@10 more than anyone’s. On the proofs alone, ours scores 0.761 and the others 0.19 to 0.41. Adding the judges raises ours by 0.111. The others move between a fall of 0.011 and a rise of 0.070. Recall@20 moves the other way for everyone: ours falls by 0.022 and the others by 0.019 to 0.090. Ours is first on every metric under both label sets. The order of the other tools changes: Sourcegraph’s keyword form moves up on nDCG@10.
    • Files outside the export cannot be graded. The proofs and the judge excerpts come from the benchmark’s copy of the repositories (the export), which our own chunker wrote and whose skip rules keep out translations, snapshots and generated files. 6.0% to 10.0% of the other tools’ top-10 files lie outside it (ours 0%, since the export is our index). Such a file always scores as not relevant. That is already inside the bound, and it works against the other tools.

    Report of 19 November 2026.

    Read with this caveat: This is what the best other tool would score on the 124 queries if every file in its top 20 that no judge has graded were relevant. It is a what-if for that tool, not a measurement of it. For nDCG@10 it is also not the exact maximum, because making only some of its unjudged files relevant can give slightly more. The best other tool is searchcode's keyword form on Recall@20 and GitHub code search's keyword form on nDCG@10 and MRR. Our own scores count unjudged files as not relevant in the same way. The robustness figures score every tool in each of 128 combinations of the seven arms' unjudged top-20 files being relevant (in each combination, all of an arm's files or none of them). A relevant file only another tool returned lowers the tools that did not return it, so a score can fall as well as rise, and the figures say in how many combinations ours is first. The project chose the queries, and most relevant files come from the judges' grades, not from proofs.

    Not measured

    Why the judges find more relevant files in our lists. Also the relevant files that no tool returned: they are in no label set, so every tool’s Recall@20 is a little higher than it would be against a complete list.

  3. The judges are language models, and each pair has one grade

    The labels are Claude Sonnet’s grades, with Claude Haiku’s where only Haiku graded a pair, and with no Opus round. The 506 new pairs of the final round were graded by Claude Sonnet 5.5 alone. So no pair has two independent grades, and the agreement figures cover the earlier pairs only.

    Measured

    • On the 1,349 pairs that both Haiku and Sonnet graded, the quadratic-weighted kappa is 0.838 (1 would be perfect agreement). 23.4% of the pairs get different grades, and 10.1% differ across the relevance line (grade 2).
    • Scoring the same rankings with each judge’s labels in turn moves Recall@20 by at most 0.013, nDCG@10 by at most 0.006 and MRR by at most 0.032. Ours stays first on every metric with either judge. The keyword forms of searchcode and Sourcegraph, within 0.001 of each other on nDCG@10, swap places when the judge changes.
    • 78 of the 506 new pairs sit on the nine Turkish-translated queries. The judge read their Turkish wording while the tools were asked the English translation, as for the earlier labels on those queries.
    • Both judges read an excerpt chosen by one word-overlap rule for every tool, not the whole file.

    Not measured

    Agreement with a human grader on a sample, and a judge’s lean toward one style of excerpt.

  4. The keyword form helps the lexical tools

    One fixed rule turns each query into at most three keywords, from the query alone, and each tool is scored on its better form. The keyword form beats the query form for every lexical tool. Recall@20: GitHub code search 0.445 against 0.227, searchcode 0.433 against 0.241 and Sourcegraph 0.446 against 0.224, where its query form answered 88 queries.

    Measured

    • All of a query’s keywords occur in an answer file for 58% of the queries. A keyword occurs in 79% of a query’s answer files, but in 21% of the other files of the same repository.
    • Where all keywords occur, the lexical tools reach Recall@20 0.62 to 0.64. Where one is missing they reach 0.17 to 0.18. Ours scores 0.957 and 0.949 in the two cases.
    • So the shared words lift the lexical tools and hardly move ours. On the 42% of queries where a keyword is absent from every answer file, the set favours an engine that matches on meaning.

    Not measured

    How far real queries sit from the words of the code, and queries whose words were chosen independently of their answer files.

  5. Every tool is told the repository

    In track A each tool is asked inside the one repository that holds the query’s relevant files: a repo: filter at the pinned commit for Sourcegraph, repo: for GitHub code search, one project for searchcode and the repos argument for ours. So no tool has to find the repository, and the scope is taken from the labels. Real queries often do not name the repository.

    Measured

    • The nine cross-repository queries are scored apart, as track B. They are too few for an interval. Their results are in the Track B section of the engine repository’s eval/benchmark/README.md, public from the release, and are not drawn on this page.

    Not measured

    Every tool asked across all 12 repositories.

  6. The public tools drift, and our index does not

    Sourcegraph searches each repository at the commit we pinned. searchcode searched another commit than our pin for 7 of the 12 repositories (75 of the 124 queries). GitHub code search searches the default branch and names no commit, so its drift cannot be mapped.

    Measured

    • In those 75 queries no relevant file was renamed or deleted in the gap. 158 pairs (a query and a file) were modified in place, and 34 of the 663 files that searchcode’s keyword-form answers returned from those repositories (5.1%) did not exist at the pin (its query form: 17 of 357, 4.8%). Such a file cannot be relevant at the pin, so it works against searchcode.

    Not measured

    The size of the effect on any score beyond the bound given for the pooled labels.

  7. Sourcegraph’s query form is incomplete

    Sourcegraph’s keyword form answered all 124 queries. Its query form answered 88: a rate limit (HTTP 429) stopped the run, and the 36 queries after it were asked once and refused, not retried.

    Measured

    • The 36 are the end of the query list, not a random sample: 13 of the 16 configuration and docs queries, 12 of the 14 identifier queries, all 9 Turkish-translated queries and 2 of the 85 how-to queries.
    • The other tools score higher on those 36 than on the 88 (GitHub code search’s keyword form: Recall@20 0.528 against 0.411), and ours lower (0.941 against 0.959). So the 88 are an easier set for us and a harder one for them.
    • The headline is not affected, since each tool is scored on its better form and Sourcegraph’s keyword form is complete. GitHub code search’s query form lost one query of 124, an identifier query in croc.
  8. The tools return different numbers of files

    Recall@20 caps a tool that returns fewer than 20 files.

    Measured

    • The mean answer holds 19.3 files for ours, against 7.3 (GitHub code search), 7.5 (searchcode) and 11.0 (Sourcegraph) on the keyword forms, and 3.3 to 4.0 on the query forms. 15% of our answers hold fewer than 20 files, against 84% to 97% of theirs. 15% to 40% of theirs are empty (ours 0%).
    • At the depths every tool reaches, the order stands. Recall@10: ours 0.858 against 0.394 for the best other tool. Recall@5: 0.658 against 0.324. nDCG@5: 0.857 against 0.445.
    • The judges read the top 10 only, so a file ranked 11 to 20 that no round graded counts as not relevant.
  9. The cost metric is where we do worst

    Tokens per relevant hit counts the whole answer text over the relevant files in an answer’s first ten. Ours is 1,806 o200k_base tokens, against 941 for GitHub code search and 1,351 for searchcode, both on the keyword form. Each of our hits also carries its license class and an automated license verdict, which the other two do not.

    Measured

    • Crediting the relevant files over all 20 files instead of 10 lowers each tool by 11% to 16% (ours 14%). Counting with the cl100k_base encoding instead moves each by at most 1.4%. Neither changes the order.

    Not measured

    Sourcegraph, whose recorded answer is a list of files with no text for an agent, and Claude’s own token counts (o200k_base undercounts them).

  10. There are 124 queries but 12 repositories, and the repository is the unit that counts

    Queries about the same repository are not independent. The 12 repositories are small to mid-sized public projects chosen by us.

    Measured

    • Ours is ahead of every other tool in 12 of 12 repositories on all three metrics, and in each of the four kinds of query (how-to, configuration and docs, identifier, Turkish-translated).
    • The mean gap, with a 95% interval from resampling whole repositories. Recall@20: +0.51 (interval 0.45 to 0.56) against GitHub code search, +0.52 (0.47 to 0.57) against searchcode and +0.51 (0.45 to 0.57) against Sourcegraph. nDCG@10: +0.44 (0.39 to 0.50), +0.45 (0.40 to 0.50) and +0.44 (0.38 to 0.50).

    Not measured

    Large repositories, and languages the 12 do not cover.