From b768deb701b1d7db0155cea81f556301bae33fac Mon Sep 17 00:00:00 2001 From: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com> Date: Tue, 20 Feb 2024 20:11:27 -0800 Subject: [PATCH] Spelling --- examples/lats/lats.ipynb | 2 +- examples/reflexion/reflexion.ipynb | 18 +++--------------- 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/examples/lats/lats.ipynb b/examples/lats/lats.ipynb index 54f42b86d..bac0515b8 100644 --- a/examples/lats/lats.ipynb +++ b/examples/lats/lats.ipynb @@ -7,7 +7,7 @@ "source": [ "# Language Agent Tree Search\n", "\n", - "[Language Agent Tree Search](https://andyz245.github.io/LanguageAgentTreeSearch/) (LATS), by Zhou, et. al, is a general LLM agent frameowrk that combines reflection/evaluation and search (specifically monte-carlo trees search) to get achieve better overall task performance compared to similar techniques like ReACT, Reflexion, or Tree of Thoughts.\n", + "[Language Agent Tree Search](https://andyz245.github.io/LanguageAgentTreeSearch/) (LATS), by Zhou, et. al, is a general LLM agent search algorithm that combines reflection/evaluation and search (specifically monte-carlo trees search) to get achieve better overall task performance compared to similar techniques like ReACT, Reflexion, or Tree of Thoughts.\n", "\n", "![LATS diagram](./img/lats.png)\n", "\n", diff --git a/examples/reflexion/reflexion.ipynb b/examples/reflexion/reflexion.ipynb index d5cdb71bc..3a1e90160 100644 --- a/examples/reflexion/reflexion.ipynb +++ b/examples/reflexion/reflexion.ipynb @@ -239,7 +239,6 @@ " self.validator.invoke(response)\n", " return response\n", " except ValidationError as e:\n", - " print(\"RETRYING\", attempt)\n", " state = state + [HumanMessage(content=repr(e))]\n", " return response" ] @@ -269,24 +268,13 @@ }, { "cell_type": "code", - "execution_count": 66, + "execution_count": null, "id": "20901d77-0f5f-4596-90a4-412c0ac5f2c2", "metadata": {}, - "outputs": [ - { - "data": { - "text/plain": [ - "dict_keys(['answer', 'reflection', 'search_queries'])" - ] - }, - "execution_count": 66, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "parsed = parser.invoke(initial)\n", - "parsed[0][\"args\"].keys()" + "parsed" ] }, {