How the graph is built
This page describes the pipeline behind the Alzheimer's graph: where the data comes from, what the agents decide, what code checks, how the result was measured, and what it cannot do yet.
One rule
A model makes the decisions a curator would otherwise make by hand: what a paper states about a pair of entities, which identifier an entity gets, whether an edge should stay. Code checks each decision before it is written. Everything is written to one place, a git repository of Markdown pages called the vault, and every change is a commit that can be read and reverted.
Sources
The graph draws on two kinds of source.
- Structured data: what NCATS Pharos holds about the targets it associates with the disease, with their disease associations, interactions and annotations.
- Literature: open-access papers and PubMed abstracts about the disease. A paper comes in as a PDF, a PubMed Central article or an abstract.
Before review, the Alzheimer's graph held 89,745 edges: 74,216 from Pharos, 10,692 from 132 papers and abstracts, and 4,837 from the disease and phenotype ontologies MONDO and HPO.
From a paper to statements
- The paper's text is extracted in a sandbox without network access. Its PubMed ID and its licence are recorded.
- An agent writes a page for the paper and a page for each gene, disease or chemical it discusses.
- Each entity is matched to a standard identifier through a local index of six ontologies: HGNC for genes, MONDO for diseases, HP for phenotypes, ChEBI for chemicals, GO for processes, and MeSH as a second identifier.
- For every pair of grounded entities, a model answers one question: does this paper relate the two, and how? The answer is either none, or a predicate from the BioLink model with the sentence that supports it.
- Code decides what is written: whether the predicate fits the two categories, whether the quoted sentence exists in the paper, and which page each end belongs to.
The result is a table on the paper's own page, one row per statement. A researcher who disagrees with a row can delete it, and the next export no longer contains it.
Review
A pruning agent reviews the edges from Pharos and from the literature. For each edge it reads the evidence and gives a verdict with a reason. The published graph is what remains after its prunes and its weakest keeps are taken out: 21,641 nodes and 70,937 edges. The 18,808 edges left out are listed next to the export with their verdicts, so nothing is deleted.
Two further checks run beside it. Every literature edge records whether its sentence supports it, and every edge carries a calibrated confidence. A curator can overrule a verdict, and that decision is recorded like any other.
Standards and export
- The graph uses BioLink 4.4.5 with 11 categories and 23 predicates.
- It exports as KGX, and every export passes
kgx validate. - Disease mappings are provided in SSSOM.
- A TRAPI 1.5 endpoint answers queries and passes the Translator project's validator.
Measured results
- Extraction: an entity-pair F1 of 52.3 on the test set of BioRED, with no examples from the benchmark in the prompts. The test set was used once, at the end.
- Pruning: in a blind test with 120 injected errors, the agent removed 85.8 percent of them and kept 82.9 percent of the real edges.
- Cost and speed: a full-text paper becomes statements for a median of 2.67 US dollars, without a manual step. A question gets a cited answer in about 15 seconds.
Known limits
- Extraction scores a little below the best published end-to-end result, which was measured on a different test set.
- About three in ten literature edges are not supported by the sentence quoted for them. Most of these were drawn from the paper as a whole. They are marked and weighted and stay in the graph.
- The kind of study is not recorded. A statement carries its predicate, direction, negation and sentence, but not whether the finding comes from cells, animals or patients.
- Pruning also removes real edges: it keeps 82.9 percent of them. The removed edges are listed with their verdicts.
- The graph covers only the part of Pharos around one disease. A comparison against all of Pharos will therefore find most of it absent.
- Some sources may not be redistributed or name no licence. The public release leaves their edges out.
- The pipeline was built for diseases. Other fields, such as biologics or nanoparticles, need further vocabularies and a place for measured quantities. This is the current work.
The base it grew out of
LibrisVault started as a self-hosted service that turns PDFs, articles and notes into linked, cited wiki pages. The knowledge graph pipeline uses its intake, its job queue and its sandbox: every agent run happens inside an operating-system sandbox, writes are confined to the vault, and an ingest run has no network access. That base is described in the case study on steinborn.dev, and its code is on GitHub as it stood in September 2026. The code of the knowledge graph pipeline is currently not public.
Further reading
- A knowledge graph you can check: the design and the reasoning behind it.
- Ask about every pair: why the agent answers a closed question for every pair of entities.
- The misses were identifiers: why most missed relations were a matter of identifiers.
- librisvault-kg: the openly licensed part of the graph, with every source and its licence.