From 7c14de070a9d48df924642195ad684ec1f9f857c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 2 Aug 2024 17:04:40 +0100 Subject: [PATCH] build: bump the langchain group across 1 directory with 3 updates (#1203) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Adam Dougal --- .../backend_api/default/test_conversation.py | 11 ++++-- .../test_iv_question_answer_tool.py | 2 +- .../test_response_without_tool_call.py | 2 +- poetry.lock | 35 ++++++++++--------- pyproject.toml | 6 ++-- 5 files changed, 31 insertions(+), 25 deletions(-) diff --git a/code/tests/functional/tests/backend_api/default/test_conversation.py b/code/tests/functional/tests/backend_api/default/test_conversation.py index 2f98d55f3..83910b8d4 100644 --- a/code/tests/functional/tests/backend_api/default/test_conversation.py +++ b/code/tests/functional/tests/backend_api/default/test_conversation.py @@ -223,7 +223,7 @@ def test_post_makes_correct_call_to_get_conversation_log_search_index( "Api-Key": app_config.get("AZURE_SEARCH_KEY"), }, query_string="api-version=2023-10-01-Preview", - times=1, + times=2, ), ) @@ -457,8 +457,13 @@ def test_post_makes_correct_call_to_create_documents_search_index( "AZURE_SEARCH_SEMANTIC_SEARCH_CONFIG" ), "prioritizedFields": { - "prioritizedContentFields": - [{"fieldName": app_config.get("AZURE_SEARCH_CONTENT_COLUMN")}] + "prioritizedContentFields": [ + { + "fieldName": app_config.get( + "AZURE_SEARCH_CONTENT_COLUMN" + ) + } + ] }, } ] diff --git a/code/tests/functional/tests/backend_api/integrated_vectorization_custom_conversation/test_iv_question_answer_tool.py b/code/tests/functional/tests/backend_api/integrated_vectorization_custom_conversation/test_iv_question_answer_tool.py index e7b8e2c7d..513d628ce 100644 --- a/code/tests/functional/tests/backend_api/integrated_vectorization_custom_conversation/test_iv_question_answer_tool.py +++ b/code/tests/functional/tests/backend_api/integrated_vectorization_custom_conversation/test_iv_question_answer_tool.py @@ -131,7 +131,7 @@ def test_post_makes_correct_call_to_get_conversation_log_search_index( "Api-Key": app_config.get("AZURE_SEARCH_KEY"), }, query_string="api-version=2023-10-01-Preview", - times=1, + times=2, ), ) diff --git a/code/tests/functional/tests/backend_api/sk_orchestrator/test_response_without_tool_call.py b/code/tests/functional/tests/backend_api/sk_orchestrator/test_response_without_tool_call.py index 966c66a4d..ec58f22db 100644 --- a/code/tests/functional/tests/backend_api/sk_orchestrator/test_response_without_tool_call.py +++ b/code/tests/functional/tests/backend_api/sk_orchestrator/test_response_without_tool_call.py @@ -102,7 +102,7 @@ def test_post_makes_correct_call_to_get_search_index( "Api-Key": app_config.get("AZURE_SEARCH_KEY"), }, query_string="api-version=2023-10-01-Preview", - times=1, + times=2, ), ) diff --git a/poetry.lock b/poetry.lock index 16a5e5910..4eeea0794 100644 --- a/poetry.lock +++ b/poetry.lock @@ -2577,19 +2577,19 @@ testing = ["pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-ena [[package]] name = "langchain" -version = "0.2.7" +version = "0.2.12" description = "Building applications with LLMs through composability" optional = false python-versions = "<4.0,>=3.8.1" files = [ - {file = "langchain-0.2.7-py3-none-any.whl", hash = "sha256:98e79e0b9a60a9c740b44d5b0135c85f649219308f30d373cf5f10d0efe18b87"}, - {file = "langchain-0.2.7.tar.gz", hash = "sha256:8742f363d2890854501e0075af04fcb470600f201dec251c9bd5841e1990e73d"}, + {file = "langchain-0.2.12-py3-none-any.whl", hash = "sha256:565d2f5df1c06815d1c684400218ec4ae5e1027887aad343226fad846c54e726"}, + {file = "langchain-0.2.12.tar.gz", hash = "sha256:fe7bd409c133017446fec54c38a5e7cb14f74e020090d7b5065374badf71e6d1"}, ] [package.dependencies] aiohttp = ">=3.8.3,<4.0.0" async-timeout = {version = ">=4.0.0,<5.0.0", markers = "python_version < \"3.11\""} -langchain-core = ">=0.2.12,<0.3.0" +langchain-core = ">=0.2.27,<0.3.0" langchain-text-splitters = ">=0.2.0,<0.3.0" langsmith = ">=0.1.17,<0.2.0" numpy = [ @@ -2604,20 +2604,20 @@ tenacity = ">=8.1.0,<8.4.0 || >8.4.0,<9.0.0" [[package]] name = "langchain-community" -version = "0.2.7" +version = "0.2.10" description = "Community contributed LangChain integrations." optional = false python-versions = "<4.0,>=3.8.1" files = [ - {file = "langchain_community-0.2.7-py3-none-any.whl", hash = "sha256:c236e74249ab68a318c94c95327cbe75a76489b61f7bf93f14117d9233ce70b1"}, - {file = "langchain_community-0.2.7.tar.gz", hash = "sha256:f52659dbb8a8f0c011cc7d634247686d11d768843cc3e5fe9e6f52321cde82c0"}, + {file = "langchain_community-0.2.10-py3-none-any.whl", hash = "sha256:9f4d1b5ab7f0b0a704f538e26e50fce45a461da6d2bf6b7b636d24f22fbc088a"}, + {file = "langchain_community-0.2.10.tar.gz", hash = "sha256:3a0404bad4bd07d6f86affdb62fb3d080a456c66191754d586a409d9d6024d62"}, ] [package.dependencies] aiohttp = ">=3.8.3,<4.0.0" dataclasses-json = ">=0.5.7,<0.7" -langchain = ">=0.2.7,<0.3.0" -langchain-core = ">=0.2.12,<0.3.0" +langchain = ">=0.2.9,<0.3.0" +langchain-core = ">=0.2.23,<0.3.0" langsmith = ">=0.1.0,<0.2.0" numpy = [ {version = ">=1,<2", markers = "python_version < \"3.12\""}, @@ -2630,13 +2630,13 @@ tenacity = ">=8.1.0,<8.4.0 || >8.4.0,<9.0.0" [[package]] name = "langchain-core" -version = "0.2.18" +version = "0.2.27" description = "Building applications with LLMs through composability" optional = false python-versions = "<4.0,>=3.8.1" files = [ - {file = "langchain_core-0.2.18-py3-none-any.whl", hash = "sha256:c9dbb197508e76337ed810ec977d40ae0c896397d191b420ef126c3818a1be96"}, - {file = "langchain_core-0.2.18.tar.gz", hash = "sha256:ca5c5f1a783449dae8686e366ff3c5b775f8b5cef0de4ef346b8820d3d1c46ff"}, + {file = "langchain_core-0.2.27-py3-none-any.whl", hash = "sha256:b12f58d4e3590e8e0b4b727acb0457b00e80862d1bf8b9d1ae36128adb08a7d0"}, + {file = "langchain_core-0.2.27.tar.gz", hash = "sha256:5d2e4b9bc84285bbfe19864363b1a21dd04c2eed12d4a6b39f239ee02237ce40"}, ] [package.dependencies] @@ -2649,20 +2649,21 @@ pydantic = [ ] PyYAML = ">=5.3" tenacity = ">=8.1.0,<8.4.0 || >8.4.0,<9.0.0" +typing-extensions = ">=4.7" [[package]] name = "langchain-openai" -version = "0.1.16" +version = "0.1.20" description = "An integration package connecting OpenAI and LangChain" optional = false python-versions = "<4.0,>=3.8.1" files = [ - {file = "langchain_openai-0.1.16-py3-none-any.whl", hash = "sha256:bff90e9d0be786495920a7851ae4d55247fb084d3a11d1b15bfe91904ce1cb0f"}, - {file = "langchain_openai-0.1.16.tar.gz", hash = "sha256:3dedcc785a64a488ad6a313cc59b0dccea025d27413b55cec73a20dcf3ded4da"}, + {file = "langchain_openai-0.1.20-py3-none-any.whl", hash = "sha256:232ebfe90b1898ef7cf181e364d45191edcf04bfc31b292ecaa1d2121942c28e"}, + {file = "langchain_openai-0.1.20.tar.gz", hash = "sha256:2c91e9f771541076b138e65dd4c5427b26957a2272406a7f4ee747d7896f9b35"}, ] [package.dependencies] -langchain-core = ">=0.2.17,<0.3.0" +langchain-core = ">=0.2.26,<0.3.0" openai = ">=1.32.0,<2.0.0" tiktoken = ">=0.7,<1" @@ -7057,4 +7058,4 @@ test = ["big-O", "importlib-resources", "jaraco.functools", "jaraco.itertools", [metadata] lock-version = "2.0" python-versions = "^3.10" -content-hash = "689d05af6b36a0ed5841109692ec9b3d8426e3f561153897d61b1c6d6d61bae8" +content-hash = "b1509ed0905041a198322f221356a9f421072dae4f4ee070a0ec34c0921dc24f" diff --git a/pyproject.toml b/pyproject.toml index aa81bc04d..9cba5d6f9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,9 +18,9 @@ azure-storage-blob = "12.20.0" azure-identity = "1.17.1" flask = {extras = ["async"], version = "^3.0.3"} openai = "1.37.1" -langchain = "0.2.7" -langchain-community = "0.2.7" -langchain-openai = "0.1.16" +langchain = "0.2.12" +langchain-community = "0.2.10" +langchain-openai = "0.1.20" requests = "2.32.3" tiktoken = "0.7.0" azure-storage-queue = "12.11.0"