|
@@ -1013,8 +1013,8 @@
|
|
"source": [
|
|
"source": [
|
|
"# This time your previous question and answer will be included as a chat history which will enable the ability\n",
|
|
"# This time your previous question and answer will be included as a chat history which will enable the ability\n",
|
|
"# to ask follow up questions.\n",
|
|
"# to ask follow up questions.\n",
|
|
- "chat_history = [(query, result[\"answer\"])]\n",
|
|
|
|
"query = \"What two sizes?\"\n",
|
|
"query = \"What two sizes?\"\n",
|
|
|
|
+ "chat_history = [(query, result[\"answer\"])]\n",
|
|
"result = chain({\"question\": query, \"chat_history\": chat_history})\n",
|
|
"result = chain({\"question\": query, \"chat_history\": chat_history})\n",
|
|
"md(result['answer'])"
|
|
"md(result['answer'])"
|
|
]
|
|
]
|