mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-21 06:14:37 +00:00
Update llama.cpp and Ollama templates (#12466)
This commit is contained in:
parent
f10c17c6a4
commit
5c2243ee91
@ -19,10 +19,21 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": 1,
|
||||||
"id": "ff5869c6-2065-48f3-bb43-52a515968276",
|
"id": "ff5869c6-2065-48f3-bb43-52a515968276",
|
||||||
"metadata": {},
|
"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": [
|
"source": [
|
||||||
"from langserve.client import RemoteRunnable\n",
|
"from langserve.client import RemoteRunnable\n",
|
||||||
"sql_app = RemoteRunnable('http://0.0.0.0:8001/sql_llamacpp')\n",
|
"sql_app = RemoteRunnable('http://0.0.0.0:8001/sql_llamacpp')\n",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "sql_ollama"
|
name = "sql-ollama"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
description = ""
|
description = ""
|
||||||
authors = ["Lance Martin <lance@langchain.dev>"]
|
authors = ["Lance Martin <lance@langchain.dev>"]
|
||||||
|
@ -19,10 +19,21 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": 1,
|
||||||
"id": "50c27e82-92d8-4fa1-8bc4-b6544e59773d",
|
"id": "50c27e82-92d8-4fa1-8bc4-b6544e59773d",
|
||||||
"metadata": {},
|
"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": [
|
"source": [
|
||||||
"from langserve.client import RemoteRunnable\n",
|
"from langserve.client import RemoteRunnable\n",
|
||||||
"sql_app = RemoteRunnable('http://0.0.0.0:8001/sql_ollama')\n",
|
"sql_app = RemoteRunnable('http://0.0.0.0:8001/sql_ollama')\n",
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
from ollama.chain import chain
|
from sql_ollama.chain import chain
|
||||||
|
|
||||||
__all__ = ["chain"]
|
__all__ = ["chain"]
|
Loading…
Reference in New Issue
Block a user