Skip to main content

LLM plugin for loading arXiv papers

Project description

llm-arxiv

PyPI Changelog Tests License

LLM plugin for loading arXiv paper text content using the arxiv API and PyMuPDF.

Installation

Install this plugin in the same environment as LLM.

llm install llm-arxiv

This plugin requires the arxiv and PyMuPDF packages.

Usage

This plugin adds support for the arxiv: fragment prefix. You can use it to load the full text content of a paper from its arXiv ID or URL.

# Load by ID (new format)
llm fragment arxiv:2310.06825

# Load by ID (old format)
llm fragment arxiv:hep-th/0101001

# Load by URL
llm fragment arxiv:https://arxiv.org/abs/2310.06825

You can pipe the output to LLM commands:

llm -f arxiv:2310.06825 -m claude-3-haiku "Summarize this paper"

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd llm-arxiv
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

# Install in editable mode with test dependencies
python -m pip install -e '.[test]'

To run the tests:

pytest

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

llm_arxiv-0.1.2.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

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

llm_arxiv-0.1.2-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file llm_arxiv-0.1.2.tar.gz.

File metadata

  • Download URL: llm_arxiv-0.1.2.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for llm_arxiv-0.1.2.tar.gz
Algorithm Hash digest
SHA256 3983711354f23a569916f92ccf09a3a31287fa28a30f61f5a81373a0fb15f196
MD5 adb167ea6516e09efe9d607ebdf8b23e
BLAKE2b-256 a8ee0da4df0e2c16d216a8a7a63aac5f7978b7bec7f8e7e49229603b51329459

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_arxiv-0.1.2.tar.gz:

Publisher: publish.yml on agustif/llm-arxiv

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file llm_arxiv-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: llm_arxiv-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for llm_arxiv-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0278cfc68878a2e06bf82a615c6018c8ec5c3f559ebf4d0b326c5477611e6434
MD5 bd9456aeea6c8aaa0c63f734d9ec51a5
BLAKE2b-256 c6ed04ea098f5716060149ea7582234027969fa53b581f2d376307ce0593a3a4

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_arxiv-0.1.2-py3-none-any.whl:

Publisher: publish.yml on agustif/llm-arxiv

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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