move search to not be a chain (#226)

This commit is contained in:
Harrison Chase
2022-11-29 20:07:44 -08:00
committed by GitHub
parent b19a73be26
commit ca2394028f
13 changed files with 40 additions and 54 deletions

View File

@@ -77,9 +77,9 @@
"outputs": [],
"source": [
"# Load the tool configs that are needed.\n",
"from langchain import LLMMathChain, SerpAPIChain\n",
"from langchain import LLMMathChain, SerpAPIWrapper\n",
"llm = OpenAI(temperature=0)\n",
"search = SerpAPIChain()\n",
"search = SerpAPIWrapper()\n",
"llm_math_chain = LLMMathChain(llm=llm, verbose=True)\n",
"tools = [\n",
" Tool(\n",