bump version to 173 (#4910)

docker
Harrison Chase 1 year ago committed by GitHub
parent b8d48939a2
commit dfbf45f028
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -184,7 +184,7 @@ Additional Resources
:hidden:
LangChainHub <https://github.com/hwchase17/langchain-hub>
./additional_resources/gallery.rst
Gallery <https://github.com/kyrolabs/awesome-langchain>
./additional_resources/deployments.md
./additional_resources/tracing.md
./additional_resources/model_laboratory.ipynb

@ -219,7 +219,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 12,
"id": "5d5a3e47",
"metadata": {},
"outputs": [
@ -231,24 +231,32 @@
"\n",
"\u001b[1m> Entering new AgentExecutor chain...\u001b[0m\n",
"\n",
"Observation: Check your output and make sure it conforms!\n",
"Thought:\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",
"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\": \"Leo DiCaprio girlfriend\"\n",
" \"action_input\": \"Who is Leo DiCaprio's girlfriend?\"\n",
"}\n",
"```\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",
"Thought:\u001b[32;1m\u001b[1;3mThe answer to the question is Camila Morrone. \n",
"Final Answer: Camila Morrone.\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 that Leo DiCaprio's current girlfriend 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": 12,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
@ -256,20 +264,18 @@
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "65de0bed",
"cell_type": "markdown",
"id": "c2eb06e2",
"metadata": {},
"outputs": [],
"source": [
"## Custom Error Function\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",
"execution_count": null,
"execution_count": 13,
"id": "22772981",
"metadata": {},
"outputs": [],
@ -288,10 +294,46 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 14,
"id": "151eb820",
"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": [
"mrkl.run(\"Who is Leo DiCaprio's girlfriend? No need to add Action\")"
]

@ -1,6 +1,6 @@
[tool.poetry]
name = "langchain"
version = "0.0.172"
version = "0.0.173"
description = "Building applications with LLMs through composability"
authors = []
license = "MIT"

Loading…
Cancel
Save