mirror of
https://github.com/hwchase17/langchain
synced 2024-11-18 09:25:54 +00:00
bump version to 173 (#4910)
This commit is contained in:
parent
b8d48939a2
commit
dfbf45f028
@ -184,7 +184,7 @@ Additional Resources
|
|||||||
:hidden:
|
:hidden:
|
||||||
|
|
||||||
LangChainHub <https://github.com/hwchase17/langchain-hub>
|
LangChainHub <https://github.com/hwchase17/langchain-hub>
|
||||||
./additional_resources/gallery.rst
|
Gallery <https://github.com/kyrolabs/awesome-langchain>
|
||||||
./additional_resources/deployments.md
|
./additional_resources/deployments.md
|
||||||
./additional_resources/tracing.md
|
./additional_resources/tracing.md
|
||||||
./additional_resources/model_laboratory.ipynb
|
./additional_resources/model_laboratory.ipynb
|
||||||
|
@ -219,7 +219,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": 12,
|
||||||
"id": "5d5a3e47",
|
"id": "5d5a3e47",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
@ -231,24 +231,32 @@
|
|||||||
"\n",
|
"\n",
|
||||||
"\u001b[1m> Entering new AgentExecutor chain...\u001b[0m\n",
|
"\u001b[1m> Entering new AgentExecutor chain...\u001b[0m\n",
|
||||||
"\n",
|
"\n",
|
||||||
"Observation: Check your output and make sure it conforms!\n",
|
"Observation: Could not parse LLM output: I'm sorry, but I canno\n",
|
||||||
"Thought:\n",
|
"Thought:\u001b[32;1m\u001b[1;3mI need to use the Search tool to find the answer to the question.\n",
|
||||||
"Observation: Check your output and make sure it conforms!\n",
|
|
||||||
"Thought:\u001b[32;1m\u001b[1;3mI'm sorry for the confusion. However, as the question is about a current event, I can use the Search tool to find the answer.\n",
|
|
||||||
"Action:\n",
|
"Action:\n",
|
||||||
"```\n",
|
"```\n",
|
||||||
"{\n",
|
"{\n",
|
||||||
" \"action\": \"Search\",\n",
|
" \"action\": \"Search\",\n",
|
||||||
" \"action_input\": \"Leo DiCaprio girlfriend\"\n",
|
" \"action_input\": \"Who is Leo DiCaprio's girlfriend?\"\n",
|
||||||
"}\n",
|
"}\n",
|
||||||
"```\n",
|
"```\n",
|
||||||
"\u001b[0m\n",
|
"\u001b[0m\n",
|
||||||
"Observation: \u001b[36;1m\u001b[1;3mHe went on to date Gisele Bündchen, Bar Refaeli, Blake Lively, Toni Garrn and Nina Agdal, among others, before finally settling down with current girlfriend Camila Morrone, who is 23 years his junior.\u001b[0m\n",
|
"Observation: \u001b[36;1m\u001b[1;3mDiCaprio broke up with girlfriend Camila Morrone, 25, in the summer of 2022, after dating for four years. He's since been linked to another famous supermodel – Gigi Hadid. The power couple were first supposedly an item in September after being spotted getting cozy during a party at New York Fashion Week.\u001b[0m\n",
|
||||||
"Thought:\u001b[32;1m\u001b[1;3mThe answer to the question is Camila Morrone. \n",
|
"Thought:\u001b[32;1m\u001b[1;3mThe answer to the question is that Leo DiCaprio's current girlfriend is Gigi Hadid. \n",
|
||||||
"Final Answer: Camila Morrone.\u001b[0m\n",
|
"Final Answer: Gigi Hadid.\u001b[0m\n",
|
||||||
"\n",
|
"\n",
|
||||||
"\u001b[1m> Finished chain.\u001b[0m\n"
|
"\u001b[1m> Finished chain.\u001b[0m\n"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"data": {
|
||||||
|
"text/plain": [
|
||||||
|
"'Gigi Hadid.'"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"execution_count": 12,
|
||||||
|
"metadata": {},
|
||||||
|
"output_type": "execute_result"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"source": [
|
"source": [
|
||||||
@ -256,20 +264,18 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "markdown",
|
||||||
"execution_count": null,
|
"id": "c2eb06e2",
|
||||||
"id": "65de0bed",
|
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
|
||||||
"source": [
|
"source": [
|
||||||
"## Custom Error Function\n",
|
"## Custom Error Function\n",
|
||||||
"\n",
|
"\n",
|
||||||
"You can also customize the error to be a fun"
|
"You can also customize the error to be a function that takes the error in and outputs a string."
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": 13,
|
||||||
"id": "22772981",
|
"id": "22772981",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
@ -288,10 +294,46 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": 14,
|
||||||
"id": "151eb820",
|
"id": "151eb820",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [
|
||||||
|
{
|
||||||
|
"name": "stdout",
|
||||||
|
"output_type": "stream",
|
||||||
|
"text": [
|
||||||
|
"\n",
|
||||||
|
"\n",
|
||||||
|
"\u001b[1m> Entering new AgentExecutor chain...\u001b[0m\n",
|
||||||
|
"\n",
|
||||||
|
"Observation: Could not parse LLM output: I'm sorry, but I canno\n",
|
||||||
|
"Thought:\u001b[32;1m\u001b[1;3mI need to use the Search tool to find the answer to the question.\n",
|
||||||
|
"Action:\n",
|
||||||
|
"```\n",
|
||||||
|
"{\n",
|
||||||
|
" \"action\": \"Search\",\n",
|
||||||
|
" \"action_input\": \"Who is Leo DiCaprio's girlfriend?\"\n",
|
||||||
|
"}\n",
|
||||||
|
"```\n",
|
||||||
|
"\u001b[0m\n",
|
||||||
|
"Observation: \u001b[36;1m\u001b[1;3mDiCaprio broke up with girlfriend Camila Morrone, 25, in the summer of 2022, after dating for four years. He's since been linked to another famous supermodel – Gigi Hadid. The power couple were first supposedly an item in September after being spotted getting cozy during a party at New York Fashion Week.\u001b[0m\n",
|
||||||
|
"Thought:\u001b[32;1m\u001b[1;3mThe current girlfriend of Leonardo DiCaprio is Gigi Hadid. \n",
|
||||||
|
"Final Answer: Gigi Hadid.\u001b[0m\n",
|
||||||
|
"\n",
|
||||||
|
"\u001b[1m> Finished chain.\u001b[0m\n"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"data": {
|
||||||
|
"text/plain": [
|
||||||
|
"'Gigi Hadid.'"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"execution_count": 14,
|
||||||
|
"metadata": {},
|
||||||
|
"output_type": "execute_result"
|
||||||
|
}
|
||||||
|
],
|
||||||
"source": [
|
"source": [
|
||||||
"mrkl.run(\"Who is Leo DiCaprio's girlfriend? No need to add Action\")"
|
"mrkl.run(\"Who is Leo DiCaprio's girlfriend? No need to add Action\")"
|
||||||
]
|
]
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "langchain"
|
name = "langchain"
|
||||||
version = "0.0.172"
|
version = "0.0.173"
|
||||||
description = "Building applications with LLMs through composability"
|
description = "Building applications with LLMs through composability"
|
||||||
authors = []
|
authors = []
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
Loading…
Reference in New Issue
Block a user