From 84617007388ea67f45d035dedf22a73fc4dd45cd Mon Sep 17 00:00:00 2001 From: standby24x7 Date: Tue, 5 Mar 2024 03:42:53 +0900 Subject: [PATCH] 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 --- cookbook/llm_checker.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/llm_checker.ipynb b/cookbook/llm_checker.ipynb index 4c128fdc2af..1d8724a665e 100644 --- a/cookbook/llm_checker.ipynb +++ b/cookbook/llm_checker.ipynb @@ -50,7 +50,7 @@ "\n", "checker_chain = LLMCheckerChain.from_llm(llm, verbose=True)\n", "\n", - "checker_chain.run(text)" + "checker_chain.invoke(text)" ] }, {