From c2c2f252c25ddcc2212746ef7cb41fc97c342695 Mon Sep 17 00:00:00 2001 From: Vardhaman <83634399+cyai@users.noreply.github.com> Date: Tue, 2 Jan 2024 03:33:16 +0530 Subject: [PATCH] docs: updated document for 'Return Source Documents' Functionality (#15106) - **Description:** updated the outdated code in the document that was generating the error, - **Issue:** #15086 , - **Dependencies:** N/A, - **Twitter handle:** [@vardhaman722](https://twitter.com/vardhaman722) --- .../providers/vectara/vectara_chat.ipynb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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})" ] }, {