{ "cells": [ { "attachments": {}, "cell_type": "markdown", "id": "9faf648c-541e-4368-82a8-96287dbf34de", "metadata": {}, "source": [ "## Run Template\n", "\n", "In `server.py`, set -\n", "```\n", "add_routes(app, chain_ext, path=\"/llama2_functions\")\n", "```" ] }, { "cell_type": "code", "execution_count": null, "id": "2dfe28bb-6112-459b-a77d-013964b65409", "metadata": {}, "outputs": [], "source": [ "from langserve.client import RemoteRunnable\n", "\n", "llama2_function = RemoteRunnable(\"http://0.0.0.0:8001/llama2_functions\")\n", "llama2_function.invoke({\"question\": \"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 }