Skip to main content

Arxiv

arXiv is an open-access archive for 2 million scholarly articles in the fields of physics, mathematics, computer science, quantitative biology, quantitative finance, statistics, electrical engineering and systems science, and economics.

Installation and Setupโ€‹

First, you need to install arxiv python package.

pip install arxiv

Second, you need to install PyMuPDF python package which transforms PDF files downloaded from the arxiv.org site into the text format.

pip install pymupdf

Document Loaderโ€‹

See a usage example.

from langchain_community.document_loaders import ArxivLoader
API Reference:ArxivLoader

Retrieverโ€‹

See a usage example.

from langchain_community.retrievers import ArxivRetriever
API Reference:ArxivRetriever

Was this page helpful?