diff --git a/pyproject.toml b/pyproject.toml index a8515c4c..52f53087 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,8 @@ authors = [ dependencies = [ "cloud-sql-python-connector[asyncpg] >= 1.10.0, <2.0.0", "langchain-core>=0.2.36, <1.0.0 ", - "numpy>=1.24.4, <2.0.0", + "numpy>=1.24.4, <3.0.0; python_version > '3.9'", + "numpy>=1.24.4, <=2.0.2; python_version <= '3.9'", "pgvector>=0.2.5, <1.0.0", "SQLAlchemy[asyncio]>=2.0.25, <3.0.0" ] diff --git a/requirements.txt b/requirements.txt index 502d9c3e..6a4889de 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,6 @@ cloud-sql-python-connector[asyncpg]==1.17.0 langchain-core==0.3.40 -numpy==1.26.4 +numpy==2.2.3; python_version > "3.9" +numpy== 2.0.2; python_version <= "3.9" pgvector==0.3.6 SQLAlchemy[asyncio]==2.0.38