Skip to content

giacomov/arxiv-sanity-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

arxiv-sanity-bot

Run Arxiv Sanity Bot Maintainability Test Coverage

Slide 2 (2)

This repository contains the code for arxiv-sanity-bot, a system that:

  1. takes the most recent AI/ML papers from arxiv
  2. ranks them by Altmetric score
  3. selects papers above a threshold
  4. sends them to ChatGPT for summarization using the OpenAI API
  5. Extract the first image of the paper
  6. posts the results to Twitter using tweepy

Clicking on the shortened URL in the tweet takes you to the arxiv page.

If you don't use Twitter, you can also find the same tweets posted on LinkedIn

How it works

The code runs periodically as a Github action (so it runs on free compute here on Github). It fetches the last papers from arxiv, parses all the papers contained there extracting title, abstract and arxiv number, then sends the arxiv numbers to Altmetrics to collect the Altmetric score. After putting everything together in a pandas DataFrame, it sorts it by score, then sends the first results to ChatGPT for summarization using the OpenAI API. It then extracts the first image of the paper (if it exists). Each result is concatenated with a shortened version of its Arxiv link and then posted on Twitter, with the first image of the paper attached.

Notes

  • The icon for the bot was generated using Stable Diffusion
  • In order to accumulate enough signal for the Altmetric score, the bot considers papers within a window going back a few days
  • The bot avoids reposting the same paper multiple times by maintaining track of the posted tweets, exploiting a Firebase database (free quota).
  • An automation set up on Zapier takes each tweet and reposts it on LinkedIN.
  • All parameters governing the functioning of the bot are contained in the config.py module.

About

A bot that summarizes AI papers and posts them on twitter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published