davenporten/nrc-regulatory-embeddings
NRC Regulatory Embeddings 37,734 chunked and embedded NRC nuclear regulatory documents, ready for use in RAG pipelines. Built for the nrc-licensing-rag project, an AI system for analyzing nuclear Combined License Applications (COLAs). Contents Source Documents NUREG-0800 (Standard Review Plan) chapters 1-19 2,436 sections 10 CFR Parts 20, 50, 51, 52, 72, 73, 100 ~504 sections Regulatory Guide Division 1 (1.1-1.262) 242 guides Regulatory Guide… See the full description on the dataset page: https://huggingface.co/datasets/davenporten/nrc-regulatory-embeddings.
NRC Regulatory Embeddings
37,734 chunked and embedded NRC nuclear regulatory documents, ready for use in RAG pipelines.
Built for the nrc-licensing-rag project, an AI system for analyzing nuclear Combined License Applications (COLAs).
Contents
Schema
Usage
from datasets import load_dataset
ds = load_dataset("davenporten/nrc-regulatory-embeddings")
df = ds["train"].to_pandas()Or load directly with pandas:
import pandas as pd
df = pd.read_parquet("hf://datasets/davenporten/nrc-regulatory-embeddings/data/nrc-regulatory-embeddings.parquet")Load into ChromaDB
import chromadb
import pandas as pd
df = pd.read_parquet("hf://datasets/davenporten/nrc-regulatory-embeddings/data/nrc-regulatory-embeddings.parquet")
client = chromadb.HttpClient(host="localhost", port=8000)
col = client.get_or_create_collection("regulations")
batch_size = 500
for i in range(0, len(df), batch_size):
batch = df.iloc[i:i+batch_size]
col.add(
ids=batch["id"].tolist(),
documents=batch["text"].tolist(),
embeddings=batch["embedding"].tolist(),
metadatas=batch.drop(columns=["id", "text", "embedding"]).to_dict("records"),
)Embeddings
Generated with OpenAI text-embedding-3-small (1536 dimensions). To query without re-embedding your documents, use the same model.
License
MIT, documents are sourced from publicly available NRC publications.
