Update llama.cpp and Ollama templates (#12466)

This commit is contained in:
Lance Martin 2023-10-27 16:54:54 -07:00 committed by GitHub
parent f10c17c6a4
commit 5c2243ee91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 28 additions and 6 deletions

View File

@ -19,10 +19,21 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"id": "ff5869c6-2065-48f3-bb43-52a515968276",
"metadata": {},
"outputs": [],
"outputs": [
{
"data": {
"text/plain": [
"'\\nNatural Language Response: Klay Thompson plays for the Golden State Warriors.'"
]
},
"execution_count": 1,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from langserve.client import RemoteRunnable\n",
"sql_app = RemoteRunnable('http://0.0.0.0:8001/sql_llamacpp')\n",

View File

@ -1,5 +1,5 @@
[tool.poetry]
name = "sql_ollama"
name = "sql-ollama"
version = "0.1.0"
description = ""
authors = ["Lance Martin <lance@langchain.dev>"]

View File

@ -19,10 +19,21 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"id": "50c27e82-92d8-4fa1-8bc4-b6544e59773d",
"metadata": {},
"outputs": [],
"outputs": [
{
"data": {
"text/plain": [
"AIMessage(content=' Sure! Here\\'s the natural language response based on the input:\\n\\n\"Klay Thompson plays for the Golden State Warriors.\"')"
]
},
"execution_count": 1,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from langserve.client import RemoteRunnable\n",
"sql_app = RemoteRunnable('http://0.0.0.0:8001/sql_ollama')\n",

View File

@ -1,3 +1,3 @@
from ollama.chain import chain
from sql_ollama.chain import chain
__all__ = ["chain"]