LLM plugin for loading arXiv papers
Project description
llm-arxiv
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3983711354f23a569916f92ccf09a3a31287fa28a30f61f5a81373a0fb15f196
|
|
| MD5 |
adb167ea6516e09efe9d607ebdf8b23e
|
|
| BLAKE2b-256 |
a8ee0da4df0e2c16d216a8a7a63aac5f7978b7bec7f8e7e49229603b51329459
|
Provenance
The following attestation bundles were made for llm_arxiv-0.1.2.tar.gz:
Publisher:
publish.yml on agustif/llm-arxiv
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llm_arxiv-0.1.2.tar.gz -
Subject digest:
3983711354f23a569916f92ccf09a3a31287fa28a30f61f5a81373a0fb15f196 - Sigstore transparency entry: 202479747
- Sigstore integration time:
-
Permalink:
agustif/llm-arxiv@022a49552616a2de45342a6a7b0ead0d4882356f -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/agustif
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@022a49552616a2de45342a6a7b0ead0d4882356f -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0278cfc68878a2e06bf82a615c6018c8ec5c3f559ebf4d0b326c5477611e6434
|
|
| MD5 |
bd9456aeea6c8aaa0c63f734d9ec51a5
|
|
| BLAKE2b-256 |
c6ed04ea098f5716060149ea7582234027969fa53b581f2d376307ce0593a3a4
|
Provenance
The following attestation bundles were made for llm_arxiv-0.1.2-py3-none-any.whl:
Publisher:
publish.yml on agustif/llm-arxiv
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llm_arxiv-0.1.2-py3-none-any.whl -
Subject digest:
0278cfc68878a2e06bf82a615c6018c8ec5c3f559ebf4d0b326c5477611e6434 - Sigstore transparency entry: 202479751
- Sigstore integration time:
-
Permalink:
agustif/llm-arxiv@022a49552616a2de45342a6a7b0ead0d4882356f -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/agustif
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@022a49552616a2de45342a6a7b0ead0d4882356f -
Trigger Event:
release
-
Statement type: