mirror of
https://github.com/hwchase17/langchain.git
synced 2025-04-30 21:05:36 +00:00
docs: Update function "run" to "invoke" (#18499)
Currently llm_checker.ipynb uses a function "run". Update to "invoke" to avoid following warning. LangChainDeprecationWarning: The function `run` was deprecated in LangChain 0.1.0 and will be removed in 0.2.0. Use invoke instead. Signed-off-by: Masanari Iida <standby24x7@gmail.com>
This commit is contained in:
parent
6c9177681d
commit
8461700738
@ -50,7 +50,7 @@
|
|||||||
"\n",
|
"\n",
|
||||||
"checker_chain = LLMCheckerChain.from_llm(llm, verbose=True)\n",
|
"checker_chain = LLMCheckerChain.from_llm(llm, verbose=True)\n",
|
||||||
"\n",
|
"\n",
|
||||||
"checker_chain.run(text)"
|
"checker_chain.invoke(text)"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user