File size: 2,858 Bytes
cf6b8f2
 
 
 
8217c39
cf6b8f2
 
 
 
8217c39
cf6b8f2
 
 
 
 
8217c39
 
 
 
500cf2f
cf6b8f2
 
8217c39
cf6b8f2
 
8217c39
 
 
 
cf6b8f2
 
8217c39
 
cf6b8f2
 
 
8217c39
 
 
 
cf6b8f2
 
 
 
8217c39
 
cf6b8f2
8217c39
cf6b8f2
 
 
 
 
 
8217c39
500cf2f
cf6b8f2
 
 
 
8217c39
cf6b8f2
8217c39
 
 
 
cf6b8f2
 
 
 
8217c39
 
cf6b8f2
 
8217c39
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
---
license: cc-by-4.0
language:
- en
pretty_name: PubMed Embedding Vectors
tags:
- pubmed
- biomedical
- embeddings
- qdrant
- parquet
- retrieval
size_categories:
- 10M<n<100M
configs:
- config_name: neuml_pubmedbert_base_embeddings
  data_files:
  - split: train
    path: data/neuml_pubmedbert_base_embeddings/*.parquet
- config_name: qwen3_embedding_0_6b
  data_files:
  - split: train
    path: data/qwen3_embedding_0_6b/*.parquet
---

# PubMed Embedding Vectors

This dataset contains embedding vectors generated from local PubMed title and abstract text.
It is designed for biomedical retrieval and nearest-neighbor research.

The public files intentionally do not include PubMed titles, abstracts, or full text.
Rows contain PMIDs, embeddings, hashes, and lightweight metadata so researchers can join
against their own authorized PubMed mirror or the official NCBI/PubMed services.

## Configs

| Config | Model | Dim | Rows | Qdrant collection |
| --- | --- | ---: | ---: | --- |
| neuml_pubmedbert_base_embeddings | `NeuML/pubmedbert-base-embeddings` | 768 | 28,460,827 | `pubmed_emb_neuml_pubmedbert_base_embeddings_ddbc790c` |
| qwen3_embedding_0_6b | `Qwen/Qwen3-Embedding-0.6B` | 1024 | 28,460,827 | `pubmed_emb_qwen_qwen3_embedding_0_6b_cdca07b0` |

## Columns

- `pmid`: PubMed identifier.
- `embedding`: fixed-size embedding vector for the selected config.
- `text_sha256`: SHA-256 of the local title+abstract text used for embedding, when available.
- `pub_year`, `pub_month`: publication date metadata, when available.
- `raw_token_count`, `used_token_count`, `was_truncated`: embedding input token metadata, when available.

## Usage

```python
from datasets import load_dataset

repo_id = "aaekay/pubmed-embedding"
ds = load_dataset(repo_id, "qwen3_embedding_0_6b", split="train", streaming=True)
row = next(iter(ds))
print(row["pmid"], len(row["embedding"]))
```

Use the PMID to retrieve citation details from PubMed:

```python
pmid = row["pmid"]
url = f"https://pubmed.ncbi.nlm.nih.gov/{pmid}/"
```

## Source And Redistribution Notes

- Source records come from a local PubMed baseline/update mirror.
- NLM notes that PubMed abstracts may be protected by third-party copyright, so this
  dataset excludes article titles, abstracts, and full text.
- The generated embedding dataset is released as `cc-by-4.0`; upstream PubMed records
  and embedding models remain subject to their own terms.

Relevant upstream documentation:

- PubMed download page: https://pubmed.ncbi.nlm.nih.gov/download/
- NLM copyright information: https://www.nlm.nih.gov/databases/download.html
- Hugging Face large repository guidance: https://huggingface.co/docs/hub/storage-limits

## Manifest

Export metadata, shard checksums, and source collection details are stored in
`metadata/manifest.json`. The public schema is stored in `metadata/schema.json`.