mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-04 04:28:58 +00:00
Add invoke example to LLaMA2 function template notebook (#12437)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"attachments": {},
|
||||
"cell_type": "markdown",
|
||||
"id": "9faf648c-541e-4368-82a8-96287dbf34de",
|
||||
"metadata": {},
|
||||
@@ -23,6 +24,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"attachments": {},
|
||||
"cell_type": "markdown",
|
||||
"id": "67306dbd-d79c-4723-825e-7d88edb811ba",
|
||||
"metadata": {},
|
||||
@@ -43,7 +45,8 @@
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from langserve.client import RemoteRunnable\n",
|
||||
"llama2_function = RemoteRunnable('http://0.0.0.0:8001/llama2_functions')"
|
||||
"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