language:en license:mit size_categories:10K<n<100K format:parquet modality:text library:datasets library:dask library:mlcroissant library:polars region:us
---
license: mit
language:
- en
pretty_name: SCOTUS Opinions
---

# SCOTUS Opinions
Collection of embeddings of SCOTUS opinions from argument years 1991 to 2024 (as of Jan 2025). Source material is available from the [official SCOTUS web site](https://www.supremecourt.gov/opinions/USReports.aspx).

Data is generated using `text-embedding-ada-002`, with a chunk size of 2560 tokens and 256-token overlap.


## Usage
To load the dataset into langchain `VectorStore`:
```
vectorstore = SKLearnVectorStore(
      embedding=OpenAIEmbeddings(openai_api_key=api_key),
      persist_path=$PATH,
      serializer="parquet")
```