Skip to main content

Command-line agent that pulls papers from arXiv and summarizes / explains them with a local open-source model.

Project description

arDive: a simple dive into your ArXiv

A small command-line agent that pulls papers from arXiv and uses Llama3.2 to summarize, explain, compare, and digest them. Anyone can easily install and use without the need of a paid plan.

Install

# 1. Install Ollama (free, runs models locally): https://ollama.com
ollama pull llama3.2        # or any open model you like

# 2. Install arDive
pip install ardive

That's it. arDive talks to the local Ollama server. Pick a different model with ARDIVE_MODEL (e.g. export ARDIVE_MODEL=qwen2.5), or point at a remote Ollama with OLLAMA_HOST.

From source

git clone https://github.com/rohankosalge/arDive
cd arDive
pip install -e .

Usage

# Summarize a paper as bullet points
ardive sum 1234.56789

# Focus on one section, cap the bullets
ardive sum 1234.56789 --section methodology --max-bullets 5

# Explain like I'm 5 (works on every command)
ardive sum 1234.56789 --eli5

# Compare two or more papers
ardive comp 1234.56789 9876.54321

# Digest a topic (searches arXiv, default 8 papers)
ardive dig "diffusion models for protein folding"
ardive dig "graph neural networks" -n 12

Commands

Command What it does
sum <id> Bullet-point summary of one paper (full PDF text).
comp <id> <id> [...] Compare two or more papers.
dig <topic> Search arXiv by topic and digest the top results.

Flags

  • --eli5 — explain in plain, jargon-free language (all commands).
  • --section {abstract,intro,methodology,related,citations}sum only; focus on one section.
  • --max-bullets Nsum only; cap the number of bullets (positive integer).
  • -n/--num Ndig only; how many papers to pull (default 8).

How it works

sum and comp download each paper's PDF and extract its full text; dig searches arXiv and works from abstracts. The text is sent to a local open-source model via Ollama (default llama3.2) with a prompt tailored to the command, and the bullet-point response is printed to stdout.

Long papers can exceed the model's context window and be truncated. arDive asks Ollama for an 8192-token window by default; raise it (at the cost of more RAM) with export ARDIVE_NUM_CTX=16384.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ardive-0.1.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ardive-0.1.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file ardive-0.1.0.tar.gz.

File metadata

  • Download URL: ardive-0.1.0.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for ardive-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b2dd348f4a5d311d1b40947cf1e0097344f97144102e62bca57d4cdde6d0a372
MD5 a8ee50a91bc9ef9e2207c60ad3d5ff71
BLAKE2b-256 ea526ca1aad5b7bc9718da15530982ab042f6971c7e1c18f1d76b419857a3367

See more details on using hashes here.

File details

Details for the file ardive-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ardive-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for ardive-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 46f674c2b41d32f00e05a46ed538a1a711371d2628d473ebaba89b448a3024f8
MD5 85d0a6ddc4ed55d2031c2094b51252d8
BLAKE2b-256 4139971d9501b4ab1dafeedf3fef3816a85ac7cdfc7697566a759a5f8e73acfd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page