From 63a1569d5f283efee062fa3250e340a6ccbd5cdb Mon Sep 17 00:00:00 2001 From: Madhu Shantan Date: Thu, 29 Aug 2024 07:01:01 +0530 Subject: [PATCH] docs: fixed syntax error in ChatAnthropic Example - rag app tutorial notebook (#25824) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thank you for contributing to LangChain! - [ ] **PR title**: docs: fixed syntax error in ChatAnthropic Example - rag app tutorial notebook - generation - [ ] **PR message**: - **Description:** Fixed a syntax error in the ChatAnthropic initialization example in the RAG tutorial notebook. The original code had an extra set of quotation marks around the model parameter, which would cause a Python syntax error. The corrected version removes these unnecessary quotes. - **Dependencies:** No new dependencies required for this documentation fix. I've verified that the corrected code is syntactically valid and matches the expected format for initializing a ChatAnthropic instance in LangChain. - **Twitter handle:** madhu_shantan - [ ] **Add tests and docs**: the error in Jupyter notebook: Screenshot 2024-08-29 at 12 43 47 AM the corrected cell: Screenshot 2024-08-29 at 12 44 18 AM - [ ] **Lint and test**: As this is a documentation-only change, I have not run the full test suite. However, I have verified that the corrected code example is syntactically valid and matches the expected usage of the ChatAnthropic class. the error in the docs is here - Screenshot 2024-08-29 at 12 48 36 AM --- docs/docs/tutorials/rag.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/tutorials/rag.ipynb b/docs/docs/tutorials/rag.ipynb index c7233a22d0f..f7b93fef437 100644 --- a/docs/docs/tutorials/rag.ipynb +++ b/docs/docs/tutorials/rag.ipynb @@ -607,7 +607,7 @@ "```{=mdx}\n", "\n", "```\n", "\n", @@ -957,7 +957,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.5" + "version": "3.11.5" } }, "nbformat": 4,