AWS Bedrock RAG template (#12450)

This commit is contained in:
Lance Martin
2023-10-27 13:15:54 -07:00
committed by GitHub
parent 5d40e36c75
commit 5c564e62e1
11 changed files with 2602 additions and 9 deletions

View File

@@ -5,7 +5,12 @@
"id": "681a5d1e",
"metadata": {},
"source": [
"## Connect to template"
"## Connect to template\n",
"\n",
"In `server.py`, set -\n",
"```\n",
"add_routes(app, chain_ext, path=\"/rag_pinecone\")\n",
"```"
]
},
{
@@ -16,7 +21,7 @@
"outputs": [],
"source": [
"from langserve.client import RemoteRunnable\n",
"rag_app_pinecone = RemoteRunnable('http://localhost:8000/rag-pinecone')\n",
"rag_app_pinecone = RemoteRunnable('http://0.0.0.0:8001/rag_pinecone')\n",
"rag_app_pinecone.invoke(\"How does agent memory work?\")"
]
}