mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-03 20:16:52 +00:00
notebook fmt (#12498)
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from langchain.document_loaders import WebBaseLoader\n",
|
||||
"\n",
|
||||
"loader = WebBaseLoader(\"https://lilianweng.github.io/posts/2023-06-23-agent/\")\n",
|
||||
"text = loader.load()"
|
||||
]
|
||||
@@ -45,8 +46,9 @@
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from langserve.client import RemoteRunnable\n",
|
||||
"llama2_function = RemoteRunnable('http://0.0.0.0:8001/llama2_functions')\n",
|
||||
"llama2_function.invoke({\"input\":text[0].page_content[0:1500]})"
|
||||
"\n",
|
||||
"llama2_function = RemoteRunnable(\"http://0.0.0.0:8001/llama2_functions\")\n",
|
||||
"llama2_function.invoke({\"input\": text[0].page_content[0:1500]})"
|
||||
]
|
||||
}
|
||||
],
|
||||
|
Reference in New Issue
Block a user