瀏覽代碼

Corrected wrong order of commands (#602)

Bakunga Bronson 8 月之前
父節點
當前提交
9b3dabcaac
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      recipes/quickstart/Getting_to_know_Llama.ipynb

+ 1 - 1
recipes/quickstart/Getting_to_know_Llama.ipynb

@@ -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'])"
    ]
    ]