mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-02 21:23:32 +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",
|
||||
"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",
|
||||
|
@ -1,5 +1,5 @@
|
||||
[tool.poetry]
|
||||
name = "sql_ollama"
|
||||
name = "sql-ollama"
|
||||
version = "0.1.0"
|
||||
description = ""
|
||||
authors = ["Lance Martin <lance@langchain.dev>"]
|
||||
|
@ -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",
|
||||
|
@ -1,3 +1,3 @@
|
||||
from ollama.chain import chain
|
||||
from sql_ollama.chain import chain
|
||||
|
||||
__all__ = ["chain"]
|
Loading…
Reference in New Issue
Block a user