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
| Parameter | Type | Default | Description |
|---|---|---|---|
chunking_strategy | Optional[ChunkingStrategy] | FixedSizeChunking() | Strategy used to chunk documents |
sort_by | arxiv.SortCriterion | arxiv.SortCriterion.Relevance | Sort criterion for arXiv search results |
max_results | int | 5 | Maximum 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.
| Parameter | Type | Default | Description |
|---|---|---|---|
query | str | Required | Search query to run against arXiv |
async_read()
Async variant of read(). Accepts the same parameters.