mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-06 13:33:37 +00:00
notebook fmt (#12498)
This commit is contained in:
@@ -18,6 +18,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()"
|
||||
]
|
||||
@@ -43,7 +44,8 @@
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from langserve.client import RemoteRunnable\n",
|
||||
"oai_function = RemoteRunnable('http://0.0.0.0:8001/extraction_openai_functions')"
|
||||
"\n",
|
||||
"oai_function = RemoteRunnable(\"http://0.0.0.0:8001/extraction_openai_functions\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -74,7 +76,7 @@
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"oai_function.invoke({\"input\":text[0].page_content[0:4000]})"
|
||||
"oai_function.invoke({\"input\": text[0].page_content[0:4000]})"
|
||||
]
|
||||
}
|
||||
],
|
||||
|
Reference in New Issue
Block a user