Skip to main contentü¶úÔ∏èüîó LangChainDocsUse casesIntegrationsAPICommunityChat our docsLangSmithJS/TS DocsSearchCTRLKProvidersAnthropicAWSGoogleMicrosoftOpenAIMoreComponentsLLMsChat modelsDocument loadersDocument transformersText embedding modelsVector storesRetrieversToolsAlpha VantageApifyArXivAWS LambdaShell (bash)Bearly Code InterpreterBing SearchBrave SearchChatGPT PluginsDall-E Image GeneratorDataForSeoDuckDuckGo SearchEden AIEleven Labs Text2SpeechFile SystemGolden QueryGoogle DriveGoogle PlacesGoogle SearchGoogle SerperGradioGraphQLHuggingFace Hub ToolsHuman as a toolIFTTT WebHooksLemon AgentMetaphor SearchNuclia UnderstandingOpenWeatherMapPubMedRequestsSceneXplainSearch ToolsSearchApiSearxNG SearchSerpAPITwilioWikipediaWolfram AlphaYahoo Finance NewsYouTubeZapier Natural Language ActionsAgents and toolkitsMemoryCallbacksChat loadersComponentsToolsArXivOn this pageArXivThis notebook goes over how to use the arxiv tool with an agent. First, you need to install arxiv python package.pip install arxivfrom langchain.chat_models import ChatOpenAIfrom langchain.agents import load_tools, initialize_agent, AgentTypellm = ChatOpenAI(temperature=0.0)tools = load_tools(    ["arxiv"],)agent_chain = initialize_agent(    tools,    llm,    agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION,    verbose=True,)agent_chain.run(    "What's the paper 1605.08386 about?",)            > Entering new AgentExecutor chain...    I need to use Arxiv to search for the paper.    Action: Arxiv    Action Input: "1605.08386"    Observation: Published: 2016-05-26    Title: Heat-bath random walks with Markov bases    Authors: Caprice Stanley, Tobias Windisch    Summary: Graphs on lattice points are studied whose edges come from a finite set of    allowed moves of arbitrary length. We show that the diameter of these graphs on    fibers of a fixed integer matrix can be bounded from above by a constant. We    then study the mixing behaviour of heat-bath random walks on these graphs. We    also state
This notebook goes over how to use the arxiv tool with an agent.
This notebook goes over how to use the arxiv tool with an agent. ->: Skip to main contentü¶úÔ∏èüîó LangChainDocsUse casesIntegrationsAPICommunityChat our docsLangSmithJS/TS DocsSearchCTRLKProvidersAnthropicAWSGoogleMicrosoftOpenAIMoreComponentsLLMsChat modelsDocument loadersDocument transformersText embedding modelsVector storesRetrieversToolsAlpha VantageApifyArXivAWS LambdaShell (bash)Bearly Code InterpreterBing SearchBrave SearchChatGPT PluginsDall-E Image GeneratorDataForSeoDuckDuckGo SearchEden AIEleven Labs Text2SpeechFile SystemGolden QueryGoogle DriveGoogle PlacesGoogle SearchGoogle SerperGradioGraphQLHuggingFace Hub ToolsHuman as a toolIFTTT WebHooksLemon AgentMetaphor SearchNuclia UnderstandingOpenWeatherMapPubMedRequestsSceneXplainSearch ToolsSearchApiSearxNG SearchSerpAPITwilioWikipediaWolfram AlphaYahoo Finance NewsYouTubeZapier Natural Language ActionsAgents and toolkitsMemoryCallbacksChat loadersComponentsToolsArXivOn this pageArXivThis notebook goes over how to use the arxiv tool with an agent. First, you need to install arxiv python package.pip install arxivfrom langchain.chat_models import ChatOpenAIfrom langchain.agents import load_tools, initialize_agent, AgentTypellm = ChatOpenAI(temperature=0.0)tools = load_tools(    ["arxiv"],)agent_chain = initialize_agent(    tools,    llm,    agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION,    verbose=True,)agent_chain.run(    "What's the paper 1605.08386 about?",)            > Entering new AgentExecutor chain...    I need to use Arxiv to search for the paper.    Action: Arxiv    Action Input: "1605.08386"    Observation: Published: 2016-05-26    Title: Heat-bath random walks with Markov bases    Authors: Caprice Stanley, Tobias Windisch    Summary: Graphs on lattice points are studied whose edges come from a finite set of    allowed moves of arbitrary length. We show that the diameter of these graphs on    fibers of a fixed integer matrix can be bounded from above by a constant. We    then study the mixing behaviour of heat-bath random walks on these graphs. We    also state