license: cc-by-nc-4.0
task_categories:
- text-retrieval
- question-answering
language:
- en
tags:
- rag
- retrieval-augmented-generation
- biomedical
- neuroscience
- rare-disease
- STXBP1
- epilepsy
- chromadb
- vector-database
- nvidia
- nemotron
- llama
- sentence-transformers
size_categories:
- 100K<n<1M
pretty_name: STXBP1 RAG Database v10 - NVIDIA Nemotron Embeddings (Premium)
π§¬β‘ STXBP1-ARIA RAG Database v10 - NVIDIA Nemotron Embeddings
The most advanced RAG database for STXBP1 therapeutic research.
A pre-built ChromaDB vector database containing: 571,465 indexed text chunks from ~17,000 curated PubMed Central (PMC) biomedical papers, Embedded with NVIDIA's state-of-the-art Llama-Nemotron-Embed-1B-v2 model featuring 2048-dimensional embeddings.
β‘ This is the premium GPU-accelerated version β Nemotron embeddings deliver maximum semantic precision for therapeutic queries, but require a GPU with 2-4GB VRAM. For a lightweight CPU-friendly alternative, see: STXBP1-RAG-Database (BGE)
π Why Nemotron?
NVIDIA's Nemotron embedding model ranks #2 on MTEB retrieval benchmarks β distilled from their 8B flagship into an efficient 1B parameter model.
| Feature | BGE (v9) | Nemotron (v10) |
|---|---|---|
| Embedding Dims | 768 | 2048 β¬οΈ 2.7x |
| Model Params | 110M | 1B β¬οΈ 9x |
| MTEB Retrieval | ~63 | ~69 β¬οΈ +6 pts |
| Semantic Precision | Good | Excellent |
| Hardware | CPU OK | GPU recommended |
| Optional Reranker | β | β Available |
What 2048 Dimensions Means
Semantic Space Visualization:
768 dims (BGE) 2048 dims (Nemotron)
βββββββββββββββββ βββββββββββββββββββββ
β β
/|\ / | \
/ | \ / | \
β β β β β β
Good separation Rich semantic space!
Fine-grained distinctions
Real-world impact:
- "haploinsufficiency" vs "dominant negative" β better separated
- "4-PBA chaperone" vs "AAV gene therapy" β distinct clusters
- "K196X nonsense" vs "R406H missense" β clear differentiation
π Dataset Statistics
| Metric | Value |
|---|---|
| Total Chunks | 571,465 |
| Source Papers | ~17,000 PMC articles |
| Curated Entries | 24 expert-written |
| Database Size | ~11.5 GB |
| Embedding Model | nvidia/llama-nemotron-embed-1b-v2 |
| Embedding Dimensions | 2048 |
| Model Parameters | 1B |
| Chunk Size | ~1500 chars with 200 char overlap |
| Index Type | ChromaDB with HNSW |
| Build Hardware | NVIDIA H100 80GB |
| Build Date | January 2026 |
π― Purpose
This database powers STXBP1-ARIA MAX, the premium therapeutic discovery system, enabling:
- Maximum retrieval precision for complex therapeutic queries
- Fine-grained semantic distinctions between mutation types and mechanisms
- Optional reranking with Nemotron cross-encoder for top-k refinement
- Literature-grounded responses with PMC citations
π Contents
STXBP1-RAG-Nemotron/
βββ chroma.sqlite3 # Main database (~7 GB)
βββ metadata.json # Build info & config
βββ [uuid]/ # HNSW index files
βββ data_level0.bin # 2048-dim vectors (~4.6 GB)
βββ header.bin
βββ index_metadata.pickle
βββ length.bin
βββ link_lists.bin
π§ Usage
Requirements
pip install transformers==4.47.1 sentence-transformers chromadb huggingface_hub torch
Hardware: GPU with 2-4GB VRAM recommended (runs on CPU but slower)
Quick Start
from huggingface_hub import snapshot_download
import chromadb
from chromadb.config import Settings
from sentence_transformers import SentenceTransformer
# Download database
db_path = snapshot_download(
repo_id="SkyWhal3/STXBP1-RAG-Nemotron",
repo_type="dataset"
)
# Load Nemotron embedding model (MUST match!)
embedder = SentenceTransformer(
"nvidia/llama-nemotron-embed-1b-v2",
trust_remote_code=True
)
# Move to GPU if available
import torch
if torch.cuda.is_available():
embedder = embedder.to('cuda')
# Connect to ChromaDB
client = chromadb.PersistentClient(
path=db_path,
settings=Settings(anonymized_telemetry=False)
)
# Get collection
collection = client.get_collection("stxbp1_papers")
print(f"Loaded {collection.count():,} chunks")
# Search
query = "STXBP1 K196X nonsense mutation prime editing therapeutic approaches"
query_embedding = embedder.encode(query, convert_to_numpy=True).tolist()
results = collection.query(
query_embeddings=[query_embedding],
n_results=10,
include=["documents", "metadatas", "distances"]
)
for doc, meta, dist in zip(
results['documents'][0],
results['metadatas'][0],
results['distances'][0]
):
pmcid = meta.get('pmcid', meta.get('pmc_id', 'Unknown'))
print(f"[{pmcid}] (distance: {dist:.4f})")
print(f"{doc[:200]}...\n")
With Reranker (Maximum Precision)
from sentence_transformers import CrossEncoder
# Load reranker
reranker = CrossEncoder(
"nvidia/llama-nemotron-rerank-1b-v2",
trust_remote_code=True
)
# Get more candidates, then rerank
results = collection.query(
query_embeddings=[query_embedding],
n_results=100, # Fetch more for reranking
include=["documents", "metadatas", "distances"]
)
# Rerank top candidates
docs = results['documents'][0]
pairs = [[query, doc] for doc in docs]
rerank_scores = reranker.predict(pairs)
# Sort by rerank score
ranked = sorted(
zip(rerank_scores, docs, results['metadatas'][0]),
key=lambda x: x[0],
reverse=True
)
# Top 10 after reranking
for score, doc, meta in ranked[:10]:
pmcid = meta.get('pmcid', 'Unknown')
print(f"[{pmcid}] rerank_score: {score:.4f}")
π Curated Corpus
The database indexes ~17,000 curated papers filtered for STXBP1 relevance:
Primary Keywords (Auto-include)
- STXBP1, Munc18-1, Munc18, syntaxin binding protein, UNC-18, N-Sec1
Related Topics
- Epilepsy & Encephalopathy: DEE, Ohtahara, West syndrome, Dravet, infantile spasms
- Synaptic Machinery: SNARE complex, syntaxin-1, SNAP-25, synaptotagmin, exocytosis
- Genetics: haploinsufficiency, dominant negative, nonsense/missense mutations
- Gene Therapy: AAV, ASO, CRISPR, base editing, prime editing
- Protein Therapeutics: 4-PBA, chaperones, readthrough compounds
- Neurodevelopment: intellectual disability, autism, developmental delay
Curated Expert Entries
24 hand-written entries covering:
- Guiberson 2018 (4-PBA mechanism)
- Kovacevic 2018 (functional characterization)
- Dominant negative vs haploinsufficiency mechanisms
- Variant-specific therapeutic summaries
- Clinical trial information (NCT04937062)
- Base/prime editing feasibility rules
ποΈ How It Was Built
Pipeline
- Corpus Curation β Filtered 27K multimodal PMC papers β 17K relevant
- Chunking β 1500 char chunks with 200 char overlap
- Embedding β NVIDIA Llama-Nemotron-Embed-1B-v2 (2048 dims)
- Indexing β ChromaDB HNSW on H100 GPU
- Validation β Core pack verification & curated injection
Build Stats
| Stage | Details |
|---|---|
| Hardware | NVIDIA H100 80GB SXM5 |
| Batch Size | 128 |
| Build Time | ~4 hours |
| Total Chunks | 571,465 |
| Index Size | ~11.5 GB |
β‘ Performance
| Metric | Value |
|---|---|
| Query Embedding | ~50ms (GPU) |
| Retrieval (k=25) | ~20ms |
| + Reranking (k=100β25) | ~200ms |
| Total Latency | <300ms |
GPU Memory Usage
| Mode | VRAM |
|---|---|
| Embedding only | ~2-3 GB |
| Embedding + Reranker | ~4-6 GB |
| T4 (16GB) | β Compatible |
| RTX 3080 (10GB) | β Compatible |
| Free Colab | β οΈ Tight fit |
π Metadata Schema
{
"pmcid": "PMC1234567",
"title": "Paper title (truncated to 500 chars)",
"chunk_idx": 0,
"source": "multimodal_corpus | targeted_paper | curated"
}
π¬ Use Cases
- Precision Therapeutic Queries β "What gene editing approaches work for STXBP1 nonsense mutations?"
- Variant-Specific Research β "K196X dominant negative mechanism and rescue strategies"
- Mechanism Differentiation β Distinguish haploinsufficiency from dominant negative
- Clinical Evidence β Find trial data and case reports
- Comparative Analysis β Compare therapeutic modalities with nuanced retrieval
π Related Resources
| Resource | Link |
|---|---|
| BGE Version (CPU-friendly) | STXBP1-RAG-Database |
| STXBP1-ARIA MAX Space | HuggingFace Space |
| Variant Lookup | STXBP1-Variant-Lookup |
| STXBP1 Foundation | stxbp1disorders.org |
| Nemotron Model | nvidia/llama-nemotron-embed-1b-v2 |
π Citation
@dataset{stxbp1_rag_nemotron_2026,
author = {Freygang, Adam},
title = {STXBP1-ARIA RAG Nemotron: Premium Vector Database with NVIDIA Embeddings for Therapeutic Discovery},
year = {2026},
publisher = {HuggingFace},
url = {https://huggingface.co/datasets/SkyWhal3/STXBP1-RAG-Nemotron}
}
π§ Contact
Adam Freygang
AI/ML Engineer & STXBP1 Parent Researcher
SkyWhal3 on HuggingFace
Built with β€οΈ and an H100 for the STXBP1 community
Part of the NeuroSenpai + STXBP1-ARIA therapeutic discovery system
π Acknowledgments
- NVIDIA for the Nemotron embedding models
- Lambda Labs for H100 GPU access
- STXBP1 Foundation for supporting rare disease research
- Anthropic Claude for development assistance