Arxiv Reader

Parameters and methods of ArxivReader, which searches arXiv and reads paper summaries into documents.

ArxivReader is a reader class that searches the arXiv API and loads paper summaries as documents.

Parameters

ParameterTypeDefaultDescription
chunking_strategyOptional[ChunkingStrategy]FixedSizeChunking()Strategy used to chunk documents
sort_byarxiv.SortCriterionarxiv.SortCriterion.RelevanceSort criterion for arXiv search results
max_resultsint5Maximum number of articles to fetch per query

ArxivReader also accepts the base Reader constructor parameters.

Methods

read()

Searches arXiv for the query (up to max_results articles) and returns a list of documents containing paper summaries.

ParameterTypeDefaultDescription
querystrRequiredSearch query to run against arXiv

async_read()

Async variant of read(). Accepts the same parameters.