Dataset Viewer

The dataset viewer is not available because its heuristics could not detect any supported data files. You can try uploading some data files, or configuring the data files location manually.

usc-chroma-vecs-v1-chunks-v1-s4096-o512-sentence-transformers-static-retrieval-mrl-en-v1

This dataset contains a pre-built ChromaDB database with US Congressional legislation embeddings.

Dataset Structure

This dataset contains the ChromaDB files for legislation chunks with embeddings. The database can be loaded directly using ChromaDB's PersistentClient.

Usage

import chromadb
from huggingface_hub import snapshot_download

# Download the dataset
local_dir = snapshot_download(repo_id="hyperdemocracy/usc-chroma-vecs-v1-chunks-v1-s4096-o512-sentence-transformers-static-retrieval-mrl-en-v1", repo_type="dataset")

# Load the ChromaDB
client = chromadb.PersistentClient(path=local_dir + "/chromadb")
collection = client.get_collection("usc")

# Query the database
results = collection.query(
    query_texts=["your query here"],
    n_results=10
)

Configuration

  • Chunk size and overlap settings are encoded in the dataset name
  • Embedding model information is included in the dataset name
  • This follows the hyperdemocracy dataset naming convention
Downloads last month
19