From 32d09bcd1ee5b5604919986eb32b138a9572226b Mon Sep 17 00:00:00 2001 From: Piyush Jain Date: Thu, 28 Sep 2023 15:33:30 -0700 Subject: [PATCH] Expanded version range for networkx, fixed sample notebook (#11094) ## Description Expanded the upper bound for `networkx` dependency to allow installation of latest stable version. Tested the included sample notebook with version 3.1, and all steps ran successfully. --------- Co-authored-by: Bagatur --- docs/extras/use_cases/more/graph/graph_qa.ipynb | 4 ++-- libs/langchain/poetry.lock | 2 +- libs/langchain/pyproject.toml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/extras/use_cases/more/graph/graph_qa.ipynb b/docs/extras/use_cases/more/graph/graph_qa.ipynb index 59447024e9..688661b63e 100644 --- a/docs/extras/use_cases/more/graph/graph_qa.ipynb +++ b/docs/extras/use_cases/more/graph/graph_qa.ipynb @@ -49,7 +49,7 @@ "metadata": {}, "outputs": [], "source": [ - "with open(\"../../state_of_the_union.txt\") as f:\n", + "with open(\"../../../modules/state_of_the_union.txt\") as f:\n", " all_text = f.read()" ] }, @@ -296,7 +296,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.1" + "version": "3.9.13" } }, "nbformat": 4, diff --git a/libs/langchain/poetry.lock b/libs/langchain/poetry.lock index 2345b5281a..27787e1926 100644 --- a/libs/langchain/poetry.lock +++ b/libs/langchain/poetry.lock @@ -10652,4 +10652,4 @@ text-helpers = ["chardet"] [metadata] lock-version = "2.0" python-versions = ">=3.8.1,<4.0" -content-hash = "d8521717f7e2210f516af806f8c2655815411f6df776d8812b80fda871a73651" +content-hash = "ce46d0939d26903ed3de2f4d297d7aa6b359d1a466df80861e9898d865bfc8c9" diff --git a/libs/langchain/pyproject.toml b/libs/langchain/pyproject.toml index 2295ca809e..f8354f6a0f 100644 --- a/libs/langchain/pyproject.toml +++ b/libs/langchain/pyproject.toml @@ -55,7 +55,7 @@ sentence-transformers = {version = "^2", optional = true} aiohttp = "^3.8.3" arxiv = {version = "^1.4", optional = true} pypdf = {version = "^3.4.0", optional = true} -networkx = {version="^2.6.3", optional = true} +networkx = {version=">=2.6.3, <4", optional = true} aleph-alpha-client = {version="^2.15.0", optional = true} deeplake = {version = "^3.6.8", optional = true} libdeeplake = {version = "^0.0.60", optional = true}