Skip to content

diegopacheco/ras

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Arxiv Sumarizer

Rust Arxiv Summarizer (RAS) is a Rust application that fetches research papers from arXiv, extracts their content, and generates concise summaries using OpenAI's language models. The summaries are saved in markdown format for easy reading and sharing. The application try to fetch the latest 100 papers in the Artificial Intelligence (cs.AI) category.

How it works?

  • Build int Rust 1.90+
  • Fetches papers about AI from arXiv https://arxiv.org/list/cs.AI/recent
  • Make a prompt to call OpenAI API with the PDF content and the summary prompt.
  • OpenAI model used: gpt-4o-mini
  • Saves is in a markdown file.
  • Uses the markdown files as cache to avoid reprocessing papers.

Build

cargo build

Run

OPEN_AI_API_KEY="sk-proj-..."
cargo run

Result:

❯ cargo run
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.09s
     Running `target/debug/arxiv-summarizer`

  _____            _____
 |  __ \     /\   / ____|
 | |__) |   /  \ | (___
 |  _  /   / /\ \ \___ \
 | | \ \  / ____ \____) |
 |_|  \_\/_/    \_\_____/

        by Diego Pacheco

Found 99 existing summaries
Fetching papers from arXiv...
Found 100 papers
1 papers need processing
Processing: Topology Matters: Measuring Memory Leakage in Multi-Agent LLMs
  PDF already exists: Topology Matters_ Measuring Memory Leakage in Multi-Agent LLMs.pdf
  Extracting text from PDF: Topology Matters: Measuring Memory Leakage in Multi-Agent LLMs
  Generating summary: Topology Matters: Measuring Memory Leakage in Multi-Agent LLMs
  Summary saved: Topology Matters_ Measuring Memory Leakage in Multi-Agent LLMs-summary.md
Progress: 1/1

Done!

About

ras: Rust Arxiv Sumarizer

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages