From bcff458ae3c014a1550848091ec179aaef1491c3 Mon Sep 17 00:00:00 2001 From: hippopond <160084905+hippopond@users.noreply.github.com> Date: Thu, 24 Oct 2024 14:54:12 -0700 Subject: [PATCH] DOC: Added notes in ipynb file to advise user to upgrade package langchain_openai. For issue: https://github.com/langchain-ai/langchain/issues/26616 (#27621) Thank you for contributing to LangChain! - [X] **PR title**: DOC: Added notes in ipynb file to advice user to upgrade package langchain_openai. - [X] Added notes from the issue report: to advise the user to upgrade langchain_openai Issue: https://github.com/langchain-ai/langchain/issues/26616 - [ ] **Add tests and docs**: - [ ] **Lint and test**: - [ ] --------- Co-authored-by: Libby Lin Co-authored-by: Erick Friis --- 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 9ad8ec30df6..2647140f542 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,