From 18cb33a309853b9ef680886b033114e73a176c16 Mon Sep 17 00:00:00 2001 From: Bagatur Date: Mon, 20 Nov 2023 13:19:33 -0800 Subject: [PATCH 1/2] add core as dep --- libs/langchain/poetry.lock | 19 ++++++++++++++++++- libs/langchain/pyproject.toml | 9 +++++---- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/libs/langchain/poetry.lock b/libs/langchain/poetry.lock index bef844c0d4a1b..f0091f29d8ea3 100644 --- a/libs/langchain/poetry.lock +++ b/libs/langchain/poetry.lock @@ -4126,6 +4126,23 @@ dev = ["black", "pre-commit", "ruff"] docs = ["mkdocs", "mkdocs-jupyter", "mkdocs-material", "mkdocstrings[python]"] tests = ["pandas (>=1.4)", "pytest", "pytest-asyncio", "pytest-mock"] +[[package]] +name = "langchain-core" +version = "0.0.1" +description = "Building applications with LLMs through composability" +optional = false +python-versions = ">=3.8.1,<4.0" +files = [ + {file = "langchain_core-0.0.1-py3-none-any.whl", hash = "sha256:cad923dd3bc39cd9fe24b9d6a9799c97719aeaafc9b19509fe1347109fcb65b3"}, + {file = "langchain_core-0.0.1.tar.gz", hash = "sha256:488b72223e14849bf9588ed677a999b282904d1d5e1f81d12767ee1024220724"}, +] + +[package.dependencies] +jsonpatch = ">=1.33,<2.0" +langsmith = ">=0.0.63,<0.1.0" +pydantic = ">=1,<3" +tenacity = ">=8.1.0,<9.0.0" + [[package]] name = "langkit" version = "0.0.22" @@ -11063,4 +11080,4 @@ text-helpers = ["chardet"] [metadata] lock-version = "2.0" python-versions = ">=3.8.1,<4.0" -content-hash = "db9fcf70a90810fa88259ed5b7c8fd878d18c2979282591c2a2fd83a6476ae8a" +content-hash = "6781b828c8bc2b08ece3cbf82be799dc0e361b9f6f9c204ddefcfee70ab0db8b" diff --git a/libs/langchain/pyproject.toml b/libs/langchain/pyproject.toml index 08f0e99aa7cea..5ba9b841bf4d8 100644 --- a/libs/langchain/pyproject.toml +++ b/libs/langchain/pyproject.toml @@ -12,11 +12,16 @@ langchain-server = "langchain.server:main" [tool.poetry.dependencies] python = ">=3.8.1,<4.0" +langchain-core = "^0.0.1" pydantic = ">=1,<3" SQLAlchemy = ">=1.4,<3" requests = "^2" PyYAML = ">=5.3" numpy = "^1" +aiohttp = "^3.8.3" +tenacity = "^8.1.0" +anyio = "<4.0" +jsonpatch = "^1.33" azure-core = {version = "^1.26.4", optional=true} tqdm = {version = ">=4.48.0", optional = true} openapi-pydantic = {version = "^0.3.2", optional = true} @@ -44,7 +49,6 @@ wolframalpha = {version = "5.0.0", optional = true} qdrant-client = {version = "^1.3.1", optional = true, python = ">=3.8.1,<3.12"} dataclasses-json = ">= 0.5.7, < 0.7" tensorflow-text = {version = "^2.11.0", optional = true, python = "^3.10, <3.12"} -tenacity = "^8.1.0" cohere = {version = "^4", optional = true} openai = {version = "<2", optional = true} nlpcloud = {version = "^1", optional = true} @@ -52,7 +56,6 @@ nomic = {version = "^1.0.43", optional = true} huggingface_hub = {version = "^0", optional = true} google-search-results = {version = "^2", optional = true} 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, <4", optional = true} @@ -130,8 +133,6 @@ assemblyai = {version = "^0.17.0", optional = true} dashvector = {version = "^1.0.1", optional = true} sqlite-vss = {version = "^0.1.2", optional = true} motor = {version = "^3.3.1", optional = true} -anyio = "<4.0" -jsonpatch = "^1.33" timescale-vector = {version = "^0.0.1", optional = true} typer = {version= "^0.9.0", optional = true} anthropic = {version = "^0.3.11", optional = true} From e5f5d3c8316932ee10c1736ec9c4ad49c354eaf4 Mon Sep 17 00:00:00 2001 From: Bagatur Date: Mon, 20 Nov 2023 13:23:21 -0800 Subject: [PATCH 2/2] test --- libs/langchain/tests/unit_tests/test_dependencies.py | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/langchain/tests/unit_tests/test_dependencies.py b/libs/langchain/tests/unit_tests/test_dependencies.py index e23e3fb3c7060..05476df3651a2 100644 --- a/libs/langchain/tests/unit_tests/test_dependencies.py +++ b/libs/langchain/tests/unit_tests/test_dependencies.py @@ -43,6 +43,7 @@ def test_required_dependencies(poetry_conf: Mapping[str, Any]) -> None: "async-timeout", "dataclasses-json", "jsonpatch", + "langchain-core", "langsmith", "numpy", "pydantic",