Search ArXiv for Scientific Papers and Summaries
Search arXiv for recent papers and summaries on math and science topics.
Why it matters
Leverage the ArXiv API to find and summarize recent scientific and mathematical papers. This tool enables agents to quickly retrieve up-to-date information on specific research topics.
Outcomes
What it gets done
Query ArXiv for relevant research papers based on keywords.
Extract summaries and key information from retrieved papers.
Provide agents with recent scientific and mathematical insights.
Install
Add it to your toolbox
Run in your project directory:
curl -fsSL https://spark.entire.vc/get/li-tool-tools-arxiv | bash Overview
ArXiv Search Tool
A LlamaIndex tool that searches ArXiv for recent papers and summaries on mathematical and scientific topics. Use when an agent needs answers grounded in current scientific or mathematical research rather than training-data knowledge.
What it does
The ArXiv Search Tool connects a LlamaIndex agent to ArXiv, letting the agent search for recent papers and their summaries to retrieve up-to-date mathematical and scientific information. The ArxivToolSpec exposes a single function, arxiv_query, which searches ArXiv for results related to a natural-language query and returns the matches for the agent to work with.
The source's own worked example shows the tool answering questions like the current state of research on a specific topic ("the superconductor lk-99") and broader field-level questions ("the latest developments in machine learning"), illustrating that the tool works both for narrowly named subjects and for general "what's new" queries within a scientific area.
When to use - and when NOT to
Use it when a LlamaIndex agent needs to answer questions grounded in recent mathematical or scientific research - naming specific papers, findings, or developments - rather than relying on the model's own training data, which may be outdated for fast-moving fields. Do not use it for non-scientific or non-mathematical topics; ArXiv's own coverage is limited to preprints in those domains, so questions outside that scope will not have relevant results to search against.
Capabilities
arxiv_query searches ArXiv for papers and summaries matching a natural-language query, covering both specific named topics and broader field-level questions.
How to install
from llama_index.tools.arxiv import ArxivToolSpec
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI
tool_spec = ArxivToolSpec()
agent = FunctionAgent(
tools=tool_spec.to_tool_list(), llm=OpenAI(model="gpt-4.1")
)
No API key is required to initialize ArxivToolSpec.
Who it's for
Developers building LlamaIndex agents that need to answer questions grounded in recent scientific or mathematical research, citing actual papers rather than the model's own training-data knowledge.
Source README
ArXiv Search Tool
This tool connects to ArXiv and allows an Agent to search for recent papers and their summaries to retrieve recent information on mathematical and scientific information
Usage
This tool has a more extensive example usage documented in a Jupyter notebook here.
Here's an example usage of the ArxivToolSpec.
from llama_index.tools.arxiv import ArxivToolSpec
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI
tool_spec = ArxivToolSpec()
agent = FunctionAgent(
tools=tool_spec.to_tool_list(), llm=OpenAI(model="gpt-4.1")
)
await agent.run("What's going on with the superconductor lk-99")
await agent.run("what are the latest developments in machine learning")
arxiv_query: Search arXiv for results related to the query
This loader is designed to be used as a way to load data as a Tool in a Agent.
FAQ
Common questions
Discussion
Questions & comments · 0
Sign In Sign in to leave a comment.