notebook fmt (#12498)

This commit is contained in:
Bagatur
2023-10-29 15:50:09 -07:00
committed by GitHub
parent 56cc5b847c
commit 2424fff3f1
342 changed files with 8261 additions and 6796 deletions

View File

@@ -21,7 +21,8 @@
"outputs": [],
"source": [
"from langserve.client import RemoteRunnable\n",
"rag_app = RemoteRunnable('http://0.0.0.0:8001/rag_conversation')"
"\n",
"rag_app = RemoteRunnable(\"http://0.0.0.0:8001/rag_conversation\")"
]
},
{
@@ -32,10 +33,12 @@
"outputs": [],
"source": [
"question = \"How does agent memory work?\"\n",
"answer = rag_app.invoke({\n",
" \"question\": question,\n",
" \"chat_history\": [],\n",
"})"
"answer = rag_app.invoke(\n",
" {\n",
" \"question\": question,\n",
" \"chat_history\": [],\n",
" }\n",
")"
]
},
{
@@ -67,10 +70,12 @@
"outputs": [],
"source": [
"chat_history = [(question, answer)]\n",
"answer = rag_app.invoke({\n",
" \"question\": \"What are the different types?\",\n",
" \"chat_history\": chat_history,\n",
"})"
"answer = rag_app.invoke(\n",
" {\n",
" \"question\": \"What are the different types?\",\n",
" \"chat_history\": chat_history,\n",
" }\n",
")"
]
},
{