--- license: cc-by-4.0 task_categories: - question-answering - text-retrieval language: - en tags: - biomedical - pubmed - knowledge-graph - graphrag - neo4j - faiss - embeddings size_categories: - 10M(Paper) | | ASSOCIATE | 9.2M | (Gene)-[:ASSOCIATE]->(Disease) | | TREAT | 3.1M | (Chemical)-[:TREAT]->(Disease) | | POSITIVE_CORRELATE | 1.8M | (Chemical)-[:POSITIVE_CORRELATE]->(Gene) | | NEGATIVE_CORRELATE | 1.8M | (Chemical)-[:NEGATIVE_CORRELATE]->(Gene) | | CAUSE | 1.3M | (Mutation)-[:CAUSE]->(Disease) | | STIMULATE | 388K | (Chemical)-[:STIMULATE]->(Gene) | | INHIBIT | 307K | (Chemical)-[:INHIBIT]->(Gene) | | COTREAT | 237K | (Chemical)-[:COTREAT]->(Chemical) | | COMPARE | 208K | (Chemical)-[:COMPARE]->(Chemical) | | INTERACT | 123K | (Gene)-[:INTERACT]->(Gene) | | PREVENT | ~5K | (Mutation)-[:PREVENT]->(Disease) | ## Embedding Models | Model | HuggingFace | Dimensions | Recommended For | |-------|-------------|------------|-----------------| | MedCPT | [`ncbi/MedCPT-Article-Encoder`](https://huggingface.co/ncbi/MedCPT-Article-Encoder) | 768 | Medical literature search | | BiCA | [`bisectgroup/BiCA-base`](https://huggingface.co/bisectgroup/BiCA-base) | 768 | Biomedical contrastive learning | | MedTE | [`MohammadKhodadad/MedTE`](https://huggingface.co/MohammadKhodadad/MedTE) | 768 | Medical text embeddings | ## Sample Neo4j Queries ### Find genes associated with Alzheimer's disease ```cypher MATCH (d:Disease)-[:ASSOCIATE]-(g:Gene) WHERE d.mention CONTAINS "Alzheimer" RETURN g.mention AS gene, g.entity_id AS ncbi_id LIMIT 20 ``` ### Find drugs that treat diabetes ```cypher MATCH (c:Chemical)-[:TREAT]->(d:Disease) WHERE d.mention CONTAINS "Diabetes" RETURN c.mention AS drug, count(*) AS evidence_count ORDER BY evidence_count DESC LIMIT 10 ``` ### Multi-hop: Find genes related to drugs treating a disease ```cypher MATCH (c:Chemical)-[:TREAT]->(d:Disease) WHERE d.mention CONTAINS "Breast" MATCH (c)-[r:ASSOCIATE|INHIBIT|STIMULATE]-(g:Gene) RETURN DISTINCT g.mention AS gene, c.mention AS drug, type(r) AS relationship LIMIT 25 ``` ### Find papers discussing a specific gene ```cypher MATCH (g:Gene {mention: "BRCA1"})-[:MENTIONED_IN]->(p:Paper) RETURN p.pmid, p.title, p.year ORDER BY p.year DESC LIMIT 10 ``` ## Data Sources | Source | Description | Link | |--------|-------------|------| | **PubMed** | 12.5M biomedical abstracts (2000-2024) | [pubmed.ncbi.nlm.nih.gov](https://pubmed.ncbi.nlm.nih.gov/) | | **PubTator3** | Pre-extracted entities & relationships | [ncbi.nlm.nih.gov/research/pubtator3](https://www.ncbi.nlm.nih.gov/research/pubtator3/) | | **NCBI Gene** | Gene symbols and metadata | [ncbi.nlm.nih.gov/gene](https://www.ncbi.nlm.nih.gov/gene/) | | **MeSH** | Medical Subject Headings (diseases, chemicals) | [meshb.nlm.nih.gov](https://meshb.nlm.nih.gov/) | | **NCBI Taxonomy** | Species classification | [ncbi.nlm.nih.gov/taxonomy](https://www.ncbi.nlm.nih.gov/taxonomy) | | **Cellosaurus** | Cell line database | [cellosaurus.org](https://www.cellosaurus.org/) | | **dbSNP** | Mutation/variant identifiers | [ncbi.nlm.nih.gov/snp](https://www.ncbi.nlm.nih.gov/snp/) | ## Citation ```bibtex @dataset{pubmed_graphrag_2025, author = {Roxas, Danny}, title = {PubMed-GraphRAG: A Large-scale Biomedical Knowledge Graph Dataset}, year = {2025}, publisher = {Hugging Face}, howpublished = {\url{https://huggingface.co/datasets/dannyroxas/pubmed-graphrag-data}} } ``` ## License This dataset is derived from publicly available biomedical databases: - [PubMed](https://pubmed.ncbi.nlm.nih.gov/) abstracts (NLM/NCBI) - [PubTator3](https://www.ncbi.nlm.nih.gov/research/pubtator3/) annotations (NCBI) - [MeSH](https://meshb.nlm.nih.gov/) descriptors (NLM) - [NCBI Gene](https://www.ncbi.nlm.nih.gov/gene/) and [Taxonomy](https://www.ncbi.nlm.nih.gov/taxonomy) databases Released under [CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/) for academic research purposes. ## Acknowledgments - [National Center for Biotechnology Information (NCBI)](https://www.ncbi.nlm.nih.gov/) - [National Library of Medicine (NLM)](https://www.nlm.nih.gov/) - [Meta AI - FAISS](https://github.com/facebookresearch/faiss) - [Neo4j](https://neo4j.com/)