Taewoo Park

Research

scholar-megasearch

Massive multi-source literature search as a fan-out problem: one subagent per source bucket across twenty-plus scholarly databases, merged into a single deduplicated ranked corpus with the original PDFs already on disk.

Searching one database at a time is how good papers get missed

arXiv will not show me the published version's citation count. Semantic Scholar will not surface the bioRxiv preprint. Google Scholar will not tell me which of its hits also appear in three other indexes. So what I actually did was run the same query in five tabs, paste the results into a document, deduplicate by hand, and then hunt each PDF down separately.

This collapses all of that into one request by treating literature search as a fan-out: decompose the topic, send each source bucket to its own subagent, and reconcile everything afterwards. What comes back is not a chat reply. It is a corpus on disk where every entry is deduplicated, ranked by how many independent databases corroborate it, and backed by a downloaded PDF wherever a free route exists.

One pass, six stages, nothing serial that does not have to be

A topic becomes three to eight facet subqueries. Each source bucket gets its own searcher, running in parallel, writing raw results per bucket with no deduplication yet — so breadth does not cost serial wall-clock and a failing source cannot corrupt a neighbour's output. The merge step then does dedup, field merging and ranking in one deterministic place, PDF acquisition follows, and synthesis comes last.

Orchestration runs as a deterministic workflow when the host provides one and falls back to direct subagent fan-out otherwise, with a routing table selecting four to seven buckets for the topic's domain rather than firing everything at every question.

One searcher per bucket, writing raw results side by side
One searcher per bucket, writing raw results side by side

The sources, grouped by what they are actually good for

Preprints is arXiv, used three ways — search, semantic search and its citation graph. Citations is Semantic Scholar through Ai2's official remote service, plus a local server. DOI and published is Crossref and OpenAlex. Life sciences is PubMed, PMC, bioRxiv, medRxiv and Europe PMC. Open access is DOAJ, CORE, BASE, OpenAIRE, Zenodo, Unpaywall and HAL.

Domain covers DBLP for computer science, IACR for cryptography, SSRN for economics and law, and CiteSeerX. Web is DuckDuckGo, GitHub and a crawler. And Korean, opt-in and credential-gated, is KISTI ScienceON — KCI-indexed journal papers, domestic research reports and Korean patents, which is precisely the blind spot the other, English-centric buckets leave, and the one I most needed closed. I made merge deduplication Unicode-aware so DOI-less Korean records survive on their Hangul title.

Routing is explicit. Physics, materials and condensed matter always pull preprints, citations and published DOIs, plus open access and web. Computer science adds DBLP and GitHub. Biology and medicine lead with the life-science bucket. Cryptography pulls IACR, economics and law pull SSRN, mathematics adds the domain bucket, and anything unclassified fans wider rather than guessing.

Corroboration, not search-engine optimisation

Records from different databases merge when they share any of a normalised DOI, a version-stripped arXiv id, or a normalised title. The merged record keeps the richest value in each field — the longest abstract, the most complete author list, the maximum citation count — and accumulates the set of sources that found it, so provenance survives the merge rather than being averaged away.

The classic ranking is then the number of independent sources, the citation count and the year, in that order. Papers found by more independent databases rank higher, which is a different signal from the one a single search box gives you. Requiring at least two sources produces a high-precision shortlist that filters out single-index noise.

The default ranking is a five-layer weighted score — provenance, impact, recency, access and completeness, and topic relevance — with goal profiles for a survey, a systematic review, newest work, seminal work, implementations or a PDF corpus shifting the weights while keeping the signals separate. I kept the older sort available by name, so an earlier result can still be reproduced.

One deterministic merge, then the fetch and the synthesis
One deterministic merge, then the fetch and the synthesis

Breadth and recursion scale together, and the level is explicit

A single level sets facets, buckets, hits per query, extra waves and how many PDFs are acquired. Quick is three facets across four buckets at fifteen hits, one wave, top ten PDFs. Standard, the default, is five and five at twenty-five hits with thirty PDFs. Deep adds a citation snowball and takes fifty. Exhaustive uses eight facets across all seven buckets at forty hits, adds a completeness critic, and takes a hundred. Total loops that critic until it comes back dry and fetches everything.

Each wave is a fan-out followed by a merge into the same corpus. The snowball seeds the top identifiers back through citation graphs; the completeness critic names missing subtopics and authors, and those become the next wave's facets. The top two levels also emit the corroborated shortlist. I state the cost plainly rather than burying it: higher levels spawn more subagents and cost more tokens, and the highest is bounded only by the token budget.

What a mid-depth sweep looks like in practice

On a focused topic, six subqueries across five searchers produce roughly three hundred and ten raw hits, which resolve to about a hundred and fifty unique papers after deduplication, of which around sixty are corroborated by two or more databases. Twenty-two of twenty-five requested PDFs land, with three flagged as needing a paywall fallback.

I label those numbers illustrative rather than measured, and I am carrying the label onto this page for the same reason I put it in the repository. A shape you can plan around is useful; a benchmark it is not.

A directory you can hand to someone else

Everything lands under a dated topic folder in the working directory: the raw per-bucket results, the deduplicated and ranked corpus in both machine and human-readable form, the acquired PDFs with their manifest, and a synthesised review.

I made the numbering deliberate. PDFs are named by their corpus rank, and the summary numbers each paper with that same rank — so a line in the summary maps directly to a file in the PDF folder and a row in the manifest, without anyone having to search on a title.

What it will not do, and what makes it fail

PDF acquisition uses only free and legal routes — a known open-access URL, arXiv, or Unpaywall — and verifies that every file really is a PDF rather than an error page in disguise. Closed-access papers are flagged in the manifest rather than quietly skipped, and fetching those is left to the session's own tools.

arXiv rate-limits heavy fan-out, so searchers stagger their requests and lean on Semantic Scholar and OpenAlex when it pushes back. One dependency has to be installed from its git main branch because the published release omits Crossref and OpenAlex entirely, and the installer handles that rather than letting a user discover it. Host-provided scholar gateways are treated as best-effort and are never a bucket's only source, because they can be absent in a headless run.

And I require the synthesis to be honest: the summary reports what was actually searched and which sources failed, and nothing is invented to fill a gap.

The repository is careful about what it does and does not own

The MCP servers are third-party and are not redistributed here. Two are fetched from upstream at install time and one is used as a remote service under its provider's licence and terms. Semantic Scholar data returned through that service is ODC-BY: published work built on it must attribute Semantic Scholar and must not redistribute, sell or sublicense the raw data, and individual papers may carry their own licences on top.

The MIT licence covers my own code — the skills and the setup scripts — and explicitly not the third-party services or the data they return. I do not treat that boundary as a formality, for a tool whose entire output is other people's work.

Knowing what has been written is half of reading a field

A corpus answers what exists. It does not answer who is producing it, how a group's focus has moved, or whose name belongs on the email I am about to send. scholar-lab-radar turns that second question into a graph.

And MagLab is where a corpus built here gets used inside a running project rather than merely stored.