examples/smolagents/most_upvoted_paper/README.md
This script fetches, downloads, and summarizes the most upvoted paper from Hugging Face daily papers. It uses SmoLAgents to create a pipeline that:
get_hugging_face_top_daily_paper(): Scrapes and retrieves the most upvoted paper from HuggingFaceget_paper_id_by_title(): Finds the corresponding arXiv ID for a paper titledownload_paper_by_id(): Downloads the paper PDF from arXivread_pdf_file(): Processes the PDF and extracts text from the first three pagespip install -r requirements.txt
from most_upvoted_paper import main
# Run the paper summarization pipeline
main()
The script will:
This is an example implementation using the SmoLAgents framework. The script demonstrates how to create a complex pipeline by combining multiple tools and LLM capabilities.