Skip to content

Commit 5b4a132

Browse files
update langchain's api (#1745)
As ```chain.run()``` will be removed in langchain 0.2.0, it needs be replaced with ```chain.invoke()```
1 parent 7647e44 commit 5b4a132

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notebooks/254-llm-chatbot/254-rag-chatbot.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1346,7 +1346,7 @@
13461346
" stream_complete = Event()\n",
13471347
"\n",
13481348
" def infer(question):\n",
1349-
" rag_chain.run(question)\n",
1349+
" rag_chain.invoke(question)\n",
13501350
" stream_complete.set()\n",
13511351
"\n",
13521352
" t1 = Thread(target=infer, args=(history[-1][0],))\n",

0 commit comments

Comments
 (0)