Dataset card: guide, columns, limits, CC0 licence
Browse files
README.md
CHANGED
|
@@ -1,12 +1,215 @@
|
|
| 1 |
---
|
|
|
|
| 2 |
pretty_name: OpenAlex paper embeddings (DenseOn, English titles and abstracts)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
| 4 |
|
| 5 |
-
# OpenAlex paper embeddings
|
| 6 |
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
|
|
|
| 11 |
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: cc0-1.0
|
| 3 |
pretty_name: OpenAlex paper embeddings (DenseOn, English titles and abstracts)
|
| 4 |
+
language:
|
| 5 |
+
- en
|
| 6 |
+
size_categories:
|
| 7 |
+
- 100M<n<1B
|
| 8 |
+
task_categories:
|
| 9 |
+
- feature-extraction
|
| 10 |
+
- sentence-similarity
|
| 11 |
+
- text-retrieval
|
| 12 |
+
tags:
|
| 13 |
+
- openalex
|
| 14 |
+
- scientific-papers
|
| 15 |
+
- scholarly
|
| 16 |
+
- embeddings
|
| 17 |
+
- semantic-search
|
| 18 |
+
- dense-retrieval
|
| 19 |
+
- science-map
|
| 20 |
+
configs:
|
| 21 |
+
- config_name: default
|
| 22 |
+
data_files:
|
| 23 |
+
- split: train
|
| 24 |
+
path:
|
| 25 |
+
- data/*/*.parquet
|
| 26 |
+
- data/updates/*/*.parquet
|
| 27 |
---
|
| 28 |
|
| 29 |
+
# OpenAlex paper embeddings: 203.7 million English titles + abstracts, ready to search
|
| 30 |
|
| 31 |
+
One row per work in [OpenAlex](https://openalex.org) that has an English abstract:
|
| 32 |
+
its OpenAlex id, DOI, title, date, type, venue, field, a 2D position on a map of science, and a
|
| 33 |
+
768-number **embedding** of its title and abstract made with
|
| 34 |
+
[lightonai/DenseOn](https://huggingface.co/lightonai/DenseOn). Papers about the same thing get
|
| 35 |
+
nearby vectors, so you can search by meaning, find similar papers, cluster, or map all of science.
|
| 36 |
|
| 37 |
+
These are the vectors behind the search on [sciencemadereadable.com](https://sciencemadereadable.com)
|
| 38 |
+
and its [free search API for people and AI agents](https://api.sciencemadereadable.com/api/data/docs).
|
| 39 |
+
|
| 40 |
+
| | |
|
| 41 |
+
|---|---|
|
| 42 |
+
| Rows (embedded works) | **203,725,202** |
|
| 43 |
+
| …of which in the search index | 125,130,657 publications, one per distinct text ([`in_search_index`](#columns)) |
|
| 44 |
+
| Size | 297 GB in 502 Parquet files (0.74 GB each at most), split by publication year |
|
| 45 |
+
| Text embedded | `title + " " + abstract`, English only, first 512 tokens |
|
| 46 |
+
| Vector | 768 × float16, L2-normalised (cosine similarity = dot product) |
|
| 47 |
+
| Metadata as of | OpenAlex snapshot 2026-09-23 + daily OpenAlex API additions to 2026-10-12 |
|
| 48 |
+
| Data release | `20261012T073823Z` |
|
| 49 |
+
|
| 50 |
+
## Pick your path
|
| 51 |
+
|
| 52 |
+
| You have | Do this |
|
| 53 |
+
|---|---|
|
| 54 |
+
| Nothing to download | Use the hosted API: `curl https://ask.sciencemadereadable.com/coral+reef+recovery` ([docs](https://api.sciencemadereadable.com/api/data/docs)) |
|
| 55 |
+
| A laptop | Query the metadata remotely with DuckDB (reads only the columns you ask for), or download one year |
|
| 56 |
+
| ~20 GB of RAM, ~16 GB of disk | Download `index/` and search **all 125 million** papers by meaning ([below](#search-everything-on-your-own-machine)) |
|
| 57 |
+
| ~350 GB of SSD | Download everything: exact re-scoring, your own index, clustering, maps |
|
| 58 |
+
|
| 59 |
+
### Look without downloading (DuckDB)
|
| 60 |
+
|
| 61 |
+
Parquet lets DuckDB fetch only the columns and row groups a query needs, straight from the Hub:
|
| 62 |
+
|
| 63 |
+
```sql
|
| 64 |
+
-- duckdb
|
| 65 |
+
SELECT year, count(*) AS papers
|
| 66 |
+
FROM 'hf://datasets/maximerivest/openalex-denseon-embeddings/data/**/*.parquet'
|
| 67 |
+
WHERE year BETWEEN 2015 AND 2026
|
| 68 |
+
GROUP BY year ORDER BY year;
|
| 69 |
+
```
|
| 70 |
+
|
| 71 |
+
### Download part of it
|
| 72 |
+
|
| 73 |
+
Files are grouped by publication year (`data/2025/`, `data/1999/`, …, plus `data/before-1900/`,
|
| 74 |
+
`data/after-2026/`, `data/no-year/` and the daily additions in `data/updates/`):
|
| 75 |
+
|
| 76 |
+
```sh
|
| 77 |
+
pip install -U huggingface_hub
|
| 78 |
+
hf download maximerivest/openalex-denseon-embeddings --repo-type dataset --include "data/2025/*" --local-dir openalex-denseon
|
| 79 |
+
hf download maximerivest/openalex-denseon-embeddings --repo-type dataset --local-dir openalex-denseon # everything, ~297 GB
|
| 80 |
+
```
|
| 81 |
+
|
| 82 |
+
### Use the vectors
|
| 83 |
+
|
| 84 |
+
```python
|
| 85 |
+
import numpy as np, pyarrow.parquet as pq
|
| 86 |
+
from sentence_transformers import SentenceTransformer
|
| 87 |
+
|
| 88 |
+
t = pq.read_table("openalex-denseon/data/2025/part-00000.parquet")
|
| 89 |
+
E = t["embedding"].combine_chunks().values.to_numpy().reshape(-1, 768) # float16, one row per paper
|
| 90 |
+
|
| 91 |
+
model = SentenceTransformer("lightonai/DenseOn", revision="cb9947ebccb33862d24e3c7ca2edb25e51acd887")
|
| 92 |
+
q = model.encode("coral reef recovery after bleaching", prompt_name="query", normalize_embeddings=True)
|
| 93 |
+
scores = E.astype(np.float32) @ q
|
| 94 |
+
for i in np.argsort(-scores)[:5]:
|
| 95 |
+
print(f"{scores[i]:.3f}", t["title"][i], "https://openalex.org/" + str(t["openalex_id"][i]))
|
| 96 |
+
```
|
| 97 |
+
|
| 98 |
+
Questions are encoded with `prompt_name="query"` (`"query: "` in front), papers with
|
| 99 |
+
`prompt_name="document"` (`"document: "`). To put **your own texts** in the same space, encode
|
| 100 |
+
`title + " " + abstract` with the document prompt: re-encoding papers on a CPU in float32 gives a
|
| 101 |
+
cosine ≥ 0.999 with the stored vectors (we checked).
|
| 102 |
+
|
| 103 |
+
With 🤗 Datasets, stream rather than load: a plain `load_dataset` converts all 297 GB into its
|
| 104 |
+
cache first.
|
| 105 |
+
|
| 106 |
+
```python
|
| 107 |
+
from datasets import load_dataset
|
| 108 |
+
ds = load_dataset("maximerivest/openalex-denseon-embeddings", split="train", streaming=True)
|
| 109 |
+
print(next(iter(ds))["title"])
|
| 110 |
+
```
|
| 111 |
+
|
| 112 |
+
### Search everything on your own machine
|
| 113 |
+
|
| 114 |
+
`index/` holds the search index the live site uses for this release: FAISS `IVF32768_HNSW32,RaBitQ`
|
| 115 |
+
over the 125,130,657 rows with `in_search_index = true` (14.1 GB), and
|
| 116 |
+
`index/work_ids.npy` (row number → OpenAlex W-number, 1.6 GB). Its ids are the `row` column.
|
| 117 |
+
|
| 118 |
+
```sh
|
| 119 |
+
hf download maximerivest/openalex-denseon-embeddings --repo-type dataset --include "index/*" --include "*.py" --local-dir openalex-denseon
|
| 120 |
+
cd openalex-denseon
|
| 121 |
+
uv run search.py "coral reef recovery after bleaching" # needs ~20 GB of RAM
|
| 122 |
+
```
|
| 123 |
+
|
| 124 |
+
| What you downloaded | Quality of the top 10 | Time per question |
|
| 125 |
+
|---|---|---|
|
| 126 |
+
| `index/` only | ~75% of an exact search's top 10 (approximate scores) | ~5–30 ms, after a ~20 s load |
|
| 127 |
+
| `index/` + all of `data/` + `uv run make_vectors.py` (builds a 313 GB `vectors.npy`; use an SSD) | ~99% (300 candidates re-scored exactly) | ~10–50 ms |
|
| 128 |
+
| `data/` for some years, no index | exact, over those years | ~1 minute per recent year from an SSD (each is 15–40 GB) |
|
| 129 |
+
|
| 130 |
+
(Measured on 200 paper-vector questions against a deeper exact re-scoring, release `20261012T073823Z`;
|
| 131 |
+
not a relevance judgement. The index was written by `faiss-cpu==1.15.1`, which `search.py` pins.)
|
| 132 |
+
|
| 133 |
+
The live site ranks a little differently: it also demotes likely junk records (spam, paratext),
|
| 134 |
+
which this dataset does not include.
|
| 135 |
+
|
| 136 |
+
## Columns
|
| 137 |
+
|
| 138 |
+
| Column | Type | What it is |
|
| 139 |
+
|---|---|---|
|
| 140 |
+
| `row` | int64 | Row number, 0 … 203,725,201. The index's ids. New versions add rows at the end ([Versions](#versions)) |
|
| 141 |
+
| `openalex_id` | string | `W…` id; `https://openalex.org/<id>` is the record, `https://api.openalex.org/works/<id>` its full metadata |
|
| 142 |
+
| `doi` | string | DOI without `https://doi.org/`, null if none |
|
| 143 |
+
| `title` | string | Title as embedded |
|
| 144 |
+
| `publication_date`, `year` | date, int16 | From OpenAlex. A few are wrong in OpenAlex (years like 1007 or 2050) |
|
| 145 |
+
| `type` | string | OpenAlex type: `article`, `book-chapter`, `preprint`, `review`, `paratext`, `erratum`, … |
|
| 146 |
+
| `venue` | string | Journal, conference or repository |
|
| 147 |
+
| `field`, `subfield`, `topic` | string | OpenAlex primary topic and its subfield and field |
|
| 148 |
+
| `cited_by_count` | int32 | Citations counted by OpenAlex at that time |
|
| 149 |
+
| `is_retracted`, `is_open_access`, `license` | bool, bool, string | From OpenAlex (`license` is the work's licence, e.g. `cc-by`) |
|
| 150 |
+
| `in_search_index` | bool | In the search index: a publication type (article, review, preprint, book, chapter, conference paper, thesis, report, letter, editorial, …) and the smallest W-number among works with byte-identical title + abstract |
|
| 151 |
+
| `atlas_x`, `atlas_y` | float32 | Position (0–1) on the [map of science](https://sciencemadereadable.com): openTSNE layout of a reference sample, every paper placed from its 10 nearest reference papers. Atlas `20261009T190750-tsne-mode`. Projections distort distances: use it to look, not to measure |
|
| 152 |
+
| `text_hash` | binary(16) | BLAKE2b-128 of the UTF-8 text embedded; equal hash = identical text |
|
| 153 |
+
| `embedding` | float16[768] | The vector |
|
| 154 |
+
|
| 155 |
+
Every Parquet file also carries the model, revision, prompts and input format in its metadata.
|
| 156 |
+
|
| 157 |
+
## How it was made
|
| 158 |
+
|
| 159 |
+
- **Selection.** All OpenAlex works whose language is `en` and whose abstract is not empty, with no
|
| 160 |
+
filter on type, open access or completeness (203,725,202 rows: 203,486,035 from the OpenAlex snapshot
|
| 161 |
+
of 2026-09-23, 239,167 new papers from the daily API run since).
|
| 162 |
+
- **Text.** `((title or "") + " " + abstract).strip()`, abstract rebuilt from OpenAlex's inverted
|
| 163 |
+
index (words put back in order). DenseOn reads the first 512 tokens.
|
| 164 |
+
- **Model.** `lightonai/DenseOn` at revision `cb9947ebccb33862d24e3c7ca2edb25e51acd887` (149M parameters, Apache-2.0),
|
| 165 |
+
sentence-transformers 5.3.0, bfloat16 on an RTX 3090, `document: ` prompt, then L2-normalised
|
| 166 |
+
in float32 and stored as float16.
|
| 167 |
+
- **Checks.** For every year folder, the title + abstract of a full shard of rows was hashed again
|
| 168 |
+
from the OpenAlex records and compared with the hash stored next to each vector: all matched.
|
| 169 |
+
Every row was joined to exactly one OpenAlex record.
|
| 170 |
+
|
| 171 |
+
## Limits, said plainly
|
| 172 |
+
|
| 173 |
+
- **Not all of science.** Only works OpenAlex labels English *and* gives an abstract. Many papers
|
| 174 |
+
(older ones, many books, much non-English research) have no abstract in OpenAlex, and its language
|
| 175 |
+
labels make mistakes in both directions.
|
| 176 |
+
- **Not only papers.** 73,731,213 rows (36%) are not publications by the definition
|
| 177 |
+
above (`dataset` 57.3M, `other` 11.8M, `paratext` 0.8M, `software` 0.7M, …), and 4,863,332 publications repeat another record's exact title and abstract.
|
| 178 |
+
`in_search_index` removes both; `type` and `text_hash` let you choose differently.
|
| 179 |
+
- **Metadata ages.** Titles, citation counts, topics and retractions are as of 2026-09-23 (daily
|
| 180 |
+
additions: as of the day they were fetched). OpenAlex re-ran its topic classifier after that
|
| 181 |
+
snapshot, so recent additions carry newer topic labels than older rows.
|
| 182 |
+
- **No abstracts here.** Abstracts belong to their publishers, and this dataset does not redistribute
|
| 183 |
+
them. Get them from OpenAlex (free snapshot or API) by `openalex_id`, or through our
|
| 184 |
+
[API](https://api.sciencemadereadable.com/api/data/docs).
|
| 185 |
+
- **Search quality** of the vectors is DenseOn's (BEIR nDCG@10 56.2 per its authors). We have not
|
| 186 |
+
published a relevance evaluation of this release.
|
| 187 |
+
|
| 188 |
+
## Versions
|
| 189 |
+
|
| 190 |
+
New versions add files for new papers and may refresh metadata columns; an existing row keeps its
|
| 191 |
+
`row` number and vector. A change that would renumber rows or change vectors (a new model, a new
|
| 192 |
+
way to build the text) will be a separate dataset, not a silent update. Each version is a tagged
|
| 193 |
+
revision of this repository named after its data release; `export.json` describes it.
|
| 194 |
+
|
| 195 |
+
## Licence
|
| 196 |
+
|
| 197 |
+
CC0 1.0: no rights reserved. Use, share and build on it for anything, commercial or not, without asking. Credit is appreciated, not required (see Cite).
|
| 198 |
+
|
| 199 |
+
The metadata comes from [OpenAlex](https://openalex.org) (CC0). DenseOn is Apache-2.0.
|
| 200 |
+
|
| 201 |
+
## Cite
|
| 202 |
+
|
| 203 |
+
```bibtex
|
| 204 |
+
@misc{rivest_openalex_denseon_2026,
|
| 205 |
+
author = {Rivest, Maxime},
|
| 206 |
+
title = {OpenAlex paper embeddings (DenseOn, English titles and abstracts)},
|
| 207 |
+
year = {2026},
|
| 208 |
+
publisher = {Hugging Face},
|
| 209 |
+
url = {https://huggingface.co/datasets/maximerivest/openalex-denseon-embeddings}
|
| 210 |
+
}
|
| 211 |
+
```
|
| 212 |
+
|
| 213 |
+
Also cite OpenAlex (Priem, Piwowar & Orr 2022, [arXiv:2205.01833](https://arxiv.org/abs/2205.01833)) and DenseOn.
|
| 214 |
+
Made by [ScienceMadeReadable](https://sciencemadereadable.com); code: [srl-search](https://github.com/MaximeRivest/srl-search),
|
| 215 |
+
[pipeline](https://github.com/MaximeRivest/ScholarsReadingList-v2/tree/main/pipeline).
|