mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-03 03:59:42 +00:00
notebook fmt (#12498)
This commit is contained in:
@@ -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",
|
||||
")"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
Reference in New Issue
Block a user