mirror of
https://github.com/hwchase17/langchain
synced 2024-11-04 06:00:26 +00:00
36 lines
694 B
Plaintext
36 lines
694 B
Plaintext
|
{
|
||
|
"cells": [
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"## Connect to template\n",
|
||
|
"\n",
|
||
|
"In `server.py`, set -\n",
|
||
|
"```\n",
|
||
|
"add_routes(app, chain_ext, path=\"/rag_opensearch\")\n",
|
||
|
"```"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"from langserve.client import RemoteRunnable\n",
|
||
|
"\n",
|
||
|
"rag_app = RemoteRunnable(\"http://localhost:8001/rag-opensearch\")\n",
|
||
|
"rag_app.invoke(\"What is the ip address used in the image processing logs\")"
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"metadata": {
|
||
|
"language_info": {
|
||
|
"name": "python"
|
||
|
}
|
||
|
},
|
||
|
"nbformat": 4,
|
||
|
"nbformat_minor": 2
|
||
|
}
|