Google Patents Public Datasets
Google Patents Public Datasets is one of the broadest patent collections you can query in a single place, gathering more than 120M patent documents from over 100 offices worldwide. It spans applications, pre-grant publications, and granted patents, with the bibliographic data, full text, classifications, and citations attached. On top of the documents sit hundreds of millions of USPTO events, including the office actions exchanged between applicants and examiners, so you can trace how a patent moved through examination rather than just reading its final form.
You reach all of it through BigQuery, Google's cloud data warehouse, where the collection lives as SQL-queryable tables. For RAG that is a genuine advantage: you can narrow to exactly the patents you want by office, date, classification code, assignee, or keyword, then export a focused slice instead of wrestling with raw bulk files. A common pattern is a single BigQuery job that pulls the abstracts and claims for your domain, which you then chunk and embed for a vector database.
The data is free under CC BY 4.0, so commercial use is fine provided you attribute it. The cost to watch is compute, not licensing: BigQuery bills for the bytes each query scans, and these tables are large, so an unfiltered `SELECT *` can run up a bill quickly. Select only the columns and partitions you need, and lean on preview and sampling while you develop.
Two more caveats. Patent prose is dense, formulaic legalese that does not always chunk or embed cleanly, so budget real time for preprocessing. And both coverage and text quality vary by office and era, with older and non-English documents patchier than recent US and European filings.
For focused US machine-learning work, the Harvard USPTO Patent Dataset (HUPD) is a tidier, ready-made alternative. For the widest international coverage in one queryable place, or for studying examination history, this is the stronger pick.
Related sources
BIGPATENT
A corpus of 1.3 million US utility patents filed between 1971 and 2018, each paired with its human-written abstract as a gold-standard summary and organised by Cooperative Patent Classification code. A large, clean patent text corpus built for abstractive summarisation and other patent NLP work.
EPO Espacenet & Open Patent Services
Free access to over 140M patent documents from the European Patent Office (EPO). Its Open Patent Services text analysis tools have made patent full texts much easier to reach, though the terms are open access rather than an open reuse licence.
Harvard USPTO Patent Dataset (HUPD)
A large-scale, structured corpus of US patent applications built specifically for machine learning and natural language processing research. It fills the gap left by mainstream patent search tools, which are not designed with the ML and NLP community in mind.
PatentsView
A platform from the US Patent and Trademark Office (USPTO) for exploring US patent data, with visualisation and analysis tools. It connects patents, inventors, organisations, and locations in a regularly updated database, and offers both an API and complete bulk data tables.