huggingface/paperswithcode
This repository hosts the code of Papers with Code, which tracks trending AI research with code, datasets and leaderboards.
What it solves
Papers with Code makes open AI research and its artifacts accessible to everyone. It recreates the original paperswithcode.com (retired by Meta in 2025) and keeps it up to date by automatically importing fresh content from Hugging Face, arXiv, GitHub, and public leaderboards. Without this, finding the right paper, its official code, datasets, and evaluation results would require visiting many separate sources and manually checking for updates.
How it works
The platform is a web application with a React frontend and a FastAPI backend written in Python. It stores data in PostgreSQL 16 with two special extensions: pg_trgm for lexical (word-based) search and pgvector for semantic (meaning-based) search, combining them into a hybrid search system. The catalog includes papers, code, models, datasets, tasks, methods, and leaderboards. Automated jobs and agent workflows run on a schedule to import new papers, link tasks and methods, refresh star counts and citations, and propose evaluations. The entire catalog is exposed through a public REST API under /api/v1/ (compatible with the original Papers with Code API client) and an optional research chat assistant that uses MCP tools to answer questions grounded in the catalog. A maintenance command-line tool (pwc) helps manage the catalog and run scheduled jobs.
Who it’s for
Anyone interested in AI research — researchers, students, developers, and practitioners — can use Papers with Code to discover papers, explore associated code and datasets, compare benchmark results, and stay current with the latest work. It is also useful for teams that want to build tools on top of a comprehensive, up-to-date research catalog via the public API or the MCP-based chat.
Highlights
- Paper catalog with official code, project pages, Hugging Face models, datasets, and Spaces, plus thumbnails, TL;DRs, lineage, and a Markdown reader.
- Browsable taxonomy of tasks, methods, datasets, frameworks, conferences, organizations, and authors, with trending views.
- Leaderboards showing paper-native evaluation results on benchmarks, with scheduled syncs from external leaderboards.
- Hybrid search combining lexical (pg_trgm) and semantic (pgvector) retrieval.
- Public REST API compatible with the original Papers with Code client, documented at /docs.
- Optional research chat grounded in the catalog via Papers with Code MCP tools.
- Curation automation using scheduled jobs and agent workflows to import, link, and refresh data.
Related
- Project
- Project
- Project
- Project