# MediaWiki Code2Code Search: Neural Retrieval for the Semantic Discovery of Open-Source Software Entities

DevFeed: [MediaWiki Code2Code Search: Neural Retrieval for the Semantic Discovery of Open-Source Software Entities](<https://devfeed.tech/articles/mediawiki-code2code-search-neural-retrieval-for-the-semantic-discovery-of-open-source-software-entities-113473.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2607.26766>)

Author: Francesco Tosoni

Published: 2026-11-03T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [code search](<https://devfeed.tech/topics/code-search.md>), [search-engines](<https://devfeed.tech/topics/search-engines.md>), [AI-driven information retrieval](<https://devfeed.tech/topics/ai-driven-information-retrieval.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>)

Tags: [2](<https://devfeed.tech/tags/2.md>), [abstract](<https://devfeed.tech/tags/abstract.md>), [all](<https://devfeed.tech/tags/all.md>), [alpha](<https://devfeed.tech/tags/alpha.md>), [apache](<https://devfeed.tech/tags/apache.md>), [apache-2-0](<https://devfeed.tech/tags/apache-2-0.md>), [api](<https://devfeed.tech/tags/api.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [arxiv](<https://devfeed.tech/tags/arxiv.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-cl](<https://devfeed.tech/tags/cs-cl.md>), [cs-ir](<https://devfeed.tech/tags/cs-ir.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [discovery](<https://devfeed.tech/tags/discovery.md>), [mediawiki](<https://devfeed.tech/tags/mediawiki.md>), [neural](<https://devfeed.tech/tags/neural.md>), [open](<https://devfeed.tech/tags/open.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [open-source-software](<https://devfeed.tech/tags/open-source-software.md>), [retrieval](<https://devfeed.tech/tags/retrieval.md>), [search](<https://devfeed.tech/tags/search.md>), [semantic](<https://devfeed.tech/tags/semantic.md>), [software](<https://devfeed.tech/tags/software.md>), [source](<https://devfeed.tech/tags/source.md>)

## AI overview

MediaWiki Code2Code Search uses neural retrieval to find functions, types, and templates by computational intent across 1.29 million entities in more than 2,500 MediaWiki repositories. Its split-build architecture handles GPU-intensive indexing offline and serves queries on CPU; the FAISS IVF-PQ index uses 168.6 MiB, 96.6% less than a flat float32 baseline, with median query latency of 1.85 seconds on commodity hardware under Toolforge's 6 GiB RAM limit. In a blinded 27-query evaluation, a three-model LLM jury rated its nDCG@10 at 0.81 versus 0.63 for BM25, with gains across all judges, especially for name-obfuscated and cross-language queries. The abstract reports an Apache 2.0 licence and an open REST API.

## Source excerpt

arXiv:2607.26766v2 Announce Type: replace-cross Abstract: Code search in large-scale ecosystems is often hindered by the lexical gap between user queries and implementation details, alongside the trade-off between the low latency of traditional Information Retrieval (IR) and the precision of Deep Learning (DL). We present MediaWiki Code2Code Search, a neural retrieval system for semantic code-to-code discovery. By indexing 1.29 million structural entities (functions, types, and templates) across 2,500+ MediaWiki repositories, our system enables retrieval based on computational intent rather than surface tokens. We employ a split-build architecture, decoupling GPU-intensive offline indexing from a CPU-only serving layer; our FAISS IVF-PQ index occupies 168.6 MiB: a 96.6\% reduction compared to a flat float32 baseline, and achieves a median query latency of 1.85 seconds on commodity hardware, satisfying the 6 GiB RAM constraint of Wikimedia Toolforge. In a blinded evaluation graded by a three-model LLM jury (inter-judge Krippendorff's $\alpha = 0.74$), our system improves ranking quality over a BM25 baseline across a 27-query benchmark, raising the jury-mean nDCG@10 (to 0.81 from 0.63), a positive and consistent gain across all judges. Gains are most pronounced in name-obfuscated and cross-language tasks where lexical methods fail. The system is available at https://code2codesearch.toolforge.org under the Apache 2.0 licence and provides an open RESTful API.