diff --git a/docs/docs/integrations/providers/vectara/vectara_chat.ipynb b/docs/docs/integrations/providers/vectara/vectara_chat.ipynb index d3d9c4dfe0..665f4f5b64 100644 --- a/docs/docs/integrations/providers/vectara/vectara_chat.ipynb +++ b/docs/docs/integrations/providers/vectara/vectara_chat.ipynb @@ -192,7 +192,7 @@ "outputs": [], "source": [ "query = \"What did the president say about Ketanji Brown Jackson\"\n", - "result = bot({\"question\": query})" + "result = bot.invoke({\"question\": query})" ] }, { @@ -224,7 +224,7 @@ "outputs": [], "source": [ "query = \"Did he mention who she suceeded\"\n", - "result = bot({\"question\": query})" + "result = bot.invoke({\"question\": query})" ] }, { @@ -291,7 +291,7 @@ "source": [ "chat_history = []\n", "query = \"What did the president say about Ketanji Brown Jackson\"\n", - "result = bot({\"question\": query, \"chat_history\": chat_history})" + "result = bot.invoke({\"question\": query, \"chat_history\": chat_history})" ] }, { @@ -336,7 +336,7 @@ "source": [ "chat_history = [(query, result[\"answer\"])]\n", "query = \"Did he mention who she suceeded\"\n", - "result = bot({\"question\": query, \"chat_history\": chat_history})" + "result = bot.invoke({\"question\": query, \"chat_history\": chat_history})" ] }, { @@ -396,7 +396,7 @@ "source": [ "chat_history = []\n", "query = \"What did the president say about Ketanji Brown Jackson\"\n", - "result = bot({\"question\": query, \"chat_history\": chat_history})" + "result = bot.invoke({\"question\": query, \"chat_history\": chat_history})" ] }, { @@ -646,7 +646,7 @@ "source": [ "chat_history = []\n", "query = \"What did the president say about Ketanji Brown Jackson\"\n", - "result = bot({\"question\": query, \"chat_history\": chat_history})" + "result = bot.invoke({\"question\": query, \"chat_history\": chat_history})" ] }, { @@ -668,7 +668,7 @@ "source": [ "chat_history = [(query, result[\"answer\"])]\n", "query = \"Did he mention who she suceeded\"\n", - "result = bot({\"question\": query, \"chat_history\": chat_history})" + "result = bot.invoke({\"question\": query, \"chat_history\": chat_history})" ] }, { @@ -712,7 +712,7 @@ "source": [ "chat_history = []\n", "query = \"What did the president say about Ketanji Brown Jackson\"\n", - "result = bot({\"question\": query, \"chat_history\": chat_history})" + "result = bot.invoke({\"question\": query, \"chat_history\": chat_history})" ] }, {