Skip to content
RAG Repo

Stack Exchange Data Dump

Stack Exchange publishes a full export of its network as `XML` files, hosted on the Internet Archive. The dump covers all sites, from Stack Overflow to smaller communities on topics like maths, cooking, and law, so you can pick just the domains you need.

Each site's export includes posts (questions and answers), comments, votes, tags, badges, and user profiles. The structured voting and acceptance data is particularly useful: it lets you rank answers by how the community rated them, which is a strong quality signal when you are selecting passages to retrieve.

For RAG, this is a go-to source for technical question answering. You can pair a question with its accepted answer to build clean query-and-response pairs, or index whole threads as passages. Everything is licensed CC BY-SA 4.0, so you can reuse it as long as you attribute and share alike.

question-answeringstack-overflowcommunitytechnicalcc-by-sa

Related sources