llama-index-integrations/tools/llama-index-tools-jina/README.md
Ensure your system has Python installed and proceed with the following installations via pip:
pip install llama-index-tools-jina
This tool enables agents to search and retrieve results from the Jina search api. This tool will search the web and return the top five results with their URLs and contents, each in clean, LLM-friendly text.
This tool has a more extensive example usage documented in a Jupyter notebook here
Here's an example usage of the JinaSearchToolSpec.
from llama_index.tools.jina import JinaSearchToolSpec
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI
tool_spec = JinaSearchToolSpec()
agent = FunctionAgent(
tools=JinaSearchToolSpec.to_tool_list(),
llm=OpenAI(model="gpt-4.1"),
)
print(await agent.run("What's going on with the superconductor lk-99"))
print(await agent.run("what are the latest developments in machine learning"))
jina_search: Make a query to Jina API to receive an instant answer.