mirror of
https://github.com/hwchase17/langchain
synced 2024-11-04 06:00:26 +00:00
a1fae1fddd
Co-authored-by: Lance Martin <lance@langchain.dev> Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
52 lines
1.0 KiB
Plaintext
52 lines
1.0 KiB
Plaintext
{
|
|
"cells": [
|
|
{
|
|
"cell_type": "markdown",
|
|
"id": "30fc2c27",
|
|
"metadata": {},
|
|
"source": [
|
|
"## Run Template\n",
|
|
"\n",
|
|
"In `server.py`, set -\n",
|
|
"```\n",
|
|
"add_routes(app, chain_rag_conv, path=\"/rag-semi-structured\")\n",
|
|
"```"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": null,
|
|
"id": "65f5b560",
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"source": [
|
|
"from langserve.client import RemoteRunnable\n",
|
|
"\n",
|
|
"rag_app = RemoteRunnable(\"http://localhost:8001/rag-semi-structured\")\n",
|
|
"rag_app.invoke(\"How does agent memory work?\")"
|
|
]
|
|
}
|
|
],
|
|
"metadata": {
|
|
"kernelspec": {
|
|
"display_name": "Python 3 (ipykernel)",
|
|
"language": "python",
|
|
"name": "python3"
|
|
},
|
|
"language_info": {
|
|
"codemirror_mode": {
|
|
"name": "ipython",
|
|
"version": 3
|
|
},
|
|
"file_extension": ".py",
|
|
"mimetype": "text/x-python",
|
|
"name": "python",
|
|
"nbconvert_exporter": "python",
|
|
"pygments_lexer": "ipython3",
|
|
"version": "3.9.16"
|
|
}
|
|
},
|
|
"nbformat": 4,
|
|
"nbformat_minor": 5
|
|
}
|