Toolkit and Agent‚ÄãFirst, we'll create an agent with a single vectorstore.from langchain.agents.agent_toolkits import (    create_vectorstore_agent,    VectorStoreToolkit,    VectorStoreInfo,)vectorstore_info = VectorStoreInfo(    name="state_of_union_address",    description="the most recent state of the Union adress",    vectorstore=state_of_union_store,)toolkit = VectorStoreToolkit(vectorstore_info=vectorstore_info)agent_executor = create_vectorstore_agent(llm=llm, toolkit=toolkit, verbose=True)Examples‚Äãagent_executor.run(    "What did biden say about ketanji brown jackson in the state of the union address?")            > Entering new AgentExecutor chain...     I need to find the answer in the state of the union address    Action: state_of_union_address    Action Input: What did biden say about ketanji brown jackson    Observation:  Biden said that Ketanji Brown Jackson is one of the nation's top legal minds and that she will continue Justice Breyer's legacy of excellence.    Thought: I now know the final answer    Final Answer: Biden said that Ketanji Brown Jackson is one of the nation's top legal minds and that she will continue Justice Breyer's legacy of excellence.        > Finished chain.    "Biden said that Ketanji Brown Jackson is one of the nation's top legal minds and that she will continue Justice Breyer's legacy of excellence."agent_executor.run(    "What did biden say about ketanji brown jackson in the state of the union address? List the source.")            > Entering new AgentExecutor chain...     I need to use the state_of_union_address_with_sources tool to answer this question.    Action: state_of_union_address_with_sources    Action Input: What did biden say about ketanji brown jackson    Observation: {"answer": " Biden said that he nominated Circuit Court of Appeals Judge Ketanji Brown Jackson to the United States Supreme Court, and that she is one of the nation's top legal minds who will continue Justice Breyer's legacy of excellence.\n",
This notebook showcases an agent designed to retrieve information from one or more vectorstores, either with or without sources.
This notebook showcases an agent designed to retrieve information from one or more vectorstores, either with or without sources. ->: Toolkit and Agent‚ÄãFirst, we'll create an agent with a single vectorstore.from langchain.agents.agent_toolkits import (    create_vectorstore_agent,    VectorStoreToolkit,    VectorStoreInfo,)vectorstore_info = VectorStoreInfo(    name="state_of_union_address",    description="the most recent state of the Union adress",    vectorstore=state_of_union_store,)toolkit = VectorStoreToolkit(vectorstore_info=vectorstore_info)agent_executor = create_vectorstore_agent(llm=llm, toolkit=toolkit, verbose=True)Examples‚Äãagent_executor.run(    "What did biden say about ketanji brown jackson in the state of the union address?")            > Entering new AgentExecutor chain...     I need to find the answer in the state of the union address    Action: state_of_union_address    Action Input: What did biden say about ketanji brown jackson    Observation:  Biden said that Ketanji Brown Jackson is one of the nation's top legal minds and that she will continue Justice Breyer's legacy of excellence.    Thought: I now know the final answer    Final Answer: Biden said that Ketanji Brown Jackson is one of the nation's top legal minds and that she will continue Justice Breyer's legacy of excellence.        > Finished chain.    "Biden said that Ketanji Brown Jackson is one of the nation's top legal minds and that she will continue Justice Breyer's legacy of excellence."agent_executor.run(    "What did biden say about ketanji brown jackson in the state of the union address? List the source.")            > Entering new AgentExecutor chain...     I need to use the state_of_union_address_with_sources tool to answer this question.    Action: state_of_union_address_with_sources    Action Input: What did biden say about ketanji brown jackson    Observation: {"answer": " Biden said that he nominated Circuit Court of Appeals Judge Ketanji Brown Jackson to the United States Supreme Court, and that she is one of the nation's top legal minds who will continue Justice Breyer's legacy of excellence.\n",