From 539d41387eac68f86d8d2fe1199c2d43e9bc0c2c Mon Sep 17 00:00:00 2001 From: Libby Lin Date: Wed, 23 Oct 2024 18:12:15 -0700 Subject: [PATCH 1/2] Fix for spelling mistake: https://github.com/langchain-ai/langchain/issues/26009 --- docs/docs/how_to/output_parser_xml.ipynb | 2 +- docs/docs/how_to/output_parser_yaml.ipynb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/how_to/output_parser_xml.ipynb b/docs/docs/how_to/output_parser_xml.ipynb index 4acfc968304df..3860d0cc6cc87 100644 --- a/docs/docs/how_to/output_parser_xml.ipynb +++ b/docs/docs/how_to/output_parser_xml.ipynb @@ -18,7 +18,7 @@ "\n", ":::\n", "\n", - "LLMs from different providers often have different strengths depending on the specific data they are trianed on. This also means that some may be \"better\" and more reliable at generating output in formats other than JSON.\n", + "LLMs from different providers often have different strengths depending on the specific data they are trained on. This also means that some may be \"better\" and more reliable at generating output in formats other than JSON.\n", "\n", "This guide shows you how to use the [`XMLOutputParser`](https://python.langchain.com/api_reference/core/output_parsers/langchain_core.output_parsers.xml.XMLOutputParser.html) to prompt models for XML output, then and parse that output into a usable format.\n", "\n", diff --git a/docs/docs/how_to/output_parser_yaml.ipynb b/docs/docs/how_to/output_parser_yaml.ipynb index 36a3e095c0267..2855c305a87a5 100644 --- a/docs/docs/how_to/output_parser_yaml.ipynb +++ b/docs/docs/how_to/output_parser_yaml.ipynb @@ -18,7 +18,7 @@ "\n", ":::\n", "\n", - "LLMs from different providers often have different strengths depending on the specific data they are trianed on. This also means that some may be \"better\" and more reliable at generating output in formats other than JSON.\n", + "LLMs from different providers often have different strengths depending on the specific data they are trained on. This also means that some may be \"better\" and more reliable at generating output in formats other than JSON.\n", "\n", "This output parser allows users to specify an arbitrary schema and query LLMs for outputs that conform to that schema, using YAML to format their response.\n", "\n", From f255548016becb82d5f9227c301b069c258ba06a Mon Sep 17 00:00:00 2001 From: Libby Lin Date: Thu, 24 Oct 2024 09:53:11 -0700 Subject: [PATCH 2/2] Added some text for issue 26616. The user would know to upgrade to avoid the error messages --- docs/docs/integrations/tools/pandas.ipynb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/docs/integrations/tools/pandas.ipynb b/docs/docs/integrations/tools/pandas.ipynb index 9ad8ec30df677..2647140f54231 100644 --- a/docs/docs/integrations/tools/pandas.ipynb +++ b/docs/docs/integrations/tools/pandas.ipynb @@ -9,7 +9,13 @@ "\n", "This notebook shows how to use agents to interact with a `Pandas DataFrame`. It is mostly optimized for question answering.\n", "\n", - "**NOTE: this agent calls the `Python` agent under the hood, which executes LLM generated Python code - this can be bad if the LLM generated Python code is harmful. Use cautiously.**" + "**NOTE: this agent calls the `Python` agent under the hood, which executes LLM generated Python code - this can be bad if the LLM generated Python code is harmful. Use cautiously.**\n", + "\n", + "**NOTE: Since langchain migrated to v0.3 you should upgrade langchain_openai and langchain. This would avoid import errors.**\n", + "\n", + "\n", + "pip install --upgrade langchain_openai\n", + "pip install --upgrade langchain\n" ] }, { @@ -294,7 +300,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.1" + "version": "3.11.7" } }, "nbformat": 4,