From 5021a427876ac86ffbb201cb078db26d996a5df1 Mon Sep 17 00:00:00 2001 From: Andrew Brookins Date: Wed, 16 Apr 2025 17:02:00 -0700 Subject: [PATCH 01/11] Checkpoint --- poetry.lock | 570 ++++++++----------- pyproject.toml | 1 + redisvl/extensions/llmcache/langcache_api.py | 395 +++++++++++++ redisvl/extensions/llmcache/schema.py | 4 +- redisvl/extensions/llmcache/semantic.py | 4 - redisvl/extensions/router/semantic.py | 4 +- redisvl/redis/utils.py | 12 +- redisvl/utils/utils.py | 9 + vendor/langcache-0.0.4-py3-none-any.whl | Bin 0 -> 56763 bytes vendor/langcache_client.md | 437 ++++++++++++++ 10 files changed, 1096 insertions(+), 340 deletions(-) create mode 100644 redisvl/extensions/llmcache/langcache_api.py create mode 100644 vendor/langcache-0.0.4-py3-none-any.whl create mode 100644 vendor/langcache_client.md diff --git a/poetry.lock b/poetry.lock index df28f211..12e0c19d 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 2.0.1 and should not be changed by hand. +# This file is automatically @generated by Poetry 2.1.2 and should not be changed by hand. [[package]] name = "accessible-pygments" @@ -7,7 +7,6 @@ description = "A collection of accessible pygments styles" optional = false python-versions = ">=3.9" groups = ["docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "accessible_pygments-0.0.5-py3-none-any.whl", hash = "sha256:88ae3211e68a1d0b011504b2ffc1691feafce124b845bd072ab6f9f66f34d4b7"}, {file = "accessible_pygments-0.0.5.tar.gz", hash = "sha256:40918d3e6a2b619ad424cb91e556bd3bd8865443d9f22f1dcdf79e33c8046872"}, @@ -27,7 +26,7 @@ description = "Happy Eyeballs for asyncio" optional = true python-versions = ">=3.9" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"voyageai\"" +markers = "extra == \"voyageai\"" files = [ {file = "aiohappyeyeballs-2.4.6-py3-none-any.whl", hash = "sha256:147ec992cf873d74f5062644332c539fcd42956dc69453fe5204195e560517e1"}, {file = "aiohappyeyeballs-2.4.6.tar.gz", hash = "sha256:9b05052f9042985d32ecbe4b59a77ae19c006a78f1344d7fdad69d28ded3d0b0"}, @@ -40,7 +39,7 @@ description = "Async http client/server framework (asyncio)" optional = true python-versions = ">=3.9" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"voyageai\"" +markers = "extra == \"voyageai\"" files = [ {file = "aiohttp-3.11.13-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:a4fe27dbbeec445e6e1291e61d61eb212ee9fed6e47998b27de71d70d3e8777d"}, {file = "aiohttp-3.11.13-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:9e64ca2dbea28807f8484c13f684a2f761e69ba2640ec49dacd342763cc265ef"}, @@ -136,7 +135,7 @@ propcache = ">=0.2.0" yarl = ">=1.17.0,<2.0" [package.extras] -speedups = ["Brotli", "aiodns (>=3.2.0)", "brotlicffi"] +speedups = ["Brotli ; platform_python_implementation == \"CPython\"", "aiodns (>=3.2.0) ; sys_platform == \"linux\" or sys_platform == \"darwin\"", "brotlicffi ; platform_python_implementation != \"CPython\""] [[package]] name = "aiolimiter" @@ -145,7 +144,7 @@ description = "asyncio rate limiter, a leaky bucket implementation" optional = true python-versions = "<4.0,>=3.8" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"voyageai\"" +markers = "extra == \"voyageai\"" files = [ {file = "aiolimiter-1.2.1-py3-none-any.whl", hash = "sha256:d3f249e9059a20badcb56b61601a83556133655c11d1eb3dd3e04ff069e5f3c7"}, {file = "aiolimiter-1.2.1.tar.gz", hash = "sha256:e02a37ea1a855d9e832252a105420ad4d15011505512a1a1d814647451b5cca9"}, @@ -158,7 +157,7 @@ description = "aiosignal: a list of registered asynchronous callbacks" optional = true python-versions = ">=3.9" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"voyageai\"" +markers = "extra == \"voyageai\"" files = [ {file = "aiosignal-1.3.2-py2.py3-none-any.whl", hash = "sha256:45cde58e409a301715980c2b01d0c28bdde3770d8290b5eb2173759d9acb31a5"}, {file = "aiosignal-1.3.2.tar.gz", hash = "sha256:a8c255c66fafb1e499c9351d0bf32ff2d8a0321595ebac3b93713656d2436f54"}, @@ -174,7 +173,6 @@ description = "A light, configurable Sphinx theme" optional = false python-versions = ">=3.9" groups = ["docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "alabaster-0.7.16-py3-none-any.whl", hash = "sha256:b46733c07dce03ae4e150330b975c75737fa60f0a7c591b6c8bf4928a28e2c92"}, {file = "alabaster-0.7.16.tar.gz", hash = "sha256:75a8b99c28a5dad50dd7f8ccdd447a121ddb3892da9e53d1ca5cca3106d58d65"}, @@ -187,7 +185,6 @@ description = "Reusable constraint types to use with typing.Annotated" optional = false python-versions = ">=3.8" groups = ["main"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "annotated_types-0.7.0-py3-none-any.whl", hash = "sha256:1f02e8b43a8fbbc3f3e0d4f0f4bfc8131bcb4eebe8849b8e5c773f3a1c582a53"}, {file = "annotated_types-0.7.0.tar.gz", hash = "sha256:aff07c09a53a08bc8cfccb9c85b05f1aa9a2a6f23728d790723543408344ce89"}, @@ -197,10 +194,9 @@ files = [ name = "anyio" version = "4.8.0" description = "High level compatibility layer for multiple asynchronous event loop implementations" -optional = true +optional = false python-versions = ">=3.9" groups = ["main"] -markers = "(extra == \"openai\" or extra == \"cohere\" or extra == \"mistralai\") and (python_version <= \"3.11\" or python_version >= \"3.12\")" files = [ {file = "anyio-4.8.0-py3-none-any.whl", hash = "sha256:b5011f270ab5eb0abf13385f851315585cc37ef330dd88e27ec3d34d651fd47a"}, {file = "anyio-4.8.0.tar.gz", hash = "sha256:1d9fe889df5212298c0c0723fa20479d1b94883a2df44bd3897aa91083316f7a"}, @@ -214,7 +210,7 @@ typing_extensions = {version = ">=4.5", markers = "python_version < \"3.13\""} [package.extras] doc = ["Sphinx (>=7.4,<8.0)", "packaging", "sphinx-autodoc-typehints (>=1.2.0)", "sphinx_rtd_theme"] -test = ["anyio[trio]", "coverage[toml] (>=7)", "exceptiongroup (>=1.2.0)", "hypothesis (>=4.0)", "psutil (>=5.9)", "pytest (>=7.0)", "trustme", "truststore (>=0.9.1)", "uvloop (>=0.21)"] +test = ["anyio[trio]", "coverage[toml] (>=7)", "exceptiongroup (>=1.2.0)", "hypothesis (>=4.0)", "psutil (>=5.9)", "pytest (>=7.0)", "trustme", "truststore (>=0.9.1) ; python_version >= \"3.10\"", "uvloop (>=0.21) ; platform_python_implementation == \"CPython\" and platform_system != \"Windows\" and python_version < \"3.14\""] trio = ["trio (>=0.26.1)"] [[package]] @@ -224,7 +220,7 @@ description = "Disable App Nap on macOS >= 10.9" optional = false python-versions = ">=3.6" groups = ["dev", "docs"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and platform_system == \"Darwin\"" +markers = "platform_system == \"Darwin\"" files = [ {file = "appnope-0.1.4-py2.py3-none-any.whl", hash = "sha256:502575ee11cd7a28c0205f379b525beefebab9d161b7c964670864014ed7213c"}, {file = "appnope-0.1.4.tar.gz", hash = "sha256:1de3860566df9caf38f01f86f65e0e13e379af54f9e4bee1e66b48f2efffd1ee"}, @@ -237,7 +233,6 @@ description = "An abstract syntax tree for Python with inference support." optional = false python-versions = ">=3.9.0" groups = ["dev"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "astroid-3.3.8-py3-none-any.whl", hash = "sha256:187ccc0c248bfbba564826c26f070494f7bc964fd286b6d9fff4420e55de828c"}, {file = "astroid-3.3.8.tar.gz", hash = "sha256:a88c7994f914a4ea8572fac479459f4955eeccc877be3f2d959a33273b0cf40b"}, @@ -253,7 +248,6 @@ description = "Annotate AST trees with source code positions" optional = false python-versions = ">=3.8" groups = ["dev", "docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "asttokens-3.0.0-py3-none-any.whl", hash = "sha256:e3078351a059199dd5138cb1c706e6430c05eff2ff136af5eb4790f9d28932e2"}, {file = "asttokens-3.0.0.tar.gz", hash = "sha256:0dcd8baa8d62b0c1d118b399b2ddba3c4aff271d0d7a9e0d4c1681c79035bbc7"}, @@ -287,15 +281,15 @@ files = [ {file = "attrs-25.1.0-py3-none-any.whl", hash = "sha256:c75a69e28a550a7e93789579c22aa26b0f5b83b75dc4e08fe092980051e1090a"}, {file = "attrs-25.1.0.tar.gz", hash = "sha256:1c97078a80c814273a76b2a298a932eb681c87415c11dee0a6921de7f1b02c3e"}, ] -markers = {main = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"voyageai\"", dev = "python_version <= \"3.11\" or python_version >= \"3.12\"", docs = "python_version <= \"3.11\" or python_version >= \"3.12\""} +markers = {main = "extra == \"voyageai\""} [package.extras] -benchmark = ["cloudpickle", "hypothesis", "mypy (>=1.11.1)", "pympler", "pytest (>=4.3.0)", "pytest-codspeed", "pytest-mypy-plugins", "pytest-xdist[psutil]"] -cov = ["cloudpickle", "coverage[toml] (>=5.3)", "hypothesis", "mypy (>=1.11.1)", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"] -dev = ["cloudpickle", "hypothesis", "mypy (>=1.11.1)", "pre-commit-uv", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"] +benchmark = ["cloudpickle ; platform_python_implementation == \"CPython\"", "hypothesis", "mypy (>=1.11.1) ; platform_python_implementation == \"CPython\" and python_version >= \"3.10\"", "pympler", "pytest (>=4.3.0)", "pytest-codspeed", "pytest-mypy-plugins ; platform_python_implementation == \"CPython\" and python_version >= \"3.10\"", "pytest-xdist[psutil]"] +cov = ["cloudpickle ; platform_python_implementation == \"CPython\"", "coverage[toml] (>=5.3)", "hypothesis", "mypy (>=1.11.1) ; platform_python_implementation == \"CPython\" and python_version >= \"3.10\"", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins ; platform_python_implementation == \"CPython\" and python_version >= \"3.10\"", "pytest-xdist[psutil]"] +dev = ["cloudpickle ; platform_python_implementation == \"CPython\"", "hypothesis", "mypy (>=1.11.1) ; platform_python_implementation == \"CPython\" and python_version >= \"3.10\"", "pre-commit-uv", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins ; platform_python_implementation == \"CPython\" and python_version >= \"3.10\"", "pytest-xdist[psutil]"] docs = ["cogapp", "furo", "myst-parser", "sphinx", "sphinx-notfound-page", "sphinxcontrib-towncrier", "towncrier (<24.7)"] -tests = ["cloudpickle", "hypothesis", "mypy (>=1.11.1)", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"] -tests-mypy = ["mypy (>=1.11.1)", "pytest-mypy-plugins"] +tests = ["cloudpickle ; platform_python_implementation == \"CPython\"", "hypothesis", "mypy (>=1.11.1) ; platform_python_implementation == \"CPython\" and python_version >= \"3.10\"", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins ; platform_python_implementation == \"CPython\" and python_version >= \"3.10\"", "pytest-xdist[psutil]"] +tests-mypy = ["mypy (>=1.11.1) ; platform_python_implementation == \"CPython\" and python_version >= \"3.10\"", "pytest-mypy-plugins ; platform_python_implementation == \"CPython\" and python_version >= \"3.10\""] [[package]] name = "babel" @@ -304,14 +298,13 @@ description = "Internationalization utilities" optional = false python-versions = ">=3.8" groups = ["docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "babel-2.17.0-py3-none-any.whl", hash = "sha256:4d0b53093fdfb4b21c92b5213dba5a1b23885afa8383709427046b21c366e5f2"}, {file = "babel-2.17.0.tar.gz", hash = "sha256:0c54cffb19f690cdcc52a3b50bcbf71e07a808d1c80d549f2459b9d2cf0afb9d"}, ] [package.extras] -dev = ["backports.zoneinfo", "freezegun (>=1.0,<2.0)", "jinja2 (>=3.0)", "pytest (>=6.0)", "pytest-cov", "pytz", "setuptools", "tzdata"] +dev = ["backports.zoneinfo ; python_version < \"3.9\"", "freezegun (>=1.0,<2.0)", "jinja2 (>=3.0)", "pytest (>=6.0)", "pytest-cov", "pytz", "setuptools", "tzdata ; sys_platform == \"win32\""] [[package]] name = "beautifulsoup4" @@ -324,7 +317,7 @@ files = [ {file = "beautifulsoup4-4.13.3-py3-none-any.whl", hash = "sha256:99045d7d3f08f91f0d656bc9b7efbae189426cd913d830294a15eefa0ea4df16"}, {file = "beautifulsoup4-4.13.3.tar.gz", hash = "sha256:1bd32405dacc920b42b83ba01644747ed77456a65760e285fbc47633ceddaf8b"}, ] -markers = {main = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"ranx\" and python_version >= \"3.10\"", docs = "python_version <= \"3.11\" or python_version >= \"3.12\""} +markers = {main = "python_version >= \"3.10\" and extra == \"ranx\""} [package.dependencies] soupsieve = ">1.2" @@ -344,7 +337,6 @@ description = "The uncompromising code formatter." optional = false python-versions = ">=3.9" groups = ["dev"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "black-25.1.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:759e7ec1e050a15f89b770cefbf91ebee8917aac5c20483bc2d80a6c3a04df32"}, {file = "black-25.1.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:0e519ecf93120f34243e6b0054db49c00a35f84f195d5bce7e9f5cfc578fc2da"}, @@ -392,7 +384,6 @@ description = "An easy safelist-based HTML-sanitizing tool." optional = false python-versions = ">=3.9" groups = ["docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "bleach-6.2.0-py3-none-any.whl", hash = "sha256:117d9c6097a7c3d22fd578fcd8d35ff1e125df6736f554da4e432fdd63f31e5e"}, {file = "bleach-6.2.0.tar.gz", hash = "sha256:123e894118b8a599fd80d3ec1a6d4cc7ce4e5882b1317a7e1ba69b56e95f991f"}, @@ -412,7 +403,7 @@ description = "The AWS SDK for Python" optional = true python-versions = ">=3.8" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"bedrock\"" +markers = "extra == \"bedrock\"" files = [ {file = "boto3-1.36.0-py3-none-any.whl", hash = "sha256:d0ca7a58ce25701a52232cc8df9d87854824f1f2964b929305722ebc7959d5a9"}, {file = "boto3-1.36.0.tar.gz", hash = "sha256:159898f51c2997a12541c0e02d6e5a8fe2993ddb307b9478fd9a339f98b57e00"}, @@ -433,7 +424,7 @@ description = "Low-level, data-driven core of boto 3." optional = true python-versions = ">=3.8" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"bedrock\"" +markers = "extra == \"bedrock\"" files = [ {file = "botocore-1.36.26-py3-none-any.whl", hash = "sha256:4e3f19913887a58502e71ef8d696fe7eaa54de7813ff73390cd5883f837dfa6e"}, {file = "botocore-1.36.26.tar.gz", hash = "sha256:4a63bcef7ecf6146fd3a61dc4f9b33b7473b49bdaf1770e9aaca6eee0c9eab62"}, @@ -457,7 +448,7 @@ description = "Extensible memoizing collections and decorators" optional = true python-versions = ">=3.7" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"vertexai\"" +markers = "extra == \"vertexai\"" files = [ {file = "cachetools-5.5.2-py3-none-any.whl", hash = "sha256:d26a22bcc62eb95c3beabd9f1ee5e820d3d2704fe2967cbe350e20c8ffcd3f0a"}, {file = "cachetools-5.5.2.tar.gz", hash = "sha256:1a661caa9175d26759571b2e19580f9d6393969e5dfca11fdb1f947a23e640d4"}, @@ -470,7 +461,7 @@ description = "RFC 7049 - Concise Binary Object Representation" optional = true python-versions = "*" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"ranx\" and python_version >= \"3.10\"" +markers = "python_version >= \"3.10\" and extra == \"ranx\"" files = [ {file = "cbor-1.0.0.tar.gz", hash = "sha256:13225a262ddf5615cbd9fd55a76a0d53069d18b07d2e9f19c39e6acb8609bbb6"}, ] @@ -482,7 +473,7 @@ description = "CBOR (de)serializer with extensive tag support" optional = true python-versions = ">=3.8" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"ranx\" and python_version >= \"3.10\"" +markers = "python_version >= \"3.10\" and extra == \"ranx\"" files = [ {file = "cbor2-5.6.5-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:e16c4a87fc999b4926f5c8f6c696b0d251b4745bc40f6c5aee51d69b30b15ca2"}, {file = "cbor2-5.6.5-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:87026fc838370d69f23ed8572939bd71cea2b3f6c8f8bb8283f573374b4d7f33"}, @@ -532,7 +523,7 @@ files = [ [package.extras] benchmarks = ["pytest-benchmark (==4.0.0)"] -doc = ["Sphinx (>=7)", "packaging", "sphinx-autodoc-typehints (>=1.2.0)", "sphinx-rtd-theme (>=1.3.0)", "typing-extensions"] +doc = ["Sphinx (>=7)", "packaging", "sphinx-autodoc-typehints (>=1.2.0)", "sphinx-rtd-theme (>=1.3.0)", "typing-extensions ; python_version < \"3.12\""] test = ["coverage (>=7)", "hypothesis", "pytest"] [[package]] @@ -546,7 +537,6 @@ files = [ {file = "certifi-2025.1.31-py3-none-any.whl", hash = "sha256:ca78db4565a652026a4db2bcdf68f2fb589ea80d0be70e03929ed730746b84fe"}, {file = "certifi-2025.1.31.tar.gz", hash = "sha256:3d5da6925056f6f18f119200434a4780a94263f10d1c21d032a6f6b2baa20651"}, ] -markers = {main = "(python_version <= \"3.11\" or python_version >= \"3.12\") and (extra == \"openai\" or extra == \"cohere\" or extra == \"mistralai\" or extra == \"sentence-transformers\" or extra == \"vertexai\" or extra == \"voyageai\" or extra == \"ranx\") and (extra == \"openai\" or extra == \"cohere\" or extra == \"mistralai\" or extra == \"sentence-transformers\" or extra == \"vertexai\" or extra == \"voyageai\" or python_version >= \"3.10\")", dev = "python_version <= \"3.11\" or python_version >= \"3.12\"", docs = "python_version <= \"3.11\" or python_version >= \"3.12\""} [[package]] name = "cffi" @@ -624,7 +614,7 @@ files = [ {file = "cffi-1.17.1-cp39-cp39-win_amd64.whl", hash = "sha256:d016c76bdd850f3c626af19b0542c9677ba156e4ee4fccfdd7848803533ef662"}, {file = "cffi-1.17.1.tar.gz", hash = "sha256:1c39c6016c32bc48dd54561950ebd6836e1670f2ae46128f67cf49e789c52824"}, ] -markers = {dev = "(implementation_name == \"pypy\" or platform_python_implementation != \"PyPy\") and (python_version <= \"3.11\" or python_version >= \"3.12\")", docs = "(python_version <= \"3.11\" or python_version >= \"3.12\") and implementation_name == \"pypy\""} +markers = {dev = "implementation_name == \"pypy\" or platform_python_implementation != \"PyPy\"", docs = "implementation_name == \"pypy\""} [package.dependencies] pycparser = "*" @@ -636,7 +626,6 @@ description = "Validate configuration and produce human readable error messages. optional = false python-versions = ">=3.8" groups = ["dev"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "cfgv-3.4.0-py2.py3-none-any.whl", hash = "sha256:b7265b1f29fd3316bfcd2b330d63d024f2bfd8bcb8b0272f8e19a504856c48f9"}, {file = "cfgv-3.4.0.tar.gz", hash = "sha256:e52591d4c5f5dead8e0f673fb16db7949d2cfb3f7da4582893288f0ded8fe560"}, @@ -743,7 +732,7 @@ files = [ {file = "charset_normalizer-3.4.1-py3-none-any.whl", hash = "sha256:d98b1668f06378c6dbefec3b92299716b931cd4e6061f3c875a71ced1780ab85"}, {file = "charset_normalizer-3.4.1.tar.gz", hash = "sha256:44251f18cd68a75b56585dd00dae26183e102cd5e0f9f1466e6df5da2ed64ea3"}, ] -markers = {main = "(python_version <= \"3.11\" or python_version >= \"3.12\") and (extra == \"sentence-transformers\" or extra == \"cohere\" or extra == \"vertexai\" or extra == \"voyageai\" or extra == \"ranx\") and (extra == \"sentence-transformers\" or extra == \"cohere\" or extra == \"vertexai\" or extra == \"voyageai\" or python_version >= \"3.10\")", dev = "python_version <= \"3.11\" or python_version >= \"3.12\"", docs = "python_version <= \"3.11\" or python_version >= \"3.12\""} +markers = {main = "(python_version < \"3.12\" or extra == \"ranx\" or extra == \"sentence-transformers\" or extra == \"cohere\" or extra == \"vertexai\" or extra == \"voyageai\") and (python_version >= \"3.10\" or extra == \"sentence-transformers\" or extra == \"cohere\" or extra == \"vertexai\" or extra == \"voyageai\") and (extra == \"sentence-transformers\" or extra == \"cohere\" or extra == \"vertexai\" or extra == \"voyageai\" or extra == \"ranx\")"} [[package]] name = "click" @@ -756,7 +745,7 @@ files = [ {file = "click-8.1.8-py3-none-any.whl", hash = "sha256:63c132bbbed01578a06712a2d1f497bb62d9c1c0d329b7903a866228027263b2"}, {file = "click-8.1.8.tar.gz", hash = "sha256:ed53c9d8990d83c2a27deae68e4ee337473f6330c040a31d4225c9574d16096a"}, ] -markers = {main = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"nltk\"", dev = "python_version <= \"3.11\" or python_version >= \"3.12\"", docs = "python_version <= \"3.11\" or python_version >= \"3.12\""} +markers = {main = "extra == \"nltk\""} [package.dependencies] colorama = {version = "*", markers = "platform_system == \"Windows\""} @@ -768,7 +757,7 @@ description = "" optional = true python-versions = "<4.0,>=3.9" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"cohere\"" +markers = "extra == \"cohere\"" files = [ {file = "cohere-5.13.12-py3-none-any.whl", hash = "sha256:2a043591a3e5280b47716a6b311e4c7f58e799364113a9cb81b50cd4f6c95f7e"}, {file = "cohere-5.13.12.tar.gz", hash = "sha256:97bb9ac107e580780b941acbabd3aa5e71960e6835398292c46aaa8a0a4cab88"}, @@ -796,7 +785,7 @@ files = [ {file = "colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"}, {file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"}, ] -markers = {main = "(python_version <= \"3.11\" or python_version >= \"3.12\") and (extra == \"nltk\" or extra == \"openai\" or extra == \"sentence-transformers\" or extra == \"cohere\" or extra == \"ranx\") and platform_system == \"Windows\" and (extra == \"nltk\" or extra == \"openai\" or extra == \"sentence-transformers\" or extra == \"cohere\" or python_version >= \"3.10\")", dev = "(platform_system == \"Windows\" or sys_platform == \"win32\") and (python_version <= \"3.11\" or python_version >= \"3.12\")", docs = "(platform_system == \"Windows\" or sys_platform == \"win32\") and (python_version <= \"3.11\" or python_version >= \"3.12\")"} +markers = {main = "(extra == \"nltk\" or extra == \"openai\" or extra == \"sentence-transformers\" or extra == \"cohere\" or python_version >= \"3.10\") and (extra == \"nltk\" or extra == \"openai\" or extra == \"sentence-transformers\" or extra == \"cohere\" or extra == \"ranx\") and platform_system == \"Windows\"", dev = "platform_system == \"Windows\" or sys_platform == \"win32\"", docs = "platform_system == \"Windows\" or sys_platform == \"win32\""} [[package]] name = "coloredlogs" @@ -805,7 +794,6 @@ description = "Colored terminal output for Python's logging module" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" groups = ["main"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "coloredlogs-15.0.1-py2.py3-none-any.whl", hash = "sha256:612ee75c546f53e92e70049c9dbfcc18c935a2b9a53b66085ce9ef6a6e5c0934"}, {file = "coloredlogs-15.0.1.tar.gz", hash = "sha256:7c991aa71a4577af2f82600d8f8f3a89f936baeaf9b50a9c197da014e5bf16b0"}, @@ -824,7 +812,6 @@ description = "Jupyter Python Comm implementation, for usage in ipykernel, xeus- optional = false python-versions = ">=3.8" groups = ["dev", "docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "comm-0.2.2-py3-none-any.whl", hash = "sha256:e6fb86cb70ff661ee8c9c14e7d36d6de3b4066f1441be4063df9c5009f0a64d3"}, {file = "comm-0.2.2.tar.gz", hash = "sha256:3fd7a84065306e07bea1773df6eb8282de51ba82f77c72f9c85716ab11fe980e"}, @@ -843,7 +830,7 @@ description = "Python library for calculating contours of 2D quadrilateral grids optional = true python-versions = ">=3.10" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"ranx\" and python_version >= \"3.10\"" +markers = "python_version >= \"3.10\" and extra == \"ranx\"" files = [ {file = "contourpy-1.3.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:a045f341a77b77e1c5de31e74e966537bba9f3c4099b35bf4c2e3939dd54cdab"}, {file = "contourpy-1.3.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:500360b77259914f7805af7462e41f9cb7ca92ad38e9f94d6c8641b089338124"}, @@ -918,7 +905,6 @@ description = "Code coverage measurement for Python" optional = false python-versions = ">=3.9" groups = ["dev"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "coverage-7.6.12-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:704c8c8c6ce6569286ae9622e534b4f5b9759b6f2cd643f1c1a61f666d534fe8"}, {file = "coverage-7.6.12-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:ad7525bf0241e5502168ae9c643a2f6c219fa0a283001cee4cf23a9b7da75879"}, @@ -986,7 +972,7 @@ files = [ ] [package.extras] -toml = ["tomli"] +toml = ["tomli ; python_full_version <= \"3.11.0a6\""] [[package]] name = "cramjam" @@ -995,7 +981,7 @@ description = "Thin Python bindings to de/compression algorithms in Rust" optional = true python-versions = ">=3.8" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"ranx\" and python_version >= \"3.10\"" +markers = "python_version >= \"3.10\" and extra == \"ranx\"" files = [ {file = "cramjam-2.9.1-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:8e82464d1e00fbbb12958999b8471ba5e9f3d9711954505a0a7b378762332e6f"}, {file = "cramjam-2.9.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:6d2df8a6511cc08ef1fccd2e0c65e2ebc9f57574ec8376052a76851af5398810"}, @@ -1099,7 +1085,6 @@ description = "cryptography is a package which provides cryptographic recipes an optional = false python-versions = "!=3.9.0,!=3.9.1,>=3.7" groups = ["dev"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "cryptography-44.0.1-cp37-abi3-macosx_10_9_universal2.whl", hash = "sha256:bf688f615c29bfe9dfc44312ca470989279f0e94bb9f631f85e3459af8efc009"}, {file = "cryptography-44.0.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:dd7c7e2d71d908dc0f8d2027e1604102140d84b155e658c20e8ad1304317691f"}, @@ -1138,10 +1123,10 @@ files = [ cffi = {version = ">=1.12", markers = "platform_python_implementation != \"PyPy\""} [package.extras] -docs = ["sphinx (>=5.3.0)", "sphinx-rtd-theme (>=3.0.0)"] +docs = ["sphinx (>=5.3.0)", "sphinx-rtd-theme (>=3.0.0) ; python_version >= \"3.8\""] docstest = ["pyenchant (>=3)", "readme-renderer (>=30.0)", "sphinxcontrib-spelling (>=7.3.1)"] -nox = ["nox (>=2024.4.15)", "nox[uv] (>=2024.3.2)"] -pep8test = ["check-sdist", "click (>=8.0.1)", "mypy (>=1.4)", "ruff (>=0.3.6)"] +nox = ["nox (>=2024.4.15)", "nox[uv] (>=2024.3.2) ; python_version >= \"3.8\""] +pep8test = ["check-sdist ; python_version >= \"3.8\"", "click (>=8.0.1)", "mypy (>=1.4)", "ruff (>=0.3.6)"] sdist = ["build (>=1.0.0)"] ssh = ["bcrypt (>=3.1.5)"] test = ["certifi (>=2024)", "cryptography-vectors (==44.0.1)", "pretend (>=0.7)", "pytest (>=7.4.0)", "pytest-benchmark (>=4.0)", "pytest-cov (>=2.10.1)", "pytest-xdist (>=3.5.0)"] @@ -1154,7 +1139,7 @@ description = "Composable style cycles" optional = true python-versions = ">=3.8" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"ranx\" and python_version >= \"3.10\"" +markers = "python_version >= \"3.10\" and extra == \"ranx\"" files = [ {file = "cycler-0.12.1-py3-none-any.whl", hash = "sha256:85cef7cff222d8644161529808465972e51340599459b8ac3ccbac5a854e0d30"}, {file = "cycler-0.12.1.tar.gz", hash = "sha256:88bb128f02ba341da8ef447245a9e138fae777f6a23943da4540077d3601eb1c"}, @@ -1171,7 +1156,6 @@ description = "An implementation of the Debug Adapter Protocol for Python" optional = false python-versions = ">=3.8" groups = ["dev", "docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "debugpy-1.8.12-cp310-cp310-macosx_14_0_x86_64.whl", hash = "sha256:a2ba7ffe58efeae5b8fad1165357edfe01464f9aef25e814e891ec690e7dd82a"}, {file = "debugpy-1.8.12-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:cbbd4149c4fc5e7d508ece083e78c17442ee13b0e69bfa6bd63003e486770f45"}, @@ -1208,7 +1192,6 @@ description = "Decorators for Humans" optional = false python-versions = ">=3.8" groups = ["dev", "docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "decorator-5.2.1-py3-none-any.whl", hash = "sha256:d316bb415a2d9e2d2b3abcc4084c6502fc09240e292cd76a76afc106a1c8e04a"}, {file = "decorator-5.2.1.tar.gz", hash = "sha256:65f266143752f734b0a7cc83c46f4618af75b8c5911b00ccb61d0ac9b6da0360"}, @@ -1221,7 +1204,6 @@ description = "XML bomb protection for Python stdlib modules" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" groups = ["docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "defusedxml-0.7.1-py2.py3-none-any.whl", hash = "sha256:a352e7e428770286cc899e2542b6cdaedb2b4953ff269a210103ec58f6198a61"}, {file = "defusedxml-0.7.1.tar.gz", hash = "sha256:1bb3032db185915b62d7c6209c5a8792be6a32ab2fedacc84e01b52c51aa3e69"}, @@ -1234,7 +1216,6 @@ description = "serialize all of Python" optional = false python-versions = ">=3.8" groups = ["dev"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "dill-0.3.9-py3-none-any.whl", hash = "sha256:468dff3b89520b474c0397703366b7b95eebe6303f108adf9b19da1f702be87a"}, {file = "dill-0.3.9.tar.gz", hash = "sha256:81aa267dddf68cbfe8029c42ca9ec6a4ab3b22371d1c450abc54422577b4512c"}, @@ -1251,7 +1232,6 @@ description = "Distribution utilities" optional = false python-versions = "*" groups = ["dev"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "distlib-0.3.9-py2.py3-none-any.whl", hash = "sha256:47f8c22fd27c27e25a65601af709b38e4f0a45ea4fc2e710f65755fa8caaaf87"}, {file = "distlib-0.3.9.tar.gz", hash = "sha256:a60f20dea646b8a33f3e7772f74dc0b2d0772d2837ee1342a00645c81edf9403"}, @@ -1264,7 +1244,7 @@ description = "Distro - an OS platform information API" optional = true python-versions = ">=3.6" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"openai\"" +markers = "extra == \"openai\"" files = [ {file = "distro-1.9.0-py3-none-any.whl", hash = "sha256:7bffd925d65168f85027d8da9af6bddab658135b840670a223589bc0c8ef02b2"}, {file = "distro-1.9.0.tar.gz", hash = "sha256:2fa77c6fd8940f116ee1d6b94a2f90b13b5ea8d019b98bc8bafdcabcdd9bdbed"}, @@ -1277,7 +1257,6 @@ description = "A Python library for the Docker Engine API." optional = false python-versions = ">=3.8" groups = ["dev"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "docker-7.1.0-py3-none-any.whl", hash = "sha256:c96b93b7f0a746f9e77d325bcfb87422a3d8bd4f03136ae8a85b37f1898d5fc0"}, {file = "docker-7.1.0.tar.gz", hash = "sha256:ad8c70e6e3f8926cb8a92619b832b4ea5299e2831c14284663184e200546fa6c"}, @@ -1301,7 +1280,7 @@ description = "Parse Python docstrings in reST, Google and Numpydoc format" optional = true python-versions = ">=3.6,<4.0" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"vertexai\"" +markers = "extra == \"vertexai\"" files = [ {file = "docstring_parser-0.16-py3-none-any.whl", hash = "sha256:bf0a1387354d3691d102edef7ec124f219ef639982d096e26e3b60aeffa90637"}, {file = "docstring_parser-0.16.tar.gz", hash = "sha256:538beabd0af1e2db0146b6bd3caa526c35a34d61af9fd2887f3a8a27a739aa6e"}, @@ -1314,7 +1293,6 @@ description = "Docutils -- Python Documentation Utilities" optional = false python-versions = ">=3.9" groups = ["docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "docutils-0.21.2-py3-none-any.whl", hash = "sha256:dafca5b9e384f0e419294eb4d2ff9fa826435bf15f15b7bd45723e8ad76811b2"}, {file = "docutils-0.21.2.tar.gz", hash = "sha256:3a6b18732edf182daa3cd12775bbb338cf5691468f91eeeb109deff6ebfa986f"}, @@ -1324,10 +1302,9 @@ files = [ name = "eval-type-backport" version = "0.2.2" description = "Like `typing._eval_type`, but lets older Python versions use newer typing features." -optional = true +optional = false python-versions = ">=3.8" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"mistralai\"" files = [ {file = "eval_type_backport-0.2.2-py3-none-any.whl", hash = "sha256:cb6ad7c393517f476f96d456d0412ea80f0a8cf96f6892834cd9340149111b0a"}, {file = "eval_type_backport-0.2.2.tar.gz", hash = "sha256:f0576b4cf01ebb5bd358d02314d31846af5e07678387486e2c798af0e7d849c1"}, @@ -1343,11 +1320,11 @@ description = "Backport of PEP 654 (exception groups)" optional = false python-versions = ">=3.7" groups = ["main", "dev", "docs"] +markers = "python_version < \"3.11\"" files = [ {file = "exceptiongroup-1.2.2-py3-none-any.whl", hash = "sha256:3111b9d131c238bec2f8f516e123e14ba243563fb135d3fe885990585aa7795b"}, {file = "exceptiongroup-1.2.2.tar.gz", hash = "sha256:47c2edf7c6738fafb49fd34290706d1a1a2f4d1c6df275526b62cbb4aa5393cc"}, ] -markers = {main = "(extra == \"openai\" or extra == \"cohere\" or extra == \"mistralai\") and python_version < \"3.11\"", dev = "python_version < \"3.11\"", docs = "python_version < \"3.11\""} [package.extras] test = ["pytest (>=6)"] @@ -1359,7 +1336,6 @@ description = "execnet: rapid multi-Python deployment" optional = false python-versions = ">=3.8" groups = ["dev"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "execnet-2.1.1-py3-none-any.whl", hash = "sha256:26dee51f1b80cebd6d0ca8e74dd8745419761d3bef34163928cbebbdc4749fdc"}, {file = "execnet-2.1.1.tar.gz", hash = "sha256:5189b52c6121c24feae288166ab41b32549c7e2348652736540b9e6e7d4e72e3"}, @@ -1375,14 +1351,13 @@ description = "Get the currently executing AST node of a frame, and other inform optional = false python-versions = ">=3.8" groups = ["dev", "docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "executing-2.2.0-py2.py3-none-any.whl", hash = "sha256:11387150cad388d62750327a53d3339fad4888b39a6fe233c3afbb54ecffd3aa"}, {file = "executing-2.2.0.tar.gz", hash = "sha256:5d108c028108fe2551d1a7b2e8b713341e2cb4fc0aa7dcf966fa4327a5226755"}, ] [package.extras] -tests = ["asttokens (>=2.1.0)", "coverage", "coverage-enable-subprocess", "ipython", "littleutils", "pytest", "rich"] +tests = ["asttokens (>=2.1.0)", "coverage", "coverage-enable-subprocess", "ipython", "littleutils", "pytest", "rich ; python_version >= \"3.11\""] [[package]] name = "fastavro" @@ -1391,7 +1366,7 @@ description = "Fast read/write of AVRO files" optional = true python-versions = ">=3.9" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"cohere\"" +markers = "extra == \"cohere\"" files = [ {file = "fastavro-1.10.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:1a9fe0672d2caf0fe54e3be659b13de3cad25a267f2073d6f4b9f8862acc31eb"}, {file = "fastavro-1.10.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:86dd0410770e0c99363788f0584523709d85e57bb457372ec5c285a482c17fe6"}, @@ -1439,7 +1414,6 @@ description = "Fastest Python implementation of JSON schema" optional = false python-versions = "*" groups = ["dev", "docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "fastjsonschema-2.21.1-py3-none-any.whl", hash = "sha256:c9e5b7e908310918cf494a434eeb31384dd84a98b57a30bcb1f535015b554667"}, {file = "fastjsonschema-2.21.1.tar.gz", hash = "sha256:794d4f0a58f848961ba16af7b9c85a3e88cd360df008c59aac6fc5ae9323b5d4"}, @@ -1455,7 +1429,7 @@ description = "Python support for Parquet file format" optional = true python-versions = ">=3.9" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"ranx\" and python_version >= \"3.10\"" +markers = "python_version >= \"3.10\" and extra == \"ranx\"" files = [ {file = "fastparquet-2024.11.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:60ccf587410f0979105e17036df61bb60e1c2b81880dc91895cdb4ee65b71e7f"}, {file = "fastparquet-2024.11.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:a5ad5fc14b0567e700bea3cd528a0bd45a6f9371370b49de8889fb3d10a6574a"}, @@ -1521,12 +1495,12 @@ files = [ {file = "filelock-3.17.0-py3-none-any.whl", hash = "sha256:533dc2f7ba78dc2f0f531fc6c4940addf7b70a481e269a5a3b93be94ffbe8338"}, {file = "filelock-3.17.0.tar.gz", hash = "sha256:ee4e77401ef576ebb38cd7f13b9b28893194acc20a8e68e18730ba9c0e54660e"}, ] -markers = {main = "(extra == \"sentence-transformers\" or extra == \"cohere\") and (python_version <= \"3.11\" or python_version >= \"3.12\")", dev = "python_version <= \"3.11\" or python_version >= \"3.12\""} +markers = {main = "extra == \"sentence-transformers\" or extra == \"cohere\""} [package.extras] docs = ["furo (>=2024.8.6)", "sphinx (>=8.1.3)", "sphinx-autodoc-typehints (>=3)"] testing = ["covdefaults (>=2.3)", "coverage (>=7.6.10)", "diff-cover (>=9.2.1)", "pytest (>=8.3.4)", "pytest-asyncio (>=0.25.2)", "pytest-cov (>=6)", "pytest-mock (>=3.14)", "pytest-timeout (>=2.3.1)", "virtualenv (>=20.28.1)"] -typing = ["typing-extensions (>=4.12.2)"] +typing = ["typing-extensions (>=4.12.2) ; python_version < \"3.11\""] [[package]] name = "fonttools" @@ -1535,7 +1509,7 @@ description = "Tools to manipulate font files" optional = true python-versions = ">=3.8" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"ranx\" and python_version >= \"3.10\"" +markers = "python_version >= \"3.10\" and extra == \"ranx\"" files = [ {file = "fonttools-4.56.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:331954d002dbf5e704c7f3756028e21db07097c19722569983ba4d74df014000"}, {file = "fonttools-4.56.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:8d1613abd5af2f93c05867b3a3759a56e8bf97eb79b1da76b2bc10892f96ff16"}, @@ -1590,18 +1564,18 @@ files = [ ] [package.extras] -all = ["brotli (>=1.0.1)", "brotlicffi (>=0.8.0)", "fs (>=2.2.0,<3)", "lxml (>=4.0)", "lz4 (>=1.7.4.2)", "matplotlib", "munkres", "pycairo", "scipy", "skia-pathops (>=0.5.0)", "sympy", "uharfbuzz (>=0.23.0)", "unicodedata2 (>=15.1.0)", "xattr", "zopfli (>=0.1.4)"] +all = ["brotli (>=1.0.1) ; platform_python_implementation == \"CPython\"", "brotlicffi (>=0.8.0) ; platform_python_implementation != \"CPython\"", "fs (>=2.2.0,<3)", "lxml (>=4.0)", "lz4 (>=1.7.4.2)", "matplotlib", "munkres ; platform_python_implementation == \"PyPy\"", "pycairo", "scipy ; platform_python_implementation != \"PyPy\"", "skia-pathops (>=0.5.0)", "sympy", "uharfbuzz (>=0.23.0)", "unicodedata2 (>=15.1.0) ; python_version <= \"3.12\"", "xattr ; sys_platform == \"darwin\"", "zopfli (>=0.1.4)"] graphite = ["lz4 (>=1.7.4.2)"] -interpolatable = ["munkres", "pycairo", "scipy"] +interpolatable = ["munkres ; platform_python_implementation == \"PyPy\"", "pycairo", "scipy ; platform_python_implementation != \"PyPy\""] lxml = ["lxml (>=4.0)"] pathops = ["skia-pathops (>=0.5.0)"] plot = ["matplotlib"] repacker = ["uharfbuzz (>=0.23.0)"] symfont = ["sympy"] -type1 = ["xattr"] +type1 = ["xattr ; sys_platform == \"darwin\""] ufo = ["fs (>=2.2.0,<3)"] -unicode = ["unicodedata2 (>=15.1.0)"] -woff = ["brotli (>=1.0.1)", "brotlicffi (>=0.8.0)", "zopfli (>=0.1.4)"] +unicode = ["unicodedata2 (>=15.1.0) ; python_version <= \"3.12\""] +woff = ["brotli (>=1.0.1) ; platform_python_implementation == \"CPython\"", "brotlicffi (>=0.8.0) ; platform_python_implementation != \"CPython\"", "zopfli (>=0.1.4)"] [[package]] name = "frozenlist" @@ -1610,7 +1584,7 @@ description = "A list-like structure which implements collections.abc.MutableSeq optional = true python-versions = ">=3.8" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"voyageai\"" +markers = "extra == \"voyageai\"" files = [ {file = "frozenlist-1.5.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:5b6a66c18b5b9dd261ca98dffcb826a525334b2f29e7caa54e182255c5f6a65a"}, {file = "frozenlist-1.5.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:d1b3eb7b05ea246510b43a7e53ed1653e55c2121019a97e60cad7efb881a97bb"}, @@ -1713,7 +1687,7 @@ description = "File-system specification" optional = true python-versions = ">=3.8" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and (extra == \"sentence-transformers\" or extra == \"cohere\" or extra == \"ranx\") and (extra == \"sentence-transformers\" or extra == \"cohere\" or python_version >= \"3.10\")" +markers = "(python_version < \"3.12\" or extra == \"ranx\" or extra == \"sentence-transformers\" or extra == \"cohere\") and (python_version >= \"3.10\" or extra == \"sentence-transformers\" or extra == \"cohere\") and (extra == \"sentence-transformers\" or extra == \"cohere\" or extra == \"ranx\")" files = [ {file = "fsspec-2025.2.0-py3-none-any.whl", hash = "sha256:9de2ad9ce1f85e1931858535bc882543171d197001a0a5eb2ddc04f1781ab95b"}, {file = "fsspec-2025.2.0.tar.gz", hash = "sha256:1c24b16eaa0a1798afa0337aa0db9b256718ab2a89c425371f5628d22c3b6afd"}, @@ -1754,7 +1728,7 @@ description = "Google API client core library" optional = true python-versions = ">=3.7" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"vertexai\"" +markers = "extra == \"vertexai\"" files = [ {file = "google_api_core-2.24.1-py3-none-any.whl", hash = "sha256:bc78d608f5a5bf853b80bd70a795f703294de656c096c0968320830a4bc280f1"}, {file = "google_api_core-2.24.1.tar.gz", hash = "sha256:f8b36f5456ab0dd99a1b693a40a31d1e7757beea380ad1b38faaf8941eae9d8a"}, @@ -1764,15 +1738,15 @@ files = [ google-auth = ">=2.14.1,<3.0.dev0" googleapis-common-protos = ">=1.56.2,<2.0.dev0" grpcio = [ - {version = ">=1.33.2,<2.0dev", optional = true, markers = "python_version < \"3.11\" and extra == \"grpc\""}, + {version = ">=1.33.2,<2.0dev", optional = true, markers = "extra == \"grpc\""}, {version = ">=1.49.1,<2.0dev", optional = true, markers = "python_version >= \"3.11\" and extra == \"grpc\""}, ] grpcio-status = [ - {version = ">=1.33.2,<2.0.dev0", optional = true, markers = "python_version < \"3.11\" and extra == \"grpc\""}, + {version = ">=1.33.2,<2.0.dev0", optional = true, markers = "extra == \"grpc\""}, {version = ">=1.49.1,<2.0.dev0", optional = true, markers = "python_version >= \"3.11\" and extra == \"grpc\""}, ] proto-plus = [ - {version = ">=1.22.3,<2.0.0dev", markers = "python_version < \"3.13\""}, + {version = ">=1.22.3,<2.0.0dev"}, {version = ">=1.25.0,<2.0.0dev", markers = "python_version >= \"3.13\""}, ] protobuf = ">=3.19.5,<3.20.0 || >3.20.0,<3.20.1 || >3.20.1,<4.21.0 || >4.21.0,<4.21.1 || >4.21.1,<4.21.2 || >4.21.2,<4.21.3 || >4.21.3,<4.21.4 || >4.21.4,<4.21.5 || >4.21.5,<6.0.0.dev0" @@ -1780,7 +1754,7 @@ requests = ">=2.18.0,<3.0.0.dev0" [package.extras] async-rest = ["google-auth[aiohttp] (>=2.35.0,<3.0.dev0)"] -grpc = ["grpcio (>=1.33.2,<2.0dev)", "grpcio (>=1.49.1,<2.0dev)", "grpcio-status (>=1.33.2,<2.0.dev0)", "grpcio-status (>=1.49.1,<2.0.dev0)"] +grpc = ["grpcio (>=1.33.2,<2.0dev)", "grpcio (>=1.49.1,<2.0dev) ; python_version >= \"3.11\"", "grpcio-status (>=1.33.2,<2.0.dev0)", "grpcio-status (>=1.49.1,<2.0.dev0) ; python_version >= \"3.11\""] grpcgcp = ["grpcio-gcp (>=0.2.2,<1.0.dev0)"] grpcio-gcp = ["grpcio-gcp (>=0.2.2,<1.0.dev0)"] @@ -1791,7 +1765,7 @@ description = "Google Authentication Library" optional = true python-versions = ">=3.7" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"vertexai\"" +markers = "extra == \"vertexai\"" files = [ {file = "google_auth-2.38.0-py2.py3-none-any.whl", hash = "sha256:e7dae6694313f434a2727bf2906f27ad259bae090d7aa896590d86feec3d9d4a"}, {file = "google_auth-2.38.0.tar.gz", hash = "sha256:8285113607d3b80a3f1543b75962447ba8a09fe85783432a784fdeef6ac094c4"}, @@ -1817,7 +1791,7 @@ description = "Vertex AI API client library" optional = true python-versions = ">=3.8" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"vertexai\"" +markers = "extra == \"vertexai\"" files = [ {file = "google_cloud_aiplatform-1.82.0-py2.py3-none-any.whl", hash = "sha256:13368a961b2bfa8f46ccd10371bb19bd5f946d8f29c411726061ed1a140ce890"}, {file = "google_cloud_aiplatform-1.82.0.tar.gz", hash = "sha256:b7ea7379249cc1821aa46300a16e4b15aa64aa22665e2536b2bcb7e473d7438e"}, @@ -1843,10 +1817,10 @@ ag2-testing = ["absl-py", "ag2[gemini]", "cloudpickle (>=3.0,<4.0)", "google-clo agent-engines = ["cloudpickle (>=3.0,<4.0)", "google-cloud-logging (<4)", "google-cloud-trace (<2)", "packaging (>=24.0)", "pydantic (>=2.10,<3)", "typing-extensions"] autologging = ["mlflow (>=1.27.0,<=2.16.0)"] cloud-profiler = ["tensorboard-plugin-profile (>=2.4.0,<2.18.0)", "tensorflow (>=2.4.0,<3.0.0dev)", "werkzeug (>=2.0.0,<2.1.0dev)"] -datasets = ["pyarrow (>=10.0.1)", "pyarrow (>=14.0.0)", "pyarrow (>=3.0.0,<8.0dev)"] +datasets = ["pyarrow (>=10.0.1) ; python_version == \"3.11\"", "pyarrow (>=14.0.0) ; python_version >= \"3.12\"", "pyarrow (>=3.0.0,<8.0dev) ; python_version < \"3.11\""] endpoint = ["requests (>=2.28.1)"] -evaluation = ["pandas (>=1.0.0)", "scikit-learn", "scikit-learn (<1.6.0)", "tqdm (>=4.23.0)"] -full = ["docker (>=5.0.3)", "explainable-ai-sdk (>=1.0.0)", "fastapi (>=0.71.0,<=0.114.0)", "google-cloud-bigquery", "google-cloud-bigquery-storage", "google-vizier (>=0.1.6)", "httpx (>=0.23.0,<0.25.0)", "immutabledict", "lit-nlp (==0.4.0)", "mlflow (>=1.27.0,<=2.16.0)", "numpy (>=1.15.0)", "pandas (>=1.0.0)", "pyarrow (>=10.0.1)", "pyarrow (>=14.0.0)", "pyarrow (>=3.0.0,<8.0dev)", "pyarrow (>=6.0.1)", "pyyaml (>=5.3.1,<7)", "ray[default] (>=2.4,<2.5.dev0 || >2.9.0,!=2.9.1,!=2.9.2,<2.10.dev0 || >=2.33.dev0,<=2.33.0)", "ray[default] (>=2.5,<=2.33.0)", "requests (>=2.28.1)", "scikit-learn", "scikit-learn (<1.6.0)", "setuptools (<70.0.0)", "starlette (>=0.17.1)", "tensorboard-plugin-profile (>=2.4.0,<2.18.0)", "tensorflow (>=2.3.0,<3.0.0dev)", "tensorflow (>=2.3.0,<3.0.0dev)", "tensorflow (>=2.4.0,<3.0.0dev)", "tqdm (>=4.23.0)", "urllib3 (>=1.21.1,<1.27)", "uvicorn[standard] (>=0.16.0)", "werkzeug (>=2.0.0,<2.1.0dev)"] +evaluation = ["pandas (>=1.0.0)", "scikit-learn (<1.6.0) ; python_version <= \"3.10\"", "scikit-learn ; python_version > \"3.10\"", "tqdm (>=4.23.0)"] +full = ["docker (>=5.0.3)", "explainable-ai-sdk (>=1.0.0)", "fastapi (>=0.71.0,<=0.114.0)", "google-cloud-bigquery", "google-cloud-bigquery-storage", "google-vizier (>=0.1.6)", "httpx (>=0.23.0,<0.25.0)", "immutabledict", "lit-nlp (==0.4.0)", "mlflow (>=1.27.0,<=2.16.0)", "numpy (>=1.15.0)", "pandas (>=1.0.0)", "pyarrow (>=10.0.1) ; python_version == \"3.11\"", "pyarrow (>=14.0.0) ; python_version >= \"3.12\"", "pyarrow (>=3.0.0,<8.0dev) ; python_version < \"3.11\"", "pyarrow (>=6.0.1)", "pyyaml (>=5.3.1,<7)", "ray[default] (>=2.4,<2.5.dev0 || >2.9.0,!=2.9.1,!=2.9.2,<2.10.dev0 || >=2.33.dev0,<=2.33.0) ; python_version < \"3.11\"", "ray[default] (>=2.5,<=2.33.0) ; python_version == \"3.11\"", "requests (>=2.28.1)", "scikit-learn (<1.6.0) ; python_version <= \"3.10\"", "scikit-learn ; python_version > \"3.10\"", "setuptools (<70.0.0)", "starlette (>=0.17.1)", "tensorboard-plugin-profile (>=2.4.0,<2.18.0)", "tensorflow (>=2.3.0,<3.0.0dev)", "tensorflow (>=2.3.0,<3.0.0dev) ; python_version <= \"3.11\"", "tensorflow (>=2.4.0,<3.0.0dev)", "tqdm (>=4.23.0)", "urllib3 (>=1.21.1,<1.27)", "uvicorn[standard] (>=0.16.0)", "werkzeug (>=2.0.0,<2.1.0dev)"] langchain = ["langchain (>=0.3,<0.4)", "langchain-core (>=0.3,<0.4)", "langchain-google-vertexai (>=2,<3)", "langgraph (>=0.2.45,<0.3)", "openinference-instrumentation-langchain (>=0.1.19,<0.2)"] langchain-testing = ["absl-py", "cloudpickle (>=3.0,<4.0)", "google-cloud-trace (<2)", "langchain (>=0.3,<0.4)", "langchain-core (>=0.3,<0.4)", "langchain-google-vertexai (>=2,<3)", "langgraph (>=0.2.45,<0.3)", "openinference-instrumentation-langchain (>=0.1.19,<0.2)", "opentelemetry-exporter-gcp-trace (<2)", "opentelemetry-sdk (<2)", "pydantic (>=2.6.3,<3)", "pytest-xdist", "typing-extensions"] lit = ["explainable-ai-sdk (>=1.0.0)", "lit-nlp (==0.4.0)", "pandas (>=1.0.0)", "tensorflow (>=2.3.0,<3.0.0dev)"] @@ -1854,11 +1828,11 @@ metadata = ["numpy (>=1.15.0)", "pandas (>=1.0.0)"] pipelines = ["pyyaml (>=5.3.1,<7)"] prediction = ["docker (>=5.0.3)", "fastapi (>=0.71.0,<=0.114.0)", "httpx (>=0.23.0,<0.25.0)", "starlette (>=0.17.1)", "uvicorn[standard] (>=0.16.0)"] private-endpoints = ["requests (>=2.28.1)", "urllib3 (>=1.21.1,<1.27)"] -ray = ["google-cloud-bigquery", "google-cloud-bigquery-storage", "immutabledict", "pandas (>=1.0.0)", "pyarrow (>=6.0.1)", "ray[default] (>=2.4,<2.5.dev0 || >2.9.0,!=2.9.1,!=2.9.2,<2.10.dev0 || >=2.33.dev0,<=2.33.0)", "ray[default] (>=2.5,<=2.33.0)", "setuptools (<70.0.0)"] -ray-testing = ["google-cloud-bigquery", "google-cloud-bigquery-storage", "immutabledict", "pandas (>=1.0.0)", "pyarrow (>=6.0.1)", "pytest-xdist", "ray[default] (>=2.4,<2.5.dev0 || >2.9.0,!=2.9.1,!=2.9.2,<2.10.dev0 || >=2.33.dev0,<=2.33.0)", "ray[default] (>=2.5,<=2.33.0)", "ray[train]", "scikit-learn (<1.6.0)", "setuptools (<70.0.0)", "tensorflow", "torch (>=2.0.0,<2.1.0)", "xgboost", "xgboost-ray"] +ray = ["google-cloud-bigquery", "google-cloud-bigquery-storage", "immutabledict", "pandas (>=1.0.0)", "pyarrow (>=6.0.1)", "ray[default] (>=2.4,<2.5.dev0 || >2.9.0,!=2.9.1,!=2.9.2,<2.10.dev0 || >=2.33.dev0,<=2.33.0) ; python_version < \"3.11\"", "ray[default] (>=2.5,<=2.33.0) ; python_version == \"3.11\"", "setuptools (<70.0.0)"] +ray-testing = ["google-cloud-bigquery", "google-cloud-bigquery-storage", "immutabledict", "pandas (>=1.0.0)", "pyarrow (>=6.0.1)", "pytest-xdist", "ray[default] (>=2.4,<2.5.dev0 || >2.9.0,!=2.9.1,!=2.9.2,<2.10.dev0 || >=2.33.dev0,<=2.33.0) ; python_version < \"3.11\"", "ray[default] (>=2.5,<=2.33.0) ; python_version == \"3.11\"", "ray[train]", "scikit-learn (<1.6.0)", "setuptools (<70.0.0)", "tensorflow", "torch (>=2.0.0,<2.1.0)", "xgboost", "xgboost-ray"] reasoningengine = ["cloudpickle (>=3.0,<4.0)", "google-cloud-trace (<2)", "opentelemetry-exporter-gcp-trace (<2)", "opentelemetry-sdk (<2)", "pydantic (>=2.6.3,<3)", "typing-extensions"] -tensorboard = ["tensorboard-plugin-profile (>=2.4.0,<2.18.0)", "tensorflow (>=2.3.0,<3.0.0dev)", "tensorflow (>=2.4.0,<3.0.0dev)", "werkzeug (>=2.0.0,<2.1.0dev)"] -testing = ["aiohttp", "bigframes", "docker (>=5.0.3)", "explainable-ai-sdk (>=1.0.0)", "fastapi (>=0.71.0,<=0.114.0)", "google-api-core (>=2.11,<3.0.0)", "google-cloud-bigquery", "google-cloud-bigquery-storage", "google-vizier (>=0.1.6)", "grpcio-testing", "httpx (>=0.23.0,<0.25.0)", "immutabledict", "ipython", "kfp (>=2.6.0,<3.0.0)", "lit-nlp (==0.4.0)", "mlflow (>=1.27.0,<=2.16.0)", "nltk", "numpy (>=1.15.0)", "pandas (>=1.0.0)", "pyarrow (>=10.0.1)", "pyarrow (>=14.0.0)", "pyarrow (>=3.0.0,<8.0dev)", "pyarrow (>=6.0.1)", "pytest-asyncio", "pytest-xdist", "pyyaml (>=5.3.1,<7)", "ray[default] (>=2.4,<2.5.dev0 || >2.9.0,!=2.9.1,!=2.9.2,<2.10.dev0 || >=2.33.dev0,<=2.33.0)", "ray[default] (>=2.5,<=2.33.0)", "requests (>=2.28.1)", "requests-toolbelt (<1.0.0)", "scikit-learn", "scikit-learn (<1.6.0)", "sentencepiece (>=0.2.0)", "setuptools (<70.0.0)", "starlette (>=0.17.1)", "tensorboard-plugin-profile (>=2.4.0,<2.18.0)", "tensorflow (==2.13.0)", "tensorflow (==2.16.1)", "tensorflow (>=2.3.0,<3.0.0dev)", "tensorflow (>=2.3.0,<3.0.0dev)", "tensorflow (>=2.4.0,<3.0.0dev)", "torch (>=2.0.0,<2.1.0)", "torch (>=2.2.0)", "tqdm (>=4.23.0)", "urllib3 (>=1.21.1,<1.27)", "uvicorn[standard] (>=0.16.0)", "werkzeug (>=2.0.0,<2.1.0dev)", "xgboost"] +tensorboard = ["tensorboard-plugin-profile (>=2.4.0,<2.18.0)", "tensorflow (>=2.3.0,<3.0.0dev) ; python_version <= \"3.11\"", "tensorflow (>=2.4.0,<3.0.0dev)", "werkzeug (>=2.0.0,<2.1.0dev)"] +testing = ["aiohttp", "bigframes ; python_version >= \"3.10\"", "docker (>=5.0.3)", "explainable-ai-sdk (>=1.0.0)", "fastapi (>=0.71.0,<=0.114.0)", "google-api-core (>=2.11,<3.0.0)", "google-cloud-bigquery", "google-cloud-bigquery-storage", "google-vizier (>=0.1.6)", "grpcio-testing", "httpx (>=0.23.0,<0.25.0)", "immutabledict", "ipython", "kfp (>=2.6.0,<3.0.0)", "lit-nlp (==0.4.0)", "mlflow (>=1.27.0,<=2.16.0)", "nltk", "numpy (>=1.15.0)", "pandas (>=1.0.0)", "pyarrow (>=10.0.1) ; python_version == \"3.11\"", "pyarrow (>=14.0.0) ; python_version >= \"3.12\"", "pyarrow (>=3.0.0,<8.0dev) ; python_version < \"3.11\"", "pyarrow (>=6.0.1)", "pytest-asyncio", "pytest-xdist", "pyyaml (>=5.3.1,<7)", "ray[default] (>=2.4,<2.5.dev0 || >2.9.0,!=2.9.1,!=2.9.2,<2.10.dev0 || >=2.33.dev0,<=2.33.0) ; python_version < \"3.11\"", "ray[default] (>=2.5,<=2.33.0) ; python_version == \"3.11\"", "requests (>=2.28.1)", "requests-toolbelt (<1.0.0)", "scikit-learn (<1.6.0) ; python_version <= \"3.10\"", "scikit-learn ; python_version > \"3.10\"", "sentencepiece (>=0.2.0)", "setuptools (<70.0.0)", "starlette (>=0.17.1)", "tensorboard-plugin-profile (>=2.4.0,<2.18.0)", "tensorflow (==2.13.0) ; python_version <= \"3.11\"", "tensorflow (==2.16.1) ; python_version > \"3.11\"", "tensorflow (>=2.3.0,<3.0.0dev)", "tensorflow (>=2.3.0,<3.0.0dev) ; python_version <= \"3.11\"", "tensorflow (>=2.4.0,<3.0.0dev)", "torch (>=2.0.0,<2.1.0) ; python_version <= \"3.11\"", "torch (>=2.2.0) ; python_version > \"3.11\"", "tqdm (>=4.23.0)", "urllib3 (>=1.21.1,<1.27)", "uvicorn[standard] (>=0.16.0)", "werkzeug (>=2.0.0,<2.1.0dev)", "xgboost"] tokenization = ["sentencepiece (>=0.2.0)"] vizier = ["google-vizier (>=0.1.6)"] xai = ["tensorflow (>=2.3.0,<3.0.0dev)"] @@ -1870,7 +1844,7 @@ description = "Google BigQuery API client library" optional = true python-versions = ">=3.7" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"vertexai\"" +markers = "extra == \"vertexai\"" files = [ {file = "google_cloud_bigquery-3.30.0-py2.py3-none-any.whl", hash = "sha256:f4d28d846a727f20569c9b2d2f4fa703242daadcb2ec4240905aa485ba461877"}, {file = "google_cloud_bigquery-3.30.0.tar.gz", hash = "sha256:7e27fbafc8ed33cc200fe05af12ecd74d279fe3da6692585a3cef7aee90575b6"}, @@ -1888,12 +1862,12 @@ requests = ">=2.21.0,<3.0.0dev" [package.extras] all = ["google-cloud-bigquery[bigquery-v2,bqstorage,geopandas,ipython,ipywidgets,opentelemetry,pandas,tqdm]"] bigquery-v2 = ["proto-plus (>=1.22.3,<2.0.0dev)", "protobuf (>=3.20.2,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<6.0.0dev)"] -bqstorage = ["google-cloud-bigquery-storage (>=2.6.0,<3.0.0dev)", "grpcio (>=1.47.0,<2.0dev)", "grpcio (>=1.49.1,<2.0dev)", "pyarrow (>=3.0.0)"] +bqstorage = ["google-cloud-bigquery-storage (>=2.6.0,<3.0.0dev)", "grpcio (>=1.47.0,<2.0dev)", "grpcio (>=1.49.1,<2.0dev) ; python_version >= \"3.11\"", "pyarrow (>=3.0.0)"] geopandas = ["Shapely (>=1.8.4,<3.0.0dev)", "geopandas (>=0.9.0,<2.0dev)"] ipython = ["bigquery-magics (>=0.1.0)"] ipywidgets = ["ipykernel (>=6.0.0)", "ipywidgets (>=7.7.0)"] opentelemetry = ["opentelemetry-api (>=1.1.0)", "opentelemetry-instrumentation (>=0.20b0)", "opentelemetry-sdk (>=1.1.0)"] -pandas = ["db-dtypes (>=0.3.0,<2.0.0dev)", "grpcio (>=1.47.0,<2.0dev)", "grpcio (>=1.49.1,<2.0dev)", "importlib-metadata (>=1.0.0)", "pandas (>=1.1.0)", "pandas-gbq (>=0.26.1)", "pyarrow (>=3.0.0)"] +pandas = ["db-dtypes (>=0.3.0,<2.0.0dev)", "grpcio (>=1.47.0,<2.0dev)", "grpcio (>=1.49.1,<2.0dev) ; python_version >= \"3.11\"", "importlib-metadata (>=1.0.0) ; python_version < \"3.8\"", "pandas (>=1.1.0)", "pandas-gbq (>=0.26.1) ; python_version >= \"3.8\"", "pyarrow (>=3.0.0)"] tqdm = ["tqdm (>=4.7.4,<5.0.0dev)"] [[package]] @@ -1903,7 +1877,7 @@ description = "Google Cloud API client core library" optional = true python-versions = ">=3.7" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"vertexai\"" +markers = "extra == \"vertexai\"" files = [ {file = "google_cloud_core-2.4.2-py2.py3-none-any.whl", hash = "sha256:7459c3e83de7cb8b9ecfec9babc910efb4314030c56dd798eaad12c426f7d180"}, {file = "google_cloud_core-2.4.2.tar.gz", hash = "sha256:a4fcb0e2fcfd4bfe963837fad6d10943754fd79c1a50097d68540b6eb3d67f35"}, @@ -1923,7 +1897,7 @@ description = "Google Cloud Resource Manager API client library" optional = true python-versions = ">=3.7" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"vertexai\"" +markers = "extra == \"vertexai\"" files = [ {file = "google_cloud_resource_manager-1.14.1-py2.py3-none-any.whl", hash = "sha256:68340599f85ebf07a6e18487e460ea07cc15e132068f6b188786d01c2cf25518"}, {file = "google_cloud_resource_manager-1.14.1.tar.gz", hash = "sha256:41e9e546aaa03d5160cdfa2341dbe81ef7596706c300a89b94c429f1f3411f87"}, @@ -1934,7 +1908,7 @@ google-api-core = {version = ">=1.34.1,<2.0.dev0 || >=2.11.dev0,<3.0.0dev", extr google-auth = ">=2.14.1,<2.24.0 || >2.24.0,<2.25.0 || >2.25.0,<3.0.0dev" grpc-google-iam-v1 = ">=0.14.0,<1.0.0dev" proto-plus = [ - {version = ">=1.22.3,<2.0.0dev", markers = "python_version < \"3.13\""}, + {version = ">=1.22.3,<2.0.0dev"}, {version = ">=1.25.0,<2.0.0dev", markers = "python_version >= \"3.13\""}, ] protobuf = ">=3.20.2,<4.21.0 || >4.21.0,<4.21.1 || >4.21.1,<4.21.2 || >4.21.2,<4.21.3 || >4.21.3,<4.21.4 || >4.21.4,<4.21.5 || >4.21.5,<6.0.0dev" @@ -1946,7 +1920,7 @@ description = "Google Cloud Storage API client library" optional = true python-versions = ">=3.7" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"vertexai\"" +markers = "extra == \"vertexai\"" files = [ {file = "google_cloud_storage-2.19.0-py2.py3-none-any.whl", hash = "sha256:aeb971b5c29cf8ab98445082cbfe7b161a1f48ed275822f59ed3f1524ea54fba"}, {file = "google_cloud_storage-2.19.0.tar.gz", hash = "sha256:cd05e9e7191ba6cb68934d8eb76054d9be4562aa89dbc4236feee4d7d51342b2"}, @@ -1971,7 +1945,7 @@ description = "A python wrapper of the C library 'Google CRC32C'" optional = true python-versions = ">=3.9" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"vertexai\"" +markers = "extra == \"vertexai\"" files = [ {file = "google_crc32c-1.6.0-cp310-cp310-macosx_12_0_arm64.whl", hash = "sha256:5bcc90b34df28a4b38653c36bb5ada35671ad105c99cfe915fb5bed7ad6924aa"}, {file = "google_crc32c-1.6.0-cp310-cp310-macosx_12_0_x86_64.whl", hash = "sha256:d9e9913f7bd69e093b81da4535ce27af842e7bf371cde42d1ae9e9bd382dc0e9"}, @@ -2012,7 +1986,7 @@ description = "Utilities for Google Media Downloads and Resumable Uploads" optional = true python-versions = ">=3.7" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"vertexai\"" +markers = "extra == \"vertexai\"" files = [ {file = "google_resumable_media-2.7.2-py2.py3-none-any.whl", hash = "sha256:3ce7551e9fe6d99e9a126101d2536612bb73486721951e9562fee0f90c6ababa"}, {file = "google_resumable_media-2.7.2.tar.gz", hash = "sha256:5280aed4629f2b60b847b0d42f9857fd4935c11af266744df33d8074cae92fe0"}, @@ -2032,7 +2006,7 @@ description = "Common protobufs used in Google APIs" optional = true python-versions = ">=3.7" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"vertexai\"" +markers = "extra == \"vertexai\"" files = [ {file = "googleapis_common_protos-1.68.0-py2.py3-none-any.whl", hash = "sha256:aaf179b2f81df26dfadac95def3b16a95064c76a5f45f07e4c68a21bb371c4ac"}, {file = "googleapis_common_protos-1.68.0.tar.gz", hash = "sha256:95d38161f4f9af0d9423eed8fb7b64ffd2568c3464eb542ff02c5bfa1953ab3c"}, @@ -2052,7 +2026,7 @@ description = "Lightweight in-process concurrent programming" optional = false python-versions = ">=3.7" groups = ["docs"] -markers = "(platform_machine == \"aarch64\" or platform_machine == \"ppc64le\" or platform_machine == \"x86_64\" or platform_machine == \"amd64\" or platform_machine == \"AMD64\" or platform_machine == \"win32\" or platform_machine == \"WIN32\") and (python_version <= \"3.11\" or python_version >= \"3.12\")" +markers = "platform_machine == \"aarch64\" or platform_machine == \"ppc64le\" or platform_machine == \"x86_64\" or platform_machine == \"amd64\" or platform_machine == \"AMD64\" or platform_machine == \"win32\" or platform_machine == \"WIN32\"" files = [ {file = "greenlet-3.1.1-cp310-cp310-macosx_11_0_universal2.whl", hash = "sha256:0bbae94a29c9e5c7e4a2b7f0aae5c17e8e90acbfd3bf6270eeba60c39fce3563"}, {file = "greenlet-3.1.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0fde093fb93f35ca72a556cf72c92ea3ebfda3d79fc35bb19fbe685853869a83"}, @@ -2140,7 +2114,7 @@ description = "IAM API client library" optional = true python-versions = ">=3.7" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"vertexai\"" +markers = "extra == \"vertexai\"" files = [ {file = "grpc_google_iam_v1-0.14.0-py2.py3-none-any.whl", hash = "sha256:fb4a084b30099ba3ab07d61d620a0d4429570b13ff53bd37bac75235f98b7da4"}, {file = "grpc_google_iam_v1-0.14.0.tar.gz", hash = "sha256:c66e07aa642e39bb37950f9e7f491f70dad150ac9801263b42b2814307c2df99"}, @@ -2158,7 +2132,7 @@ description = "HTTP/2-based RPC framework" optional = true python-versions = ">=3.8" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"vertexai\"" +markers = "extra == \"vertexai\"" files = [ {file = "grpcio-1.70.0-cp310-cp310-linux_armv7l.whl", hash = "sha256:95469d1977429f45fe7df441f586521361e235982a0b39e33841549143ae2851"}, {file = "grpcio-1.70.0-cp310-cp310-macosx_12_0_universal2.whl", hash = "sha256:ed9718f17fbdb472e33b869c77a16d0b55e166b100ec57b016dc7de9c8d236bf"}, @@ -2227,7 +2201,7 @@ description = "Status proto mapping for gRPC" optional = true python-versions = ">=3.8" groups = ["main"] -markers = "extra == \"vertexai\" and (python_version <= \"3.11\" or python_version >= \"3.12\")" +markers = "extra == \"vertexai\"" files = [ {file = "grpcio_status-1.70.0-py3-none-any.whl", hash = "sha256:fc5a2ae2b9b1c1969cc49f3262676e6854aa2398ec69cb5bd6c47cd501904a85"}, {file = "grpcio_status-1.70.0.tar.gz", hash = "sha256:0e7b42816512433b18b9d764285ff029bde059e9d41f8fe10a60631bd8348101"}, @@ -2242,10 +2216,9 @@ protobuf = ">=5.26.1,<6.0dev" name = "h11" version = "0.14.0" description = "A pure-Python, bring-your-own-I/O implementation of HTTP/1.1" -optional = true +optional = false python-versions = ">=3.7" groups = ["main"] -markers = "(extra == \"openai\" or extra == \"cohere\" or extra == \"mistralai\") and (python_version <= \"3.11\" or python_version >= \"3.12\")" files = [ {file = "h11-0.14.0-py3-none-any.whl", hash = "sha256:e3fe4ac4b851c468cc8363d500db52c2ead036020723024a109d37346efaa761"}, {file = "h11-0.14.0.tar.gz", hash = "sha256:8f19fbbe99e72420ff35c00b27a34cb9937e902a8b810e2c88300c6f0a3b699d"}, @@ -2255,10 +2228,9 @@ files = [ name = "httpcore" version = "1.0.7" description = "A minimal low-level HTTP client." -optional = true +optional = false python-versions = ">=3.8" groups = ["main"] -markers = "(extra == \"openai\" or extra == \"cohere\" or extra == \"mistralai\") and (python_version <= \"3.11\" or python_version >= \"3.12\")" files = [ {file = "httpcore-1.0.7-py3-none-any.whl", hash = "sha256:a3fff8f43dc260d5bd363d9f9cf1830fa3a458b332856f34282de498ed420edd"}, {file = "httpcore-1.0.7.tar.gz", hash = "sha256:8551cb62a169ec7162ac7be8d4817d561f60e08eaa485234898414bb5a8a0b4c"}, @@ -2278,10 +2250,9 @@ trio = ["trio (>=0.22.0,<1.0)"] name = "httpx" version = "0.28.1" description = "The next generation HTTP client." -optional = true +optional = false python-versions = ">=3.8" groups = ["main"] -markers = "(extra == \"openai\" or extra == \"cohere\" or extra == \"mistralai\") and (python_version <= \"3.11\" or python_version >= \"3.12\")" files = [ {file = "httpx-0.28.1-py3-none-any.whl", hash = "sha256:d909fcccc110f8c7faf814ca82a9a4d816bc5a6dbfea25d6591d6985b8ba59ad"}, {file = "httpx-0.28.1.tar.gz", hash = "sha256:75e98c5f16b0f35b567856f597f06ff2270a374470a5c2392242528e3e3e42fc"}, @@ -2294,7 +2265,7 @@ httpcore = "==1.*" idna = "*" [package.extras] -brotli = ["brotli", "brotlicffi"] +brotli = ["brotli ; platform_python_implementation == \"CPython\"", "brotlicffi ; platform_python_implementation != \"CPython\""] cli = ["click (==8.*)", "pygments (==2.*)", "rich (>=10,<14)"] http2 = ["h2 (>=3,<5)"] socks = ["socksio (==1.*)"] @@ -2307,7 +2278,7 @@ description = "Consume Server-Sent Event (SSE) messages with HTTPX." optional = true python-versions = ">=3.8" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"cohere\"" +markers = "extra == \"cohere\"" files = [ {file = "httpx-sse-0.4.0.tar.gz", hash = "sha256:1e81a3a3070ce322add1d3529ed42eb5f70817f45ed6ec915ab753f961139721"}, {file = "httpx_sse-0.4.0-py3-none-any.whl", hash = "sha256:f329af6eae57eaa2bdfd962b42524764af68075ea87370a2de920af5341e318f"}, @@ -2320,7 +2291,7 @@ description = "Client library to download and publish models, datasets and other optional = true python-versions = ">=3.8.0" groups = ["main"] -markers = "(extra == \"sentence-transformers\" or extra == \"cohere\") and (python_version <= \"3.11\" or python_version >= \"3.12\")" +markers = "extra == \"sentence-transformers\" or extra == \"cohere\"" files = [ {file = "huggingface_hub-0.29.1-py3-none-any.whl", hash = "sha256:352f69caf16566c7b6de84b54a822f6238e17ddd8ae3da4f8f2272aea5b198d5"}, {file = "huggingface_hub-0.29.1.tar.gz", hash = "sha256:9524eae42077b8ff4fc459ceb7a514eca1c1232b775276b009709fe2a084f250"}, @@ -2356,7 +2327,6 @@ description = "Human friendly output for text interfaces using Python" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" groups = ["main"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "humanfriendly-10.0-py2.py3-none-any.whl", hash = "sha256:1697e1a8a8f550fd43c2865cd84542fc175a61dcb779b6fee18cf6b6ccba1477"}, {file = "humanfriendly-10.0.tar.gz", hash = "sha256:6b0b831ce8f15f7300721aa49829fc4e83921a9a301cc7f606be6686a2288ddc"}, @@ -2372,7 +2342,6 @@ description = "File identification library for Python" optional = false python-versions = ">=3.9" groups = ["dev"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "identify-2.6.8-py2.py3-none-any.whl", hash = "sha256:83657f0f766a3c8d0eaea16d4ef42494b39b34629a4b3192a9d020d349b3e255"}, {file = "identify-2.6.8.tar.gz", hash = "sha256:61491417ea2c0c5c670484fd8abbb34de34cdae1e5f39a73ee65e48e4bb663fc"}, @@ -2392,7 +2361,6 @@ files = [ {file = "idna-3.10-py3-none-any.whl", hash = "sha256:946d195a0d259cbba61165e88e65941f16e9b36ea6ddb97f00452bae8b1287d3"}, {file = "idna-3.10.tar.gz", hash = "sha256:12f65c9b470abda6dc35cf8e63cc574b1c52b11df2c86030af0ac09b01b13ea9"}, ] -markers = {main = "(python_version <= \"3.11\" or python_version >= \"3.12\") and (extra == \"openai\" or extra == \"cohere\" or extra == \"mistralai\" or extra == \"sentence-transformers\" or extra == \"vertexai\" or extra == \"voyageai\" or extra == \"ranx\") and (extra == \"openai\" or extra == \"cohere\" or extra == \"mistralai\" or extra == \"sentence-transformers\" or extra == \"vertexai\" or extra == \"voyageai\" or python_version >= \"3.10\")", dev = "python_version <= \"3.11\" or python_version >= \"3.12\"", docs = "python_version <= \"3.11\" or python_version >= \"3.12\""} [package.extras] all = ["flake8 (>=7.1.1)", "mypy (>=1.11.2)", "pytest (>=8.3.2)", "ruff (>=0.6.2)"] @@ -2404,7 +2372,7 @@ description = "Iterative JSON parser with standard Python iterator interfaces" optional = true python-versions = "*" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"ranx\" and python_version >= \"3.10\"" +markers = "python_version >= \"3.10\" and extra == \"ranx\"" files = [ {file = "ijson-3.3.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:7f7a5250599c366369fbf3bc4e176f5daa28eb6bc7d6130d02462ed335361675"}, {file = "ijson-3.3.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:f87a7e52f79059f9c58f6886c262061065eb6f7554a587be7ed3aa63e6b71b34"}, @@ -2509,7 +2477,6 @@ description = "Getting image size from png/jpeg/jpeg2000/gif file" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" groups = ["docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "imagesize-1.4.1-py2.py3-none-any.whl", hash = "sha256:0d8d18d08f840c19d0ee7ca1fd82490fdc3729b7ac93f49870406ddde8ef8d8b"}, {file = "imagesize-1.4.1.tar.gz", hash = "sha256:69150444affb9cb0d5cc5a92b3676f0b2fb7cd9ae39e947a5e11a36b4497cd4a"}, @@ -2526,18 +2493,18 @@ files = [ {file = "importlib_metadata-8.6.1-py3-none-any.whl", hash = "sha256:02a89390c1e15fdfdc0d7c6b25cb3e62650d0494005c97d6f148bf5b9787525e"}, {file = "importlib_metadata-8.6.1.tar.gz", hash = "sha256:310b41d755445d74569f993ccfc22838295d9fe005425094fad953d7f15c8580"}, ] -markers = {dev = "python_version < \"3.10\"", docs = "python_version <= \"3.11\" or python_version >= \"3.12\""} +markers = {dev = "python_version == \"3.9\""} [package.dependencies] zipp = ">=3.20" [package.extras] -check = ["pytest-checkdocs (>=2.4)", "pytest-ruff (>=0.2.1)"] +check = ["pytest-checkdocs (>=2.4)", "pytest-ruff (>=0.2.1) ; sys_platform != \"cygwin\""] cover = ["pytest-cov"] doc = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"] enabler = ["pytest-enabler (>=2.2)"] perf = ["ipython"] -test = ["flufl.flake8", "importlib_resources (>=1.3)", "jaraco.test (>=5.4)", "packaging", "pyfakefs", "pytest (>=6,!=8.1.*)", "pytest-perf (>=0.9.2)"] +test = ["flufl.flake8", "importlib_resources (>=1.3) ; python_version < \"3.9\"", "jaraco.test (>=5.4)", "packaging", "pyfakefs", "pytest (>=6,!=8.1.*)", "pytest-perf (>=0.9.2)"] type = ["pytest-mypy"] [[package]] @@ -2547,7 +2514,6 @@ description = "brain-dead simple config-ini parsing" optional = false python-versions = ">=3.7" groups = ["dev"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "iniconfig-2.0.0-py3-none-any.whl", hash = "sha256:b6a85871a79d2e3b22d2d1b94ac2824226a63c6b741c88f7ae975f18b6778374"}, {file = "iniconfig-2.0.0.tar.gz", hash = "sha256:2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3"}, @@ -2560,7 +2526,7 @@ description = "inscriptis - HTML to text converter." optional = true python-versions = "<4.0,>=3.9" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"ranx\" and python_version >= \"3.10\"" +markers = "python_version >= \"3.10\" and extra == \"ranx\"" files = [ {file = "inscriptis-2.5.3-py3-none-any.whl", hash = "sha256:25962cf5a60b1a8f33e7bfbbea08a29af82299702339b9b90c538653a5c7aa38"}, {file = "inscriptis-2.5.3.tar.gz", hash = "sha256:256043caa13e4995c71fafdeadec4ac42b57f3914cb41023ecbee8bc27ca1cc0"}, @@ -2580,7 +2546,6 @@ description = "IPython Kernel for Jupyter" optional = false python-versions = ">=3.8" groups = ["dev", "docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "ipykernel-6.29.5-py3-none-any.whl", hash = "sha256:afdb66ba5aa354b09b91379bac28ae4afebbb30e8b39510c9690afb7a10421b5"}, {file = "ipykernel-6.29.5.tar.gz", hash = "sha256:f093a22c4a40f8828f8e330a9c297cb93dcab13bd9678ded6de8e5cf81c56215"}, @@ -2615,7 +2580,6 @@ description = "IPython: Productive Interactive Computing" optional = false python-versions = ">=3.9" groups = ["dev", "docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "ipython-8.18.1-py3-none-any.whl", hash = "sha256:e8267419d72d81955ec1177f8a29aaa90ac80ad647499201119e2f05e99aa397"}, {file = "ipython-8.18.1.tar.gz", hash = "sha256:ca6f079bb33457c66e233e4580ebfc4128855b4cf6370dddd73842a9563e8a27"}, @@ -2654,7 +2618,7 @@ description = "provides a common interface to many IR ad-hoc ranking benchmarks, optional = true python-versions = ">=3.8" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"ranx\" and python_version >= \"3.10\"" +markers = "python_version >= \"3.10\" and extra == \"ranx\"" files = [ {file = "ir_datasets-0.5.9-py3-none-any.whl", hash = "sha256:07c9bed07f31031f1da1bc02afc7a1077b1179a3af402d061f83bf6fb833b90a"}, {file = "ir_datasets-0.5.9.tar.gz", hash = "sha256:35c90980fbd0f4ea8fe22a1ab16d2bb6be3dc373cbd6dfab1d905f176a70e5ac"}, @@ -2683,7 +2647,6 @@ description = "A Python utility / library to sort Python imports." optional = false python-versions = ">=3.8.0" groups = ["dev"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "isort-5.13.2-py3-none-any.whl", hash = "sha256:8ca5e72a8d85860d5a3fa69b8745237f2939afe12dbf656afbcb47fe72d947a6"}, {file = "isort-5.13.2.tar.gz", hash = "sha256:48fdfcb9face5d58a4f6dde2e72a1fb8dcaf8ab26f95ab49fab84c2ddefb0109"}, @@ -2699,7 +2662,6 @@ description = "An autocompletion tool for Python that can be used for text edito optional = false python-versions = ">=3.6" groups = ["dev", "docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "jedi-0.19.2-py2.py3-none-any.whl", hash = "sha256:a8ef22bde8490f57fe5c7681a3c83cb58874daf72b4784de3cce5b6ef6edb5b9"}, {file = "jedi-0.19.2.tar.gz", hash = "sha256:4770dc3de41bde3966b02eb84fbcf557fb33cce26ad23da12c742fb50ecb11f0"}, @@ -2720,7 +2682,6 @@ description = "A very fast and expressive template engine." optional = false python-versions = ">=3.7" groups = ["main", "docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "jinja2-3.1.5-py3-none-any.whl", hash = "sha256:aba0f4dc9ed8013c424088f68a5c226f7d6097ed89b246d7749c2ec4175c6adb"}, {file = "jinja2-3.1.5.tar.gz", hash = "sha256:8fefff8dc3034e27bb80d67c671eb8a9bc424c0ef4c0826edbff304cceff43bb"}, @@ -2739,7 +2700,7 @@ description = "Fast iterable JSON parser." optional = true python-versions = ">=3.8" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"openai\"" +markers = "extra == \"openai\"" files = [ {file = "jiter-0.8.2-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:ca8577f6a413abe29b079bc30f907894d7eb07a865c4df69475e868d73e71c7b"}, {file = "jiter-0.8.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:b25bd626bde7fb51534190c7e3cb97cee89ee76b76d7585580e22f34f5e3f393"}, @@ -2826,7 +2787,7 @@ description = "JSON Matching Expressions" optional = true python-versions = ">=3.7" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"bedrock\"" +markers = "extra == \"bedrock\"" files = [ {file = "jmespath-1.0.1-py3-none-any.whl", hash = "sha256:02e2e4cc71b5bcab88332eebf907519190dd9e6e82107fa7f83b1003a6252980"}, {file = "jmespath-1.0.1.tar.gz", hash = "sha256:90261b206d6defd58fdd5e85f478bf633a2901798906be2ad389150c5c60edbe"}, @@ -2839,7 +2800,7 @@ description = "Lightweight pipelining with Python functions" optional = true python-versions = ">=3.8" groups = ["main"] -markers = "(extra == \"nltk\" or extra == \"sentence-transformers\") and (python_version <= \"3.11\" or python_version >= \"3.12\")" +markers = "extra == \"nltk\" or extra == \"sentence-transformers\"" files = [ {file = "joblib-1.4.2-py3-none-any.whl", hash = "sha256:06d478d5674cbc267e7496a410ee875abd68e4340feff4490bcb7afb88060ae6"}, {file = "joblib-1.4.2.tar.gz", hash = "sha256:2382c5816b2636fbd20a09e0f4e9dad4736765fdfb7dca582943b9c1366b3f0e"}, @@ -2852,7 +2813,6 @@ description = "A final implementation of JSONPath for Python that aims to be sta optional = false python-versions = "*" groups = ["main"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "jsonpath-ng-1.7.0.tar.gz", hash = "sha256:f6f5f7fd4e5ff79c785f1573b394043b39849fb2bb47bcead935d12b00beab3c"}, {file = "jsonpath_ng-1.7.0-py2-none-any.whl", hash = "sha256:898c93fc173f0c336784a3fa63d7434297544b7198124a68f9a3ef9597b0ae6e"}, @@ -2869,7 +2829,7 @@ description = "A more powerful JSONPath implementation in modern python" optional = true python-versions = ">=3.6" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"mistralai\"" +markers = "extra == \"mistralai\"" files = [ {file = "jsonpath-python-1.0.6.tar.gz", hash = "sha256:dd5be4a72d8a2995c3f583cf82bf3cd1a9544cfdabf2d22595b67aff07349666"}, {file = "jsonpath_python-1.0.6-py3-none-any.whl", hash = "sha256:1e3b78df579f5efc23565293612decee04214609208a2335884b3ee3f786b575"}, @@ -2882,7 +2842,6 @@ description = "An implementation of JSON Schema validation for Python" optional = false python-versions = ">=3.8" groups = ["dev", "docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "jsonschema-4.23.0-py3-none-any.whl", hash = "sha256:fbadb6f8b144a8f8cf9f0b89ba94501d143e50411a1278633f56a7acf7fd5566"}, {file = "jsonschema-4.23.0.tar.gz", hash = "sha256:d71497fef26351a33265337fa77ffeb82423f3ea21283cd9467bb03999266bc4"}, @@ -2905,7 +2864,6 @@ description = "The JSON Schema meta-schemas and vocabularies, exposed as a Regis optional = false python-versions = ">=3.9" groups = ["dev", "docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "jsonschema_specifications-2024.10.1-py3-none-any.whl", hash = "sha256:a09a0680616357d9a0ecf05c12ad234479f549239d0f5b55f3deea67475da9bf"}, {file = "jsonschema_specifications-2024.10.1.tar.gz", hash = "sha256:0f38b83639958ce1152d02a7f062902c41c8fd20d558b0c34344292d417ae272"}, @@ -2921,7 +2879,6 @@ description = "A defined interface for working with a cache of jupyter notebooks optional = false python-versions = ">=3.9" groups = ["docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "jupyter_cache-1.0.1-py3-none-any.whl", hash = "sha256:9c3cafd825ba7da8b5830485343091143dff903e4d8c69db9349b728b140abf6"}, {file = "jupyter_cache-1.0.1.tar.gz", hash = "sha256:16e808eb19e3fb67a223db906e131ea6e01f03aa27f49a7214ce6a5fec186fb9"}, @@ -2950,7 +2907,6 @@ description = "Jupyter protocol implementation and client libraries" optional = false python-versions = ">=3.8" groups = ["dev", "docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "jupyter_client-8.6.3-py3-none-any.whl", hash = "sha256:e8a19cc986cc45905ac3362915f410f3af85424b4c0905e94fa5f2cb08e8f23f"}, {file = "jupyter_client-8.6.3.tar.gz", hash = "sha256:35b3a0947c4a6e9d589eb97d7d4cd5e90f910ee73101611f01283732bd6d9419"}, @@ -2966,7 +2922,7 @@ traitlets = ">=5.3" [package.extras] docs = ["ipykernel", "myst-parser", "pydata-sphinx-theme", "sphinx (>=4)", "sphinx-autodoc-typehints", "sphinxcontrib-github-alt", "sphinxcontrib-spelling"] -test = ["coverage", "ipykernel (>=6.14)", "mypy", "paramiko", "pre-commit", "pytest (<8.2.0)", "pytest-cov", "pytest-jupyter[client] (>=0.4.1)", "pytest-timeout"] +test = ["coverage", "ipykernel (>=6.14)", "mypy", "paramiko ; sys_platform == \"win32\"", "pre-commit", "pytest (<8.2.0)", "pytest-cov", "pytest-jupyter[client] (>=0.4.1)", "pytest-timeout"] [[package]] name = "jupyter-core" @@ -2975,7 +2931,6 @@ description = "Jupyter core package. A base package on which Jupyter projects re optional = false python-versions = ">=3.8" groups = ["dev", "docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "jupyter_core-5.7.2-py3-none-any.whl", hash = "sha256:4f7315d2f6b4bcf2e3e7cb6e46772eba760ae459cd1f59d29eb57b0a01bd7409"}, {file = "jupyter_core-5.7.2.tar.gz", hash = "sha256:aa5f8d32bbf6b431ac830496da7392035d6f61b4f54872f15c4bd2a9c3f536d9"}, @@ -2997,7 +2952,6 @@ description = "Pygments theme using JupyterLab CSS variables" optional = false python-versions = ">=3.8" groups = ["docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "jupyterlab_pygments-0.3.0-py3-none-any.whl", hash = "sha256:841a89020971da1d8693f1a99997aefc5dc424bb1b251fd6322462a1b8842780"}, {file = "jupyterlab_pygments-0.3.0.tar.gz", hash = "sha256:721aca4d9029252b11cfa9d185e5b5af4d54772bb8072f9b7036f4170054d35d"}, @@ -3010,7 +2964,7 @@ description = "A fast implementation of the Cassowary constraint solver" optional = true python-versions = ">=3.10" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"ranx\" and python_version >= \"3.10\"" +markers = "python_version >= \"3.10\" and extra == \"ranx\"" files = [ {file = "kiwisolver-1.4.8-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:88c6f252f6816a73b1f8c904f7bbe02fd67c09a69f7cb8a0eecdbf5ce78e63db"}, {file = "kiwisolver-1.4.8-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:c72941acb7b67138f35b879bbe85be0f6c6a70cab78fe3ef6db9c024d9223e5b"}, @@ -3094,6 +3048,28 @@ files = [ {file = "kiwisolver-1.4.8.tar.gz", hash = "sha256:23d5f023bdc8c7e54eb65f03ca5d5bb25b601eac4d7f1a042888a1f45237987e"}, ] +[[package]] +name = "langcache" +version = "0.0.4" +description = "Python Client SDK for LangCache Redis Service" +optional = false +python-versions = ">=3.9" +groups = ["main"] +files = [ + {file = "langcache-0.0.4-py3-none-any.whl", hash = "sha256:c924e97459a05c2994924ab18ae56d7c6f9abd21c340e78d9cd735439060bf92"}, +] + +[package.dependencies] +eval-type-backport = ">=0.2.0" +httpx = ">=0.28.1" +pydantic = ">=2.10.3" +python-dateutil = ">=2.8.2" +typing-inspection = ">=0.4.0" + +[package.source] +type = "file" +url = "vendor/langcache-0.0.4-py3-none-any.whl" + [[package]] name = "llvmlite" version = "0.44.0" @@ -3101,7 +3077,7 @@ description = "lightweight wrapper around basic LLVM functionality" optional = true python-versions = ">=3.10" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"ranx\" and python_version >= \"3.10\"" +markers = "python_version >= \"3.10\" and extra == \"ranx\"" files = [ {file = "llvmlite-0.44.0-cp310-cp310-macosx_10_14_x86_64.whl", hash = "sha256:9fbadbfba8422123bab5535b293da1cf72f9f478a65645ecd73e781f962ca614"}, {file = "llvmlite-0.44.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:cccf8eb28f24840f2689fb1a45f9c0f7e582dd24e088dcf96e424834af11f791"}, @@ -3133,7 +3109,7 @@ description = "Powerful and Pythonic XML processing library combining libxml2/li optional = true python-versions = ">=3.6" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"ranx\" and python_version >= \"3.10\"" +markers = "python_version >= \"3.10\" and extra == \"ranx\"" files = [ {file = "lxml-5.3.1-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:a4058f16cee694577f7e4dd410263cd0ef75644b43802a689c2b3c2a7e69453b"}, {file = "lxml-5.3.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:364de8f57d6eda0c16dcfb999af902da31396949efa0e583e12675d09709881b"}, @@ -3289,7 +3265,7 @@ description = "LZ4 Bindings for Python" optional = true python-versions = ">=3.9" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"ranx\" and python_version >= \"3.10\"" +markers = "python_version >= \"3.10\" and extra == \"ranx\"" files = [ {file = "lz4-4.4.3-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:1ebf23ffd36b32b980f720a81990fcfdeadacafe7498fbeff7a8e058259d4e58"}, {file = "lz4-4.4.3-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:8fe3caea61427057a9e3697c69b2403510fdccfca4483520d02b98ffae74531e"}, @@ -3340,7 +3316,7 @@ files = [ {file = "markdown-it-py-3.0.0.tar.gz", hash = "sha256:e3f60a94fa066dc52ec76661e37c851cb232d92f9886b15cb560aaada2df8feb"}, {file = "markdown_it_py-3.0.0-py3-none-any.whl", hash = "sha256:355216845c60bd96232cd8d8c40e8f9765cc86f46880e43a8fd22dc1a1a8cab1"}, ] -markers = {main = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"ranx\" and python_version >= \"3.10\"", docs = "python_version <= \"3.11\" or python_version >= \"3.12\""} +markers = {main = "python_version >= \"3.10\" and extra == \"ranx\""} [package.dependencies] mdurl = ">=0.1,<1.0" @@ -3362,7 +3338,6 @@ description = "Safely add untrusted strings to HTML/XML markup." optional = false python-versions = ">=3.9" groups = ["main", "docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "MarkupSafe-3.0.2-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:7e94c425039cde14257288fd61dcfb01963e658efbc0ff54f5306b06054700f8"}, {file = "MarkupSafe-3.0.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:9e2d922824181480953426608b81967de705c3cef4d1af983af849d7bd619158"}, @@ -3434,7 +3409,7 @@ description = "Python plotting package" optional = true python-versions = ">=3.10" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"ranx\" and python_version >= \"3.10\"" +markers = "python_version >= \"3.10\" and extra == \"ranx\"" files = [ {file = "matplotlib-3.10.1-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:ff2ae14910be903f4a24afdbb6d7d3a6c44da210fc7d42790b87aeac92238a16"}, {file = "matplotlib-3.10.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:0721a3fd3d5756ed593220a8b86808a36c5031fce489adb5b31ee6dbb47dd5b2"}, @@ -3493,7 +3468,6 @@ description = "Inline Matplotlib backend for Jupyter" optional = false python-versions = ">=3.8" groups = ["dev", "docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "matplotlib_inline-0.1.7-py3-none-any.whl", hash = "sha256:df192d39a4ff8f21b1895d72e6a13f5fcc5099f00fa84384e0ea28c2cc0653ca"}, {file = "matplotlib_inline-0.1.7.tar.gz", hash = "sha256:8423b23ec666be3d16e16b60bdd8ac4e86e840ebd1dd11a30b9f117f2fa0ab90"}, @@ -3509,7 +3483,6 @@ description = "McCabe checker, plugin for flake8" optional = false python-versions = ">=3.6" groups = ["dev"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "mccabe-0.7.0-py2.py3-none-any.whl", hash = "sha256:6c2d30ab6be0e4a46919781807b4f0d834ebdd6c6e3dca0bda5a15f863427b6e"}, {file = "mccabe-0.7.0.tar.gz", hash = "sha256:348e0240c33b60bbdf4e523192ef919f28cb2c3d7d5c7794f74009290f236325"}, @@ -3522,7 +3495,6 @@ description = "Collection of plugins for markdown-it-py" optional = false python-versions = ">=3.8" groups = ["docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "mdit_py_plugins-0.4.2-py3-none-any.whl", hash = "sha256:0c673c3f889399a33b95e88d2f0d111b4447bdfea7f237dab2d488f459835636"}, {file = "mdit_py_plugins-0.4.2.tar.gz", hash = "sha256:5f2cd1fdb606ddf152d37ec30e46101a60512bc0e5fa1a7002c36647b09e26b5"}, @@ -3547,7 +3519,7 @@ files = [ {file = "mdurl-0.1.2-py3-none-any.whl", hash = "sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8"}, {file = "mdurl-0.1.2.tar.gz", hash = "sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba"}, ] -markers = {main = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"ranx\" and python_version >= \"3.10\"", docs = "python_version <= \"3.11\" or python_version >= \"3.12\""} +markers = {main = "python_version >= \"3.10\" and extra == \"ranx\""} [[package]] name = "mistralai" @@ -3556,7 +3528,7 @@ description = "Python Client SDK for the Mistral AI API." optional = true python-versions = ">=3.8" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"mistralai\"" +markers = "extra == \"mistralai\"" files = [ {file = "mistralai-1.5.0-py3-none-any.whl", hash = "sha256:9372537719f87bd6f9feef4747d0bf1f4fbe971f8c02945ca4b4bf3c94571c97"}, {file = "mistralai-1.5.0.tar.gz", hash = "sha256:fd94bc93bc25aad9c6dd8005b1a0bc4ba1250c6b3fbf855a49936989cc6e5c0d"}, @@ -3580,7 +3552,6 @@ description = "A sane and fast Markdown parser with useful plugins and renderers optional = false python-versions = ">=3.8" groups = ["docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "mistune-3.1.2-py3-none-any.whl", hash = "sha256:4b47731332315cdca99e0ded46fc0004001c1299ff773dfb48fbe1fd226de319"}, {file = "mistune-3.1.2.tar.gz", hash = "sha256:733bf018ba007e8b5f2d3a9eb624034f6ee26c4ea769a98ec533ee111d504dff"}, @@ -3596,7 +3567,6 @@ description = "" optional = false python-versions = ">=3.9" groups = ["main"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "ml_dtypes-0.5.1-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:bd73f51957949069573ff783563486339a9285d72e2f36c18e0c1aa9ca7eb190"}, {file = "ml_dtypes-0.5.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:810512e2eccdfc3b41eefa3a27402371a3411453a1efc7e9c000318196140fed"}, @@ -3626,11 +3596,11 @@ files = [ [package.dependencies] numpy = [ - {version = ">=1.21", markers = "python_version < \"3.10\""}, - {version = ">=1.23.3", markers = "python_version >= \"3.11\" and python_version < \"3.12\""}, - {version = ">=1.21.2", markers = "python_version >= \"3.10\" and python_version < \"3.11\""}, + {version = ">=1.21"}, + {version = ">=1.23.3", markers = "python_version >= \"3.11\""}, + {version = ">=1.21.2", markers = "python_version >= \"3.10\""}, {version = ">=2.1.0", markers = "python_version >= \"3.13\""}, - {version = ">=1.26.0", markers = "python_version >= \"3.12\" and python_version < \"3.13\""}, + {version = ">=1.26.0", markers = "python_version >= \"3.12\""}, ] [package.extras] @@ -3643,7 +3613,7 @@ description = "Python library for arbitrary-precision floating-point arithmetic" optional = true python-versions = "*" groups = ["main"] -markers = "extra == \"sentence-transformers\" and (python_version <= \"3.11\" or python_version >= \"3.12\")" +markers = "extra == \"sentence-transformers\"" files = [ {file = "mpmath-1.3.0-py3-none-any.whl", hash = "sha256:a0b2b9fe80bbcd81a6647ff13108738cfb482d481d826cc0e02f5b35e5c88d2c"}, {file = "mpmath-1.3.0.tar.gz", hash = "sha256:7a28eb2a9774d00c7bc92411c19a89209d5da7c4c9a9e227be8330a23a25b91f"}, @@ -3652,7 +3622,7 @@ files = [ [package.extras] develop = ["codecov", "pycodestyle", "pytest (>=4.6)", "pytest-cov", "wheel"] docs = ["sphinx"] -gmpy = ["gmpy2 (>=2.1.0a4)"] +gmpy = ["gmpy2 (>=2.1.0a4) ; platform_python_implementation != \"PyPy\""] tests = ["pytest (>=4.6)"] [[package]] @@ -3662,7 +3632,7 @@ description = "multidict implementation" optional = true python-versions = ">=3.8" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"voyageai\"" +markers = "extra == \"voyageai\"" files = [ {file = "multidict-6.1.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:3380252550e372e8511d49481bd836264c009adb826b23fefcc5dd3c69692f60"}, {file = "multidict-6.1.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:99f826cbf970077383d7de805c0681799491cb939c25450b9b5b3ced03ca99f1"}, @@ -3768,7 +3738,6 @@ description = "Optional static typing for Python" optional = false python-versions = ">=3.8" groups = ["dev"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "mypy-1.9.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:f8a67616990062232ee4c3952f41c779afac41405806042a8126fe96e098419f"}, {file = "mypy-1.9.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:d357423fa57a489e8c47b7c85dfb96698caba13d66e086b412298a1a0ea3b0ed"}, @@ -3821,7 +3790,7 @@ files = [ {file = "mypy_extensions-1.0.0-py3-none-any.whl", hash = "sha256:4392f6c0eb8a5668a69e23d168ffa70f0be9ccfd32b5cc2d26a34ae5b844552d"}, {file = "mypy_extensions-1.0.0.tar.gz", hash = "sha256:75dbf8955dc00442a438fc4d0666508a9a97b6bd41aa2f0ffe9d2f2725af0782"}, ] -markers = {main = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"mistralai\"", dev = "python_version <= \"3.11\" or python_version >= \"3.12\""} +markers = {main = "extra == \"mistralai\""} [[package]] name = "myst-nb" @@ -3830,7 +3799,6 @@ description = "A Jupyter Notebook Sphinx reader built on top of the MyST markdow optional = false python-versions = ">=3.9" groups = ["docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "myst_nb-1.2.0-py3-none-any.whl", hash = "sha256:0e09909877848c0cf45e1aecee97481512efa29a0c4caa37870a03bba11c56c1"}, {file = "myst_nb-1.2.0.tar.gz", hash = "sha256:af459ec753b341952182b45b0a80b4776cebf80c9ee6aaca2a3f4027b440c9de"}, @@ -3860,7 +3828,6 @@ description = "An extended [CommonMark](https://spec.commonmark.org/) compliant optional = false python-versions = ">=3.8" groups = ["docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "myst_parser-3.0.1-py3-none-any.whl", hash = "sha256:6457aaa33a5d474aca678b8ead9b3dc298e89c68e67012e73146ea6fd54babf1"}, {file = "myst_parser-3.0.1.tar.gz", hash = "sha256:88f0cb406cb363b077d176b51c476f62d60604d68a8dcdf4832e080441301a87"}, @@ -3888,7 +3855,6 @@ description = "A client library for executing notebooks. Formerly nbconvert's Ex optional = false python-versions = ">=3.9.0" groups = ["docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "nbclient-0.10.2-py3-none-any.whl", hash = "sha256:4ffee11e788b4a27fabeb7955547e4318a5298f34342a4bfd01f2e1faaeadc3d"}, {file = "nbclient-0.10.2.tar.gz", hash = "sha256:90b7fc6b810630db87a6d0c2250b1f0ab4cf4d3c27a299b0cde78a4ed3fd9193"}, @@ -3912,7 +3878,6 @@ description = "Converting Jupyter Notebooks (.ipynb files) to other formats. Ou optional = false python-versions = ">=3.8" groups = ["docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "nbconvert-7.16.6-py3-none-any.whl", hash = "sha256:1375a7b67e0c2883678c48e506dc320febb57685e5ee67faa51b18a90f3a712b"}, {file = "nbconvert-7.16.6.tar.gz", hash = "sha256:576a7e37c6480da7b8465eefa66c17844243816ce1ccc372633c6b71c3c0f582"}, @@ -3951,7 +3916,6 @@ description = "The Jupyter Notebook format" optional = false python-versions = ">=3.8" groups = ["dev", "docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "nbformat-5.10.4-py3-none-any.whl", hash = "sha256:3b48d6c8fbca4b299bf3982ea7db1af21580e4fec269ad087b9e81588891200b"}, {file = "nbformat-5.10.4.tar.gz", hash = "sha256:322168b14f937a5d11362988ecac2a4952d3d8e3a2cbeb2319584631226d5b3a"}, @@ -3974,7 +3938,6 @@ description = "Jupyter Notebook Tools for Sphinx" optional = false python-versions = ">=3.6" groups = ["docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "nbsphinx-0.9.6-py3-none-any.whl", hash = "sha256:336b0b557945a7678ec7449b16449f854bc852a435bb53b8a72e6b5dc740d992"}, {file = "nbsphinx-0.9.6.tar.gz", hash = "sha256:c2b28a2d702f1159a95b843831798e86e60a17fc647b9bff9ba1585355de54e3"}, @@ -3995,7 +3958,6 @@ description = "A py.test plugin to validate Jupyter notebooks" optional = false python-versions = ">=3.7, <4" groups = ["dev"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "nbval-0.11.0-py2.py3-none-any.whl", hash = "sha256:307aecc866c9a1e8a13bb5bbb008a702bacfda2394dff6fe504a3108a58042a0"}, {file = "nbval-0.11.0.tar.gz", hash = "sha256:77c95797607b0a968babd2597ee3494102d25c3ad37435debbdac0e46e379094"}, @@ -4015,7 +3977,6 @@ description = "Patch asyncio to allow nested event loops" optional = false python-versions = ">=3.5" groups = ["dev", "docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "nest_asyncio-1.6.0-py3-none-any.whl", hash = "sha256:87af6efd6b5e897c81050477ef65c62e2b2f35d51703cae01aff2905b1852e1c"}, {file = "nest_asyncio-1.6.0.tar.gz", hash = "sha256:6f172d5449aca15afd6c646851f4e31e02c598d553a667e38cafa997cfec55fe"}, @@ -4028,7 +3989,7 @@ description = "Python package for creating and manipulating graphs and networks" optional = true python-versions = ">=3.9" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"sentence-transformers\"" +markers = "extra == \"sentence-transformers\"" files = [ {file = "networkx-3.2.1-py3-none-any.whl", hash = "sha256:f18c69adc97877c42332c170849c96cefa91881c99a7cb3e95b7c659ebdc1ec2"}, {file = "networkx-3.2.1.tar.gz", hash = "sha256:9f1bb5cf3409bf324e0a722c20bdb4c20ee39bf1c30ce8ae499c8502b0b5e0c6"}, @@ -4048,7 +4009,7 @@ description = "Natural Language Toolkit" optional = true python-versions = ">=3.8" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"nltk\"" +markers = "extra == \"nltk\"" files = [ {file = "nltk-3.9.1-py3-none-any.whl", hash = "sha256:4fa26829c5b00715afe3061398a8989dc643b92ce7dd93fb4585a70930d168a1"}, {file = "nltk-3.9.1.tar.gz", hash = "sha256:87d127bd3de4bd89a4f81265e5fa59cb1b199b27440175370f7417d2bc7ae868"}, @@ -4075,7 +4036,6 @@ description = "Node.js virtual environment builder" optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7" groups = ["dev"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "nodeenv-1.9.1-py2.py3-none-any.whl", hash = "sha256:ba11c9782d29c27c70ffbdda2d7415098754709be8a7056d79a737cd901155c9"}, {file = "nodeenv-1.9.1.tar.gz", hash = "sha256:6ec12890a2dab7946721edbfbcd91f3319c6ccc9aec47be7c7e6b7011ee6645f"}, @@ -4088,7 +4048,7 @@ description = "compiling Python code using LLVM" optional = true python-versions = ">=3.10" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"ranx\" and python_version >= \"3.10\"" +markers = "python_version >= \"3.10\" and extra == \"ranx\"" files = [ {file = "numba-0.61.0-cp310-cp310-macosx_10_14_x86_64.whl", hash = "sha256:9cab9783a700fa428b1a54d65295122bc03b3de1d01fb819a6b9dbbddfdb8c43"}, {file = "numba-0.61.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:46c5ae094fb3706f5adf9021bfb7fc11e44818d61afee695cdee4eadfed45e98"}, @@ -4124,7 +4084,7 @@ description = "Fundamental package for array computing in Python" optional = false python-versions = ">=3.9" groups = ["main"] -markers = "python_version <= \"3.11\"" +markers = "python_version < \"3.12\"" files = [ {file = "numpy-1.26.4-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:9ff0f4f29c51e2803569d7a51c2304de5554655a60c5d776e35b4a41413830d0"}, {file = "numpy-1.26.4-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:2e4ee3380d6de9c9ec04745830fd9e2eccb3e6cf790d39d7b98ffd19b0dd754a"}, @@ -4237,7 +4197,7 @@ description = "CUBLAS native runtime libraries" optional = true python-versions = ">=3" groups = ["main"] -markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\" and extra == \"sentence-transformers\" and (python_version <= \"3.11\" or python_version >= \"3.12\")" +markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\" and extra == \"sentence-transformers\"" files = [ {file = "nvidia_cublas_cu12-12.4.5.8-py3-none-manylinux2014_aarch64.whl", hash = "sha256:0f8aa1706812e00b9f19dfe0cdb3999b092ccb8ca168c0db5b8ea712456fd9b3"}, {file = "nvidia_cublas_cu12-12.4.5.8-py3-none-manylinux2014_x86_64.whl", hash = "sha256:2fc8da60df463fdefa81e323eef2e36489e1c94335b5358bcb38360adf75ac9b"}, @@ -4251,7 +4211,7 @@ description = "CUDA profiling tools runtime libs." optional = true python-versions = ">=3" groups = ["main"] -markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\" and extra == \"sentence-transformers\" and (python_version <= \"3.11\" or python_version >= \"3.12\")" +markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\" and extra == \"sentence-transformers\"" files = [ {file = "nvidia_cuda_cupti_cu12-12.4.127-py3-none-manylinux2014_aarch64.whl", hash = "sha256:79279b35cf6f91da114182a5ce1864997fd52294a87a16179ce275773799458a"}, {file = "nvidia_cuda_cupti_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl", hash = "sha256:9dec60f5ac126f7bb551c055072b69d85392b13311fcc1bcda2202d172df30fb"}, @@ -4265,7 +4225,7 @@ description = "NVRTC native runtime libraries" optional = true python-versions = ">=3" groups = ["main"] -markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\" and extra == \"sentence-transformers\" and (python_version <= \"3.11\" or python_version >= \"3.12\")" +markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\" and extra == \"sentence-transformers\"" files = [ {file = "nvidia_cuda_nvrtc_cu12-12.4.127-py3-none-manylinux2014_aarch64.whl", hash = "sha256:0eedf14185e04b76aa05b1fea04133e59f465b6f960c0cbf4e37c3cb6b0ea198"}, {file = "nvidia_cuda_nvrtc_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl", hash = "sha256:a178759ebb095827bd30ef56598ec182b85547f1508941a3d560eb7ea1fbf338"}, @@ -4279,7 +4239,7 @@ description = "CUDA Runtime native Libraries" optional = true python-versions = ">=3" groups = ["main"] -markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\" and extra == \"sentence-transformers\" and (python_version <= \"3.11\" or python_version >= \"3.12\")" +markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\" and extra == \"sentence-transformers\"" files = [ {file = "nvidia_cuda_runtime_cu12-12.4.127-py3-none-manylinux2014_aarch64.whl", hash = "sha256:961fe0e2e716a2a1d967aab7caee97512f71767f852f67432d572e36cb3a11f3"}, {file = "nvidia_cuda_runtime_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl", hash = "sha256:64403288fa2136ee8e467cdc9c9427e0434110899d07c779f25b5c068934faa5"}, @@ -4293,7 +4253,7 @@ description = "cuDNN runtime libraries" optional = true python-versions = ">=3" groups = ["main"] -markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\" and extra == \"sentence-transformers\" and (python_version <= \"3.11\" or python_version >= \"3.12\")" +markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\" and extra == \"sentence-transformers\"" files = [ {file = "nvidia_cudnn_cu12-9.1.0.70-py3-none-manylinux2014_x86_64.whl", hash = "sha256:165764f44ef8c61fcdfdfdbe769d687e06374059fbb388b6c89ecb0e28793a6f"}, {file = "nvidia_cudnn_cu12-9.1.0.70-py3-none-win_amd64.whl", hash = "sha256:6278562929433d68365a07a4a1546c237ba2849852c0d4b2262a486e805b977a"}, @@ -4309,7 +4269,7 @@ description = "CUFFT native runtime libraries" optional = true python-versions = ">=3" groups = ["main"] -markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\" and extra == \"sentence-transformers\" and (python_version <= \"3.11\" or python_version >= \"3.12\")" +markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\" and extra == \"sentence-transformers\"" files = [ {file = "nvidia_cufft_cu12-11.2.1.3-py3-none-manylinux2014_aarch64.whl", hash = "sha256:5dad8008fc7f92f5ddfa2101430917ce2ffacd86824914c82e28990ad7f00399"}, {file = "nvidia_cufft_cu12-11.2.1.3-py3-none-manylinux2014_x86_64.whl", hash = "sha256:f083fc24912aa410be21fa16d157fed2055dab1cc4b6934a0e03cba69eb242b9"}, @@ -4326,7 +4286,7 @@ description = "CURAND native runtime libraries" optional = true python-versions = ">=3" groups = ["main"] -markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\" and extra == \"sentence-transformers\" and (python_version <= \"3.11\" or python_version >= \"3.12\")" +markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\" and extra == \"sentence-transformers\"" files = [ {file = "nvidia_curand_cu12-10.3.5.147-py3-none-manylinux2014_aarch64.whl", hash = "sha256:1f173f09e3e3c76ab084aba0de819c49e56614feae5c12f69883f4ae9bb5fad9"}, {file = "nvidia_curand_cu12-10.3.5.147-py3-none-manylinux2014_x86_64.whl", hash = "sha256:a88f583d4e0bb643c49743469964103aa59f7f708d862c3ddb0fc07f851e3b8b"}, @@ -4340,7 +4300,7 @@ description = "CUDA solver native runtime libraries" optional = true python-versions = ">=3" groups = ["main"] -markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\" and extra == \"sentence-transformers\" and (python_version <= \"3.11\" or python_version >= \"3.12\")" +markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\" and extra == \"sentence-transformers\"" files = [ {file = "nvidia_cusolver_cu12-11.6.1.9-py3-none-manylinux2014_aarch64.whl", hash = "sha256:d338f155f174f90724bbde3758b7ac375a70ce8e706d70b018dd3375545fc84e"}, {file = "nvidia_cusolver_cu12-11.6.1.9-py3-none-manylinux2014_x86_64.whl", hash = "sha256:19e33fa442bcfd085b3086c4ebf7e8debc07cfe01e11513cc6d332fd918ac260"}, @@ -4359,7 +4319,7 @@ description = "CUSPARSE native runtime libraries" optional = true python-versions = ">=3" groups = ["main"] -markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\" and extra == \"sentence-transformers\" and (python_version <= \"3.11\" or python_version >= \"3.12\")" +markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\" and extra == \"sentence-transformers\"" files = [ {file = "nvidia_cusparse_cu12-12.3.1.170-py3-none-manylinux2014_aarch64.whl", hash = "sha256:9d32f62896231ebe0480efd8a7f702e143c98cfaa0e8a76df3386c1ba2b54df3"}, {file = "nvidia_cusparse_cu12-12.3.1.170-py3-none-manylinux2014_x86_64.whl", hash = "sha256:ea4f11a2904e2a8dc4b1833cc1b5181cde564edd0d5cd33e3c168eff2d1863f1"}, @@ -4376,7 +4336,7 @@ description = "NVIDIA cuSPARSELt" optional = true python-versions = "*" groups = ["main"] -markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\" and extra == \"sentence-transformers\" and (python_version <= \"3.11\" or python_version >= \"3.12\")" +markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\" and extra == \"sentence-transformers\"" files = [ {file = "nvidia_cusparselt_cu12-0.6.2-py3-none-manylinux2014_aarch64.whl", hash = "sha256:067a7f6d03ea0d4841c85f0c6f1991c5dda98211f6302cb83a4ab234ee95bef8"}, {file = "nvidia_cusparselt_cu12-0.6.2-py3-none-manylinux2014_x86_64.whl", hash = "sha256:df2c24502fd76ebafe7457dbc4716b2fec071aabaed4fb7691a201cde03704d9"}, @@ -4390,7 +4350,7 @@ description = "NVIDIA Collective Communication Library (NCCL) Runtime" optional = true python-versions = ">=3" groups = ["main"] -markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\" and extra == \"sentence-transformers\" and (python_version <= \"3.11\" or python_version >= \"3.12\")" +markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\" and extra == \"sentence-transformers\"" files = [ {file = "nvidia_nccl_cu12-2.21.5-py3-none-manylinux2014_x86_64.whl", hash = "sha256:8579076d30a8c24988834445f8d633c697d42397e92ffc3f63fa26766d25e0a0"}, ] @@ -4402,7 +4362,7 @@ description = "Nvidia JIT LTO Library" optional = true python-versions = ">=3" groups = ["main"] -markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\" and extra == \"sentence-transformers\" and (python_version <= \"3.11\" or python_version >= \"3.12\")" +markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\" and extra == \"sentence-transformers\"" files = [ {file = "nvidia_nvjitlink_cu12-12.4.127-py3-none-manylinux2014_aarch64.whl", hash = "sha256:4abe7fef64914ccfa909bc2ba39739670ecc9e820c83ccc7a6ed414122599b83"}, {file = "nvidia_nvjitlink_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl", hash = "sha256:06b3b9b25bf3f8af351d664978ca26a16d2c5127dbd53c0497e28d1fb9611d57"}, @@ -4416,7 +4376,7 @@ description = "NVIDIA Tools Extension" optional = true python-versions = ">=3" groups = ["main"] -markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\" and extra == \"sentence-transformers\" and (python_version <= \"3.11\" or python_version >= \"3.12\")" +markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\" and extra == \"sentence-transformers\"" files = [ {file = "nvidia_nvtx_cu12-12.4.127-py3-none-manylinux2014_aarch64.whl", hash = "sha256:7959ad635db13edf4fc65c06a6e9f9e55fc2f92596db928d169c0bb031e88ef3"}, {file = "nvidia_nvtx_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl", hash = "sha256:781e950d9b9f60d8241ccea575b32f5105a5baf4c2351cab5256a24869f12a1a"}, @@ -4430,7 +4390,7 @@ description = "The official Python library for the openai API" optional = true python-versions = ">=3.8" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"openai\"" +markers = "extra == \"openai\"" files = [ {file = "openai-1.65.1-py3-none-any.whl", hash = "sha256:396652a6452dd42791b3ad8a3aab09b1feb7c1c4550a672586fb300760a8e204"}, {file = "openai-1.65.1.tar.gz", hash = "sha256:9d9370a20d2b8c3ce319fd2194c2eef5eab59effbcc5b04ff480977edc530fba"}, @@ -4457,7 +4417,7 @@ description = "Fast, correct Python JSON library supporting dataclasses, datetim optional = true python-versions = ">=3.8" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"ranx\" and python_version >= \"3.10\"" +markers = "python_version >= \"3.10\" and extra == \"ranx\"" files = [ {file = "orjson-3.10.15-cp310-cp310-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:552c883d03ad185f720d0c09583ebde257e41b9521b74ff40e08b7dec4559c04"}, {file = "orjson-3.10.15-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:616e3e8d438d02e4854f70bfdc03a6bcdb697358dbaa6bcd19cbe24d24ece1f8"}, @@ -4551,7 +4511,7 @@ files = [ {file = "packaging-24.2-py3-none-any.whl", hash = "sha256:09abb1bccd265c01f4a3aa3f7a7db064b36514d2cba19a2f694fe6150451a759"}, {file = "packaging-24.2.tar.gz", hash = "sha256:c228a6dc5e932d346bc5739379109d49e8853dd8223571c7c5b55260edc0b97f"}, ] -markers = {main = "(python_version <= \"3.11\" or python_version >= \"3.12\") and (extra == \"sentence-transformers\" or extra == \"cohere\" or extra == \"vertexai\" or extra == \"ranx\") and (extra == \"sentence-transformers\" or extra == \"cohere\" or extra == \"vertexai\" or python_version >= \"3.10\")", dev = "python_version <= \"3.11\" or python_version >= \"3.12\"", docs = "python_version <= \"3.11\" or python_version >= \"3.12\""} +markers = {main = "(python_version < \"3.12\" or extra == \"ranx\" or extra == \"sentence-transformers\" or extra == \"cohere\" or extra == \"vertexai\") and (python_version >= \"3.10\" or extra == \"sentence-transformers\" or extra == \"cohere\" or extra == \"vertexai\") and (extra == \"sentence-transformers\" or extra == \"cohere\" or extra == \"vertexai\" or extra == \"ranx\")"} [[package]] name = "pandas" @@ -4560,7 +4520,7 @@ description = "Powerful data structures for data analysis, time series, and stat optional = true python-versions = ">=3.9" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"ranx\" and python_version >= \"3.10\"" +markers = "python_version >= \"3.10\" and extra == \"ranx\"" files = [ {file = "pandas-2.2.3-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:1948ddde24197a0f7add2bdc4ca83bf2b1ef84a1bc8ccffd95eda17fd836ecb5"}, {file = "pandas-2.2.3-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:381175499d3802cde0eabbaf6324cce0c4f5d52ca6f8c377c29ad442f50f6348"}, @@ -4608,8 +4568,8 @@ files = [ [package.dependencies] numpy = [ - {version = ">=1.22.4", markers = "python_version < \"3.11\""}, {version = ">=1.23.2", markers = "python_version == \"3.11\""}, + {version = ">=1.22.4", markers = "python_version < \"3.11\""}, {version = ">=1.26.0", markers = "python_version >= \"3.12\""}, ] python-dateutil = ">=2.8.2" @@ -4648,7 +4608,6 @@ description = "Utilities for writing pandoc filters in python" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" groups = ["docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "pandocfilters-1.5.1-py2.py3-none-any.whl", hash = "sha256:93be382804a9cdb0a7267585f157e5d1731bbe5545a85b268d6f5fe6232de2bc"}, {file = "pandocfilters-1.5.1.tar.gz", hash = "sha256:002b4a555ee4ebc03f8b66307e287fa492e4a77b4ea14d3f934328297bb4939e"}, @@ -4661,7 +4620,6 @@ description = "A Python Parser" optional = false python-versions = ">=3.6" groups = ["dev", "docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "parso-0.8.4-py2.py3-none-any.whl", hash = "sha256:a418670a20291dacd2dddc80c377c5c3791378ee1e8d12bffc35420643d43f18"}, {file = "parso-0.8.4.tar.gz", hash = "sha256:eb3a7b58240fb99099a345571deecc0f9540ea5f4dd2fe14c2a99d6b281ab92d"}, @@ -4678,7 +4636,6 @@ description = "Utility library for gitignore style pattern matching of file path optional = false python-versions = ">=3.8" groups = ["dev"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "pathspec-0.12.1-py3-none-any.whl", hash = "sha256:a0d503e138a4c123b27490a4f7beda6a01c6f288df0e4a8b79c7eb0dc7b4cc08"}, {file = "pathspec-0.12.1.tar.gz", hash = "sha256:a482d51503a1ab33b1c67a6c3813a26953dbdc71c31dacaef9a838c4e29f5712"}, @@ -4691,7 +4648,7 @@ description = "Pexpect allows easy control of interactive console applications." optional = false python-versions = "*" groups = ["dev", "docs"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and sys_platform != \"win32\"" +markers = "sys_platform != \"win32\"" files = [ {file = "pexpect-4.9.0-py2.py3-none-any.whl", hash = "sha256:7236d1e080e4936be2dc3e326cec0af72acf9212a7e1d060210e70a47e253523"}, {file = "pexpect-4.9.0.tar.gz", hash = "sha256:ee7d41123f3c9911050ea2c2dac107568dc43b2d3b0c7557a33212c398ead30f"}, @@ -4707,7 +4664,7 @@ description = "Python Imaging Library (Fork)" optional = true python-versions = ">=3.9" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and (extra == \"sentence-transformers\" or extra == \"ranx\") and (extra == \"sentence-transformers\" or python_version >= \"3.10\")" +markers = "(python_version < \"3.12\" or extra == \"ranx\" or extra == \"sentence-transformers\") and (python_version >= \"3.10\" or extra == \"sentence-transformers\") and (extra == \"sentence-transformers\" or extra == \"ranx\")" files = [ {file = "pillow-11.1.0-cp310-cp310-macosx_10_10_x86_64.whl", hash = "sha256:e1abe69aca89514737465752b4bcaf8016de61b3be1397a8fc260ba33321b3a8"}, {file = "pillow-11.1.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:c640e5a06869c75994624551f45e5506e4256562ead981cce820d5ab39ae2192"}, @@ -4787,7 +4744,7 @@ docs = ["furo", "olefile", "sphinx (>=8.1)", "sphinx-copybutton", "sphinx-inline fpx = ["olefile"] mic = ["olefile"] tests = ["check-manifest", "coverage (>=7.4.2)", "defusedxml", "markdown2", "olefile", "packaging", "pyroma", "pytest", "pytest-cov", "pytest-timeout", "trove-classifiers (>=2024.10.12)"] -typing = ["typing-extensions"] +typing = ["typing-extensions ; python_version < \"3.10\""] xmp = ["defusedxml"] [[package]] @@ -4797,7 +4754,6 @@ description = "A small Python package for determining appropriate platform-speci optional = false python-versions = ">=3.8" groups = ["dev", "docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "platformdirs-4.3.6-py3-none-any.whl", hash = "sha256:73e575e1408ab8103900836b97580d5307456908a03e92031bab39e4554cc3fb"}, {file = "platformdirs-4.3.6.tar.gz", hash = "sha256:357fb2acbc885b0419afd3ce3ed34564c13c9b95c89360cd9563f73aa5e2b907"}, @@ -4815,7 +4771,6 @@ description = "plugin and hook calling mechanisms for python" optional = false python-versions = ">=3.8" groups = ["dev"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "pluggy-1.5.0-py3-none-any.whl", hash = "sha256:44e1ad92c8ca002de6377e165f3e0f1be63266ab4d554740532335b9d75ea669"}, {file = "pluggy-1.5.0.tar.gz", hash = "sha256:2cffa88e94fdc978c4c574f15f9e59b7f4201d439195c3715ca9e2486f1d0cf1"}, @@ -4832,7 +4787,6 @@ description = "Python Lex & Yacc" optional = false python-versions = "*" groups = ["main"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "ply-3.11-py2.py3-none-any.whl", hash = "sha256:096f9b8350b65ebd2fd1346b12452efe5b9607f7482813ffca50c22722a807ce"}, {file = "ply-3.11.tar.gz", hash = "sha256:00c7c1aaa88358b9c765b6d3000c6eec0ba42abca5351b095321aef446081da3"}, @@ -4845,7 +4799,6 @@ description = "A framework for managing and maintaining multi-language pre-commi optional = false python-versions = ">=3.9" groups = ["dev"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "pre_commit-4.1.0-py2.py3-none-any.whl", hash = "sha256:d29e7cb346295bcc1cc75fc3e92e343495e3ea0196c9ec6ba53f49f10ab6ae7b"}, {file = "pre_commit-4.1.0.tar.gz", hash = "sha256:ae3f018575a588e30dfddfab9a05448bfbd6b73d78709617b5a2b853549716d4"}, @@ -4865,7 +4818,6 @@ description = "Library for building powerful interactive command lines in Python optional = false python-versions = ">=3.8.0" groups = ["dev", "docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "prompt_toolkit-3.0.50-py3-none-any.whl", hash = "sha256:9b6427eb19e479d98acff65196a307c555eb567989e6d88ebbb1b509d9779198"}, {file = "prompt_toolkit-3.0.50.tar.gz", hash = "sha256:544748f3860a2623ca5cd6d2795e7a14f3d0e1c3c9728359013f79877fc89bab"}, @@ -4881,7 +4833,7 @@ description = "Accelerated property cache" optional = true python-versions = ">=3.9" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"voyageai\"" +markers = "extra == \"voyageai\"" files = [ {file = "propcache-0.3.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:efa44f64c37cc30c9f05932c740a8b40ce359f51882c70883cc95feac842da4d"}, {file = "propcache-0.3.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:2383a17385d9800b6eb5855c2f05ee550f803878f344f58b6e194de08b96352c"}, @@ -4990,7 +4942,7 @@ description = "Beautiful, Pythonic protocol buffers" optional = true python-versions = ">=3.7" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"vertexai\"" +markers = "extra == \"vertexai\"" files = [ {file = "proto_plus-1.26.0-py3-none-any.whl", hash = "sha256:bf2dfaa3da281fc3187d12d224c707cb57214fb2c22ba854eb0c105a3fb2d4d7"}, {file = "proto_plus-1.26.0.tar.gz", hash = "sha256:6e93d5f5ca267b54300880fff156b6a3386b3fa3f43b1da62e680fc0c586ef22"}, @@ -5009,7 +4961,7 @@ description = "" optional = true python-versions = ">=3.8" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"vertexai\"" +markers = "extra == \"vertexai\"" files = [ {file = "protobuf-5.29.3-cp310-abi3-win32.whl", hash = "sha256:3ea51771449e1035f26069c4c7fd51fba990d07bc55ba80701c78f886bf9c888"}, {file = "protobuf-5.29.3-cp310-abi3-win_amd64.whl", hash = "sha256:a4fa6f80816a9a0678429e84973f2f98cbc218cca434abe8db2ad0bffc98503a"}, @@ -5031,7 +4983,6 @@ description = "Cross-platform lib for process and system monitoring in Python. optional = false python-versions = ">=3.6" groups = ["dev", "docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "psutil-7.0.0-cp36-abi3-macosx_10_9_x86_64.whl", hash = "sha256:101d71dc322e3cffd7cea0650b09b3d08b8e7c4109dd6809fe452dfd00e58b25"}, {file = "psutil-7.0.0-cp36-abi3-macosx_11_0_arm64.whl", hash = "sha256:39db632f6bb862eeccf56660871433e111b6ea58f2caea825571951d4b6aa3da"}, @@ -5056,7 +5007,7 @@ description = "Run a subprocess in a pseudo terminal" optional = false python-versions = "*" groups = ["dev", "docs"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and sys_platform != \"win32\"" +markers = "sys_platform != \"win32\"" files = [ {file = "ptyprocess-0.7.0-py2.py3-none-any.whl", hash = "sha256:4b41f3967fce3af57cc7e94b888626c18bf37a083e3651ca8feeb66d492fef35"}, {file = "ptyprocess-0.7.0.tar.gz", hash = "sha256:5c5d0a3b48ceee0b48485e0c26037c0acd7d29765ca3fbb5cb3831d347423220"}, @@ -5069,7 +5020,6 @@ description = "Safely evaluate AST nodes without side effects" optional = false python-versions = "*" groups = ["dev", "docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "pure_eval-0.2.3-py3-none-any.whl", hash = "sha256:1db8e35b67b3d218d818ae653e27f06c3aa420901fa7b081ca98cbedc874e0d0"}, {file = "pure_eval-0.2.3.tar.gz", hash = "sha256:5f4e983f40564c576c7c8635ae88db5956bb2229d7e9237d03b3c0b0190eaf42"}, @@ -5085,7 +5035,7 @@ description = "Pure-Python implementation of ASN.1 types and DER/BER/CER codecs optional = true python-versions = ">=3.8" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"vertexai\"" +markers = "extra == \"vertexai\"" files = [ {file = "pyasn1-0.6.1-py3-none-any.whl", hash = "sha256:0d632f46f2ba09143da3a8afe9e33fb6f92fa2320ab7e886e2d0f7672af84629"}, {file = "pyasn1-0.6.1.tar.gz", hash = "sha256:6f580d2bdd84365380830acf45550f2511469f673cb4a5ae3857a3170128b034"}, @@ -5098,7 +5048,7 @@ description = "A collection of ASN.1-based protocols modules" optional = true python-versions = ">=3.8" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"vertexai\"" +markers = "extra == \"vertexai\"" files = [ {file = "pyasn1_modules-0.4.1-py3-none-any.whl", hash = "sha256:49bfa96b45a292b711e986f222502c1c9a5e1f4e568fc30e2574a6c7d07838fd"}, {file = "pyasn1_modules-0.4.1.tar.gz", hash = "sha256:c28e2dbf9c06ad61c71a075c7e0f9fd0f1b0bb2d2ad4377f240d33ac2ab60a7c"}, @@ -5118,7 +5068,7 @@ files = [ {file = "pycparser-2.22-py3-none-any.whl", hash = "sha256:c3702b6d3dd8c7abc1afa565d7e63d53a1d0bd86cdc24edd75470f4de499cfcc"}, {file = "pycparser-2.22.tar.gz", hash = "sha256:491c8be9c040f5390f5bf44a5b07752bd07f56edf992381b05c701439eec10f6"}, ] -markers = {dev = "(implementation_name == \"pypy\" or platform_python_implementation != \"PyPy\") and (python_version <= \"3.11\" or python_version >= \"3.12\")", docs = "(python_version <= \"3.11\" or python_version >= \"3.12\") and implementation_name == \"pypy\""} +markers = {dev = "implementation_name == \"pypy\" or platform_python_implementation != \"PyPy\"", docs = "implementation_name == \"pypy\""} [[package]] name = "pydantic" @@ -5127,7 +5077,6 @@ description = "Data validation using Python type hints" optional = false python-versions = ">=3.8" groups = ["main"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "pydantic-2.10.6-py3-none-any.whl", hash = "sha256:427d664bf0b8a2b34ff5dd0f5a18df00591adcee7198fbd71981054cef37b584"}, {file = "pydantic-2.10.6.tar.gz", hash = "sha256:ca5daa827cce33de7a42be142548b0096bf05a7e7b365aebfa5f8eeec7128236"}, @@ -5140,7 +5089,7 @@ typing-extensions = ">=4.12.2" [package.extras] email = ["email-validator (>=2.0.0)"] -timezone = ["tzdata"] +timezone = ["tzdata ; python_version >= \"3.9\" and platform_system == \"Windows\""] [[package]] name = "pydantic-core" @@ -5149,7 +5098,6 @@ description = "Core functionality for Pydantic validation and serialization" optional = false python-versions = ">=3.8" groups = ["main"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "pydantic_core-2.27.2-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:2d367ca20b2f14095a8f4fa1210f5a7b78b8a20009ecced6b12818f455b1e9fa"}, {file = "pydantic_core-2.27.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:491a2b73db93fab69731eaee494f320faa4e093dbed776be1a829c2eb222c34c"}, @@ -5263,7 +5211,6 @@ description = "Bootstrap-based Sphinx theme from the PyData community" optional = false python-versions = ">=3.9" groups = ["docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "pydata_sphinx_theme-0.15.4-py3-none-any.whl", hash = "sha256:2136ad0e9500d0949f96167e63f3e298620040aea8f9c74621959eda5d4cf8e6"}, {file = "pydata_sphinx_theme-0.15.4.tar.gz", hash = "sha256:7762ec0ac59df3acecf49fd2f889e1b4565dbce8b88b2e29ee06fdd90645a06d"}, @@ -5297,7 +5244,7 @@ files = [ {file = "pygments-2.19.1-py3-none-any.whl", hash = "sha256:9ea1544ad55cecf4b8242fab6dd35a93bbce657034b0611ee383099054ab6d8c"}, {file = "pygments-2.19.1.tar.gz", hash = "sha256:61c16d2a8576dc0649d9f39e089b5f02bcd27fba10d8fb4dcc28173f7a45151f"}, ] -markers = {main = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"ranx\" and python_version >= \"3.10\"", dev = "python_version <= \"3.11\" or python_version >= \"3.12\"", docs = "python_version <= \"3.11\" or python_version >= \"3.12\""} +markers = {main = "python_version >= \"3.10\" and extra == \"ranx\""} [package.extras] windows-terminal = ["colorama (>=0.4.6)"] @@ -5309,7 +5256,6 @@ description = "python code static checker" optional = false python-versions = ">=3.9.0" groups = ["dev"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "pylint-3.3.4-py3-none-any.whl", hash = "sha256:289e6a1eb27b453b08436478391a48cd53bb0efb824873f949e709350f3de018"}, {file = "pylint-3.3.4.tar.gz", hash = "sha256:74ae7a38b177e69a9b525d0794bd8183820bfa7eb68cc1bee6e8ed22a42be4ce"}, @@ -5320,7 +5266,7 @@ astroid = ">=3.3.8,<=3.4.0-dev0" colorama = {version = ">=0.4.5", markers = "sys_platform == \"win32\""} dill = [ {version = ">=0.2", markers = "python_version < \"3.11\""}, - {version = ">=0.3.6", markers = "python_version >= \"3.11\" and python_version < \"3.12\""}, + {version = ">=0.3.6", markers = "python_version >= \"3.11\""}, {version = ">=0.3.7", markers = "python_version >= \"3.12\""}, ] isort = ">=4.2.5,<5.13.0 || >5.13.0,<7" @@ -5341,7 +5287,7 @@ description = "pyparsing module - Classes and methods to define and execute pars optional = true python-versions = ">=3.9" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"ranx\" and python_version >= \"3.10\"" +markers = "python_version >= \"3.10\" and extra == \"ranx\"" files = [ {file = "pyparsing-3.2.1-py3-none-any.whl", hash = "sha256:506ff4f4386c4cec0590ec19e6302d3aedb992fdc02c761e90416f158dacf8e1"}, {file = "pyparsing-3.2.1.tar.gz", hash = "sha256:61980854fd66de3a90028d679a954d5f2623e83144b5afe5ee86f43d762e5f0a"}, @@ -5357,7 +5303,7 @@ description = "A python implementation of GNU readline." optional = false python-versions = ">=3.8" groups = ["main"] -markers = "sys_platform == \"win32\" and (python_version <= \"3.11\" or python_version >= \"3.12\")" +markers = "sys_platform == \"win32\"" files = [ {file = "pyreadline3-3.5.4-py3-none-any.whl", hash = "sha256:eaf8e6cc3c49bcccf145fc6067ba8643d1df34d604a1ec0eccbf7a18e6d3fae6"}, {file = "pyreadline3-3.5.4.tar.gz", hash = "sha256:8d57d53039a1c75adba8e50dd3d992b28143480816187ea5efbd5c78e6c885b7"}, @@ -5373,7 +5319,6 @@ description = "pytest: simple powerful testing with Python" optional = false python-versions = ">=3.8" groups = ["dev"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "pytest-8.3.4-py3-none-any.whl", hash = "sha256:50e16d954148559c9a74109af1eaf0c945ba2d8f30f0a3d3335edde19788b6f6"}, {file = "pytest-8.3.4.tar.gz", hash = "sha256:965370d062bce11e73868e0335abac31b4d3de0e82f4007408d242b4f8610761"}, @@ -5397,7 +5342,6 @@ description = "Pytest support for asyncio" optional = false python-versions = ">=3.8" groups = ["dev"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "pytest_asyncio-0.23.8-py3-none-any.whl", hash = "sha256:50265d892689a5faefb84df80819d1ecef566eb3549cf915dfb33569359d1ce2"}, {file = "pytest_asyncio-0.23.8.tar.gz", hash = "sha256:759b10b33a6dc61cce40a8bd5205e302978bbbcc00e279a8b61d9a6a3c82e4d3"}, @@ -5417,7 +5361,6 @@ description = "pytest xdist plugin for distributed testing, most importantly acr optional = false python-versions = ">=3.8" groups = ["dev"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "pytest_xdist-3.6.1-py3-none-any.whl", hash = "sha256:9ed4adfb68a016610848639bb7e02c9352d5d9f03d04809919e2dafc3be4cca7"}, {file = "pytest_xdist-3.6.1.tar.gz", hash = "sha256:ead156a4db231eec769737f57668ef58a2084a34b2e55c4a8fa20d861107300d"}, @@ -5444,7 +5387,6 @@ files = [ {file = "python-dateutil-2.9.0.post0.tar.gz", hash = "sha256:37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3"}, {file = "python_dateutil-2.9.0.post0-py2.py3-none-any.whl", hash = "sha256:a8b2bc7bffae282281c8140a97d3aa9c14da0b136dfe83f850eea9a5f7470427"}, ] -markers = {main = "(python_version <= \"3.11\" or python_version >= \"3.12\") and (extra == \"vertexai\" or extra == \"mistralai\" or extra == \"bedrock\" or extra == \"ranx\") and (extra == \"vertexai\" or extra == \"mistralai\" or extra == \"bedrock\" or python_version >= \"3.10\")", dev = "python_version <= \"3.11\" or python_version >= \"3.12\"", docs = "python_version <= \"3.11\" or python_version >= \"3.12\""} [package.dependencies] six = ">=1.5" @@ -5456,7 +5398,6 @@ description = "Read key-value pairs from a .env file and set them as environment optional = false python-versions = ">=3.8" groups = ["dev"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "python-dotenv-1.0.1.tar.gz", hash = "sha256:e324ee90a023d808f1959c46bcbc04446a10ced277783dc6ee09987c37ec10ca"}, {file = "python_dotenv-1.0.1-py3-none-any.whl", hash = "sha256:f7b63ef50f1b690dddf550d03497b66d609393b40b564ed0d674909a68ebf16a"}, @@ -5472,7 +5413,6 @@ description = "Universally unique lexicographically sortable identifier" optional = false python-versions = ">=3.9" groups = ["main"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "python_ulid-3.0.0-py3-none-any.whl", hash = "sha256:e4c4942ff50dbd79167ad01ac725ec58f924b4018025ce22c858bfcff99a5e31"}, {file = "python_ulid-3.0.0.tar.gz", hash = "sha256:e50296a47dc8209d28629a22fc81ca26c00982c78934bd7766377ba37ea49a9f"}, @@ -5488,7 +5428,7 @@ description = "World timezone definitions, modern and historical" optional = true python-versions = "*" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"ranx\" and python_version >= \"3.10\"" +markers = "python_version >= \"3.10\" and extra == \"ranx\"" files = [ {file = "pytz-2025.1-py2.py3-none-any.whl", hash = "sha256:89dd22dca55b46eac6eda23b2d72721bf1bdfef212645d81513ef5d03038de57"}, {file = "pytz-2025.1.tar.gz", hash = "sha256:c2db42be2a2518b28e65f9207c4d05e6ff547d1efa4086469ef855e4ab70178e"}, @@ -5521,7 +5461,7 @@ files = [ {file = "pywin32-308-cp39-cp39-win32.whl", hash = "sha256:7873ca4dc60ab3287919881a7d4f88baee4a6e639aa6962de25a98ba6b193341"}, {file = "pywin32-308-cp39-cp39-win_amd64.whl", hash = "sha256:71b3322d949b4cc20776436a9c9ba0eeedcbc9c650daa536df63f0ff111bb920"}, ] -markers = {dev = "(python_version <= \"3.11\" or python_version >= \"3.12\") and sys_platform == \"win32\"", docs = "sys_platform == \"win32\" and platform_python_implementation != \"PyPy\" and (python_version <= \"3.11\" or python_version >= \"3.12\")"} +markers = {dev = "sys_platform == \"win32\"", docs = "sys_platform == \"win32\" and platform_python_implementation != \"PyPy\""} [[package]] name = "pyyaml" @@ -5530,7 +5470,6 @@ description = "YAML parser and emitter for Python" optional = false python-versions = ">=3.8" groups = ["main", "dev", "docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "PyYAML-6.0.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:0a9a2848a5b7feac301353437eb7d5957887edbf81d56e903999a75a3d743086"}, {file = "PyYAML-6.0.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:29717114e51c84ddfba879543fb232a6ed60086602313ca38cce623c1d62cfbf"}, @@ -5594,7 +5533,6 @@ description = "Python bindings for 0MQ" optional = false python-versions = ">=3.7" groups = ["dev", "docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "pyzmq-26.2.1-cp310-cp310-macosx_10_15_universal2.whl", hash = "sha256:f39d1227e8256d19899d953e6e19ed2ccb689102e6d85e024da5acf410f301eb"}, {file = "pyzmq-26.2.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:a23948554c692df95daed595fdd3b76b420a4939d7a8a28d6d7dea9711878641"}, @@ -5717,7 +5655,7 @@ description = "ranx: A Blazing-Fast Python Library for Ranking Evaluation, Compa optional = true python-versions = ">=3.8" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"ranx\" and python_version >= \"3.10\"" +markers = "python_version >= \"3.10\" and extra == \"ranx\"" files = [ {file = "ranx-0.3.20-py3-none-any.whl", hash = "sha256:e056e4d5981b0328b045868cc7064fc57a545f36009fbe9bb602295ec33335de"}, {file = "ranx-0.3.20.tar.gz", hash = "sha256:8afc6f2042c40645e5d1fd80c35ed75a885e18bd2db7e95cc7ec32a0b41e59ea"}, @@ -5745,7 +5683,6 @@ description = "Python client for Redis database and key-value store" optional = false python-versions = ">=3.8" groups = ["main"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "redis-5.2.1-py3-none-any.whl", hash = "sha256:ee7e1056b9aea0f04c6c2ed59452947f34c4940ee025f5dd83e6a6418b6989e4"}, {file = "redis-5.2.1.tar.gz", hash = "sha256:16f2e22dff21d5125e8481515e386711a34cbec50f0e44413dd7d9c060a54e0f"}, @@ -5765,7 +5702,6 @@ description = "JSON Referencing + Python" optional = false python-versions = ">=3.9" groups = ["dev", "docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "referencing-0.36.2-py3-none-any.whl", hash = "sha256:e8699adbbf8b5c7de96d8ffa0eb5c158b3beafce084968e2ea8bb08c6794dcd0"}, {file = "referencing-0.36.2.tar.gz", hash = "sha256:df2e89862cd09deabbdba16944cc3f10feb6b3e6f18e902f7cc25609a34775aa"}, @@ -5783,7 +5719,7 @@ description = "Alternative regular expression module, to replace re." optional = true python-versions = ">=3.8" groups = ["main"] -markers = "(extra == \"nltk\" or extra == \"sentence-transformers\") and (python_version <= \"3.11\" or python_version >= \"3.12\")" +markers = "extra == \"nltk\" or extra == \"sentence-transformers\"" files = [ {file = "regex-2024.11.6-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:ff590880083d60acc0433f9c3f713c51f7ac6ebb9adf889c79a261ecf541aa91"}, {file = "regex-2024.11.6-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:658f90550f38270639e83ce492f27d2c8d2cd63805c65a13a14d36ca126753f0"}, @@ -5892,7 +5828,7 @@ files = [ {file = "requests-2.32.3-py3-none-any.whl", hash = "sha256:70761cfe03c773ceb22aa2f671b4757976145175cdfca038c02654d061d6dcc6"}, {file = "requests-2.32.3.tar.gz", hash = "sha256:55365417734eb18255590a9ff9eb97e9e1da868d4ccd6402399eaf68af20a760"}, ] -markers = {main = "(python_version <= \"3.11\" or python_version >= \"3.12\") and (extra == \"sentence-transformers\" or extra == \"cohere\" or extra == \"vertexai\" or extra == \"voyageai\" or extra == \"ranx\") and (extra == \"sentence-transformers\" or extra == \"cohere\" or extra == \"vertexai\" or extra == \"voyageai\" or python_version >= \"3.10\")", dev = "python_version <= \"3.11\" or python_version >= \"3.12\"", docs = "python_version <= \"3.11\" or python_version >= \"3.12\""} +markers = {main = "(python_version < \"3.12\" or extra == \"ranx\" or extra == \"sentence-transformers\" or extra == \"cohere\" or extra == \"vertexai\" or extra == \"voyageai\") and (python_version >= \"3.10\" or extra == \"sentence-transformers\" or extra == \"cohere\" or extra == \"vertexai\" or extra == \"voyageai\") and (extra == \"sentence-transformers\" or extra == \"cohere\" or extra == \"vertexai\" or extra == \"voyageai\" or extra == \"ranx\")"} [package.dependencies] certifi = ">=2017.4.17" @@ -5911,7 +5847,7 @@ description = "Render rich text, tables, progress bars, syntax highlighting, mar optional = true python-versions = ">=3.8.0" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"ranx\" and python_version >= \"3.10\"" +markers = "python_version >= \"3.10\" and extra == \"ranx\"" files = [ {file = "rich-13.9.4-py3-none-any.whl", hash = "sha256:6049d5e6ec054bf2779ab3358186963bac2ea89175919d699e378b99738c2a90"}, {file = "rich-13.9.4.tar.gz", hash = "sha256:439594978a49a09530cff7ebc4b5c7103ef57baf48d5ea3184f21d9a2befa098"}, @@ -5932,7 +5868,6 @@ description = "Python bindings to Rust's persistent data structures (rpds)" optional = false python-versions = ">=3.9" groups = ["dev", "docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "rpds_py-0.23.1-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:2a54027554ce9b129fc3d633c92fa33b30de9f08bc61b32c053dc9b537266fed"}, {file = "rpds_py-0.23.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:b5ef909a37e9738d146519657a1aab4584018746a18f71c692f2f22168ece40c"}, @@ -6046,7 +5981,7 @@ description = "Pure-Python RSA implementation" optional = true python-versions = ">=3.6,<4" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"vertexai\"" +markers = "extra == \"vertexai\"" files = [ {file = "rsa-4.9-py3-none-any.whl", hash = "sha256:90260d9058e514786967344d0ef75fa8727eed8a7d2e43ce9f4bcf1b536174f7"}, {file = "rsa-4.9.tar.gz", hash = "sha256:e38464a49c6c85d7f1351b0126661487a7e0a14a50f1675ec50eb34d4f20ef21"}, @@ -6062,7 +5997,7 @@ description = "An Amazon S3 Transfer Manager" optional = true python-versions = ">=3.8" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"bedrock\"" +markers = "extra == \"bedrock\"" files = [ {file = "s3transfer-0.11.3-py3-none-any.whl", hash = "sha256:ca855bdeb885174b5ffa95b9913622459d4ad8e331fc98eb01e6d5eb6a30655d"}, {file = "s3transfer-0.11.3.tar.gz", hash = "sha256:edae4977e3a122445660c7c114bba949f9d191bae3b34a096f18a1c8c354527a"}, @@ -6081,7 +6016,7 @@ description = "" optional = true python-versions = ">=3.7" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"sentence-transformers\"" +markers = "extra == \"sentence-transformers\"" files = [ {file = "safetensors-0.5.3-cp38-abi3-macosx_10_12_x86_64.whl", hash = "sha256:bd20eb133db8ed15b40110b7c00c6df51655a2998132193de2f75f72d99c7073"}, {file = "safetensors-0.5.3-cp38-abi3-macosx_11_0_arm64.whl", hash = "sha256:21d01c14ff6c415c485616b8b0bf961c46b3b343ca59110d38d744e577f9cce7"}, @@ -6120,7 +6055,7 @@ description = "A set of python modules for machine learning and data mining" optional = true python-versions = ">=3.9" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"sentence-transformers\"" +markers = "extra == \"sentence-transformers\"" files = [ {file = "scikit_learn-1.6.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:d056391530ccd1e501056160e3c9673b4da4805eb67eb2bdf4e983e1f9c9204e"}, {file = "scikit_learn-1.6.1-cp310-cp310-macosx_12_0_arm64.whl", hash = "sha256:0c8d036eb937dbb568c6242fa598d551d88fb4399c0344d95c001980ec1c7d36"}, @@ -6176,7 +6111,7 @@ description = "Fundamental algorithms for scientific computing in Python" optional = true python-versions = ">=3.9" groups = ["main"] -markers = "extra == \"sentence-transformers\" and python_version < \"3.10\"" +markers = "python_version == \"3.9\" and extra == \"sentence-transformers\"" files = [ {file = "scipy-1.13.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:20335853b85e9a49ff7572ab453794298bcf0354d8068c5f6775a0eabf350aca"}, {file = "scipy-1.13.1-cp310-cp310-macosx_12_0_arm64.whl", hash = "sha256:d605e9c23906d1994f55ace80e0125c587f96c020037ea6aa98d01b4bd2e222f"}, @@ -6220,7 +6155,7 @@ description = "Fundamental algorithms for scientific computing in Python" optional = true python-versions = ">=3.10" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and (extra == \"sentence-transformers\" or extra == \"ranx\") and (python_version >= \"3.10\" or extra == \"sentence-transformers\")" +markers = "python_version >= \"3.10\" and (extra == \"ranx\" or extra == \"sentence-transformers\")" files = [ {file = "scipy-1.15.2-cp310-cp310-macosx_10_13_x86_64.whl", hash = "sha256:a2ec871edaa863e8213ea5df811cd600734f6400b4af272e1c011e69401218e9"}, {file = "scipy-1.15.2-cp310-cp310-macosx_12_0_arm64.whl", hash = "sha256:6f223753c6ea76983af380787611ae1291e3ceb23917393079dcc746ba60cfb5"}, @@ -6276,7 +6211,7 @@ numpy = ">=1.23.5,<2.5" [package.extras] dev = ["cython-lint (>=0.12.2)", "doit (>=0.36.0)", "mypy (==1.10.0)", "pycodestyle", "pydevtool", "rich-click", "ruff (>=0.0.292)", "types-psutil", "typing_extensions"] doc = ["intersphinx_registry", "jupyterlite-pyodide-kernel", "jupyterlite-sphinx (>=0.16.5)", "jupytext", "matplotlib (>=3.5)", "myst-nb", "numpydoc", "pooch", "pydata-sphinx-theme (>=0.15.2)", "sphinx (>=5.0.0,<8.0.0)", "sphinx-copybutton", "sphinx-design (>=0.4.0)"] -test = ["Cython", "array-api-strict (>=2.0,<2.1.1)", "asv", "gmpy2", "hypothesis (>=6.30)", "meson", "mpmath", "ninja", "pooch", "pytest", "pytest-cov", "pytest-timeout", "pytest-xdist", "scikit-umfpack", "threadpoolctl"] +test = ["Cython", "array-api-strict (>=2.0,<2.1.1)", "asv", "gmpy2", "hypothesis (>=6.30)", "meson", "mpmath", "ninja ; sys_platform != \"emscripten\"", "pooch", "pytest", "pytest-cov", "pytest-timeout", "pytest-xdist", "scikit-umfpack", "threadpoolctl"] [[package]] name = "seaborn" @@ -6285,7 +6220,7 @@ description = "Statistical data visualization" optional = true python-versions = ">=3.8" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"ranx\" and python_version >= \"3.10\"" +markers = "python_version >= \"3.10\" and extra == \"ranx\"" files = [ {file = "seaborn-0.13.2-py3-none-any.whl", hash = "sha256:636f8336facf092165e27924f223d3c62ca560b1f2bb5dff7ab7fad265361987"}, {file = "seaborn-0.13.2.tar.gz", hash = "sha256:93e60a40988f4d65e9f4885df477e2fdaff6b73a9ded434c1ab356dd57eefff7"}, @@ -6308,7 +6243,7 @@ description = "State-of-the-Art Text Embeddings" optional = true python-versions = ">=3.9" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"sentence-transformers\"" +markers = "extra == \"sentence-transformers\"" files = [ {file = "sentence_transformers-3.4.1-py3-none-any.whl", hash = "sha256:e026dc6d56801fd83f74ad29a30263f401b4b522165c19386d8bc10dcca805da"}, {file = "sentence_transformers-3.4.1.tar.gz", hash = "sha256:68daa57504ff548340e54ff117bd86c1d2f784b21e0fb2689cf3272b8937b24b"}, @@ -6344,13 +6279,13 @@ files = [ ] [package.extras] -check = ["pytest-checkdocs (>=2.4)", "pytest-ruff (>=0.2.1)", "ruff (>=0.8.0)"] -core = ["importlib_metadata (>=6)", "jaraco.collections", "jaraco.functools (>=4)", "jaraco.text (>=3.7)", "more_itertools", "more_itertools (>=8.8)", "packaging", "packaging (>=24.2)", "platformdirs (>=4.2.2)", "tomli (>=2.0.1)", "wheel (>=0.43.0)"] +check = ["pytest-checkdocs (>=2.4)", "pytest-ruff (>=0.2.1) ; sys_platform != \"cygwin\"", "ruff (>=0.8.0) ; sys_platform != \"cygwin\""] +core = ["importlib_metadata (>=6) ; python_version < \"3.10\"", "jaraco.collections", "jaraco.functools (>=4)", "jaraco.text (>=3.7)", "more_itertools", "more_itertools (>=8.8)", "packaging", "packaging (>=24.2)", "platformdirs (>=4.2.2)", "tomli (>=2.0.1) ; python_version < \"3.11\"", "wheel (>=0.43.0)"] cover = ["pytest-cov"] doc = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "pygments-github-lexers (==0.0.5)", "pyproject-hooks (!=1.1)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-favicon", "sphinx-inline-tabs", "sphinx-lint", "sphinx-notfound-page (>=1,<2)", "sphinx-reredirects", "sphinxcontrib-towncrier", "towncrier (<24.7)"] enabler = ["pytest-enabler (>=2.2)"] -test = ["build[virtualenv] (>=1.0.3)", "filelock (>=3.4.0)", "ini2toml[lite] (>=0.14)", "jaraco.develop (>=7.21)", "jaraco.envs (>=2.2)", "jaraco.path (>=3.7.2)", "jaraco.test (>=5.5)", "packaging (>=24.2)", "pip (>=19.1)", "pyproject-hooks (!=1.1)", "pytest (>=6,!=8.1.*)", "pytest-home (>=0.5)", "pytest-perf", "pytest-subprocess", "pytest-timeout", "pytest-xdist (>=3)", "tomli-w (>=1.0.0)", "virtualenv (>=13.0.0)", "wheel (>=0.44.0)"] -type = ["importlib_metadata (>=7.0.2)", "jaraco.develop (>=7.21)", "mypy (==1.14.*)", "pytest-mypy"] +test = ["build[virtualenv] (>=1.0.3)", "filelock (>=3.4.0)", "ini2toml[lite] (>=0.14)", "jaraco.develop (>=7.21) ; python_version >= \"3.9\" and sys_platform != \"cygwin\"", "jaraco.envs (>=2.2)", "jaraco.path (>=3.7.2)", "jaraco.test (>=5.5)", "packaging (>=24.2)", "pip (>=19.1)", "pyproject-hooks (!=1.1)", "pytest (>=6,!=8.1.*)", "pytest-home (>=0.5)", "pytest-perf ; sys_platform != \"cygwin\"", "pytest-subprocess", "pytest-timeout", "pytest-xdist (>=3)", "tomli-w (>=1.0.0)", "virtualenv (>=13.0.0)", "wheel (>=0.44.0)"] +type = ["importlib_metadata (>=7.0.2) ; python_version < \"3.10\"", "jaraco.develop (>=7.21) ; sys_platform != \"cygwin\"", "mypy (==1.14.*)", "pytest-mypy"] [[package]] name = "shapely" @@ -6359,7 +6294,7 @@ description = "Manipulation and analysis of geometric objects" optional = true python-versions = ">=3.7" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"vertexai\"" +markers = "extra == \"vertexai\"" files = [ {file = "shapely-2.0.7-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:33fb10e50b16113714ae40adccf7670379e9ccf5b7a41d0002046ba2b8f0f691"}, {file = "shapely-2.0.7-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:f44eda8bd7a4bccb0f281264b34bf3518d8c4c9a8ffe69a1a05dabf6e8461147"}, @@ -6423,16 +6358,14 @@ files = [ {file = "six-1.17.0-py2.py3-none-any.whl", hash = "sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274"}, {file = "six-1.17.0.tar.gz", hash = "sha256:ff70335d468e7eb6ec65b95b99d3a2836546063f63acc5171de367e834932a81"}, ] -markers = {main = "(python_version <= \"3.11\" or python_version >= \"3.12\") and (extra == \"vertexai\" or extra == \"mistralai\" or extra == \"bedrock\" or extra == \"ranx\") and (extra == \"vertexai\" or extra == \"mistralai\" or extra == \"bedrock\" or python_version >= \"3.10\")", dev = "python_version <= \"3.11\" or python_version >= \"3.12\"", docs = "python_version <= \"3.11\" or python_version >= \"3.12\""} [[package]] name = "sniffio" version = "1.3.1" description = "Sniff out which async library your code is running under" -optional = true +optional = false python-versions = ">=3.7" groups = ["main"] -markers = "(extra == \"openai\" or extra == \"cohere\" or extra == \"mistralai\") and (python_version <= \"3.11\" or python_version >= \"3.12\")" files = [ {file = "sniffio-1.3.1-py3-none-any.whl", hash = "sha256:2f6da418d1f1e0fddd844478f41680e794e6051915791a034ff65e5f100525a2"}, {file = "sniffio-1.3.1.tar.gz", hash = "sha256:f4324edc670a0f49750a81b895f35c3adb843cca46f0530f79fc1babb23789dc"}, @@ -6445,7 +6378,6 @@ description = "This package provides 29 stemmers for 28 languages generated from optional = false python-versions = "*" groups = ["docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "snowballstemmer-2.2.0-py2.py3-none-any.whl", hash = "sha256:c8e1716e83cc398ae16824e5572ae04e0d9fc2c6b985fb0f900f5f0c96ecba1a"}, {file = "snowballstemmer-2.2.0.tar.gz", hash = "sha256:09b16deb8547d3412ad7b590689584cd0fe25ec8db3be37788be3810cbf19cb1"}, @@ -6462,7 +6394,7 @@ files = [ {file = "soupsieve-2.6-py3-none-any.whl", hash = "sha256:e72c4ff06e4fb6e4b5a9f0f55fe6e81514581fca1515028625d0f299c602ccc9"}, {file = "soupsieve-2.6.tar.gz", hash = "sha256:e2e68417777af359ec65daac1057404a3c8a5455bb8abc36f1a9866ab1a51abb"}, ] -markers = {main = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"ranx\" and python_version >= \"3.10\"", docs = "python_version <= \"3.11\" or python_version >= \"3.12\""} +markers = {main = "python_version >= \"3.10\" and extra == \"ranx\""} [[package]] name = "sphinx" @@ -6471,7 +6403,6 @@ description = "Python documentation generator" optional = false python-versions = ">=3.9" groups = ["docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "sphinx-7.4.7-py3-none-any.whl", hash = "sha256:c2419e2135d11f1951cd994d6eb18a1835bd8fdd8429f9ca375dc1f3281bd239"}, {file = "sphinx-7.4.7.tar.gz", hash = "sha256:242f92a7ea7e6c5b406fdc2615413890ba9f699114a9c09192d7dfead2ee9cfe"}, @@ -6509,7 +6440,6 @@ description = "Add a copy button to each of your code cells." optional = false python-versions = ">=3.7" groups = ["docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "sphinx-copybutton-0.5.2.tar.gz", hash = "sha256:4cf17c82fb9646d1bc9ca92ac280813a3b605d8c421225fd9913154103ee1fbd"}, {file = "sphinx_copybutton-0.5.2-py3-none-any.whl", hash = "sha256:fb543fd386d917746c9a2c50360c7905b605726b9355cd26e9974857afeae06e"}, @@ -6529,7 +6459,6 @@ description = "A sphinx extension for designing beautiful, view size responsive optional = false python-versions = ">=3.8" groups = ["docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "sphinx_design-0.5.0-py3-none-any.whl", hash = "sha256:1af1267b4cea2eedd6724614f19dcc88fe2e15aff65d06b2f6252cee9c4f4c1e"}, {file = "sphinx_design-0.5.0.tar.gz", hash = "sha256:e8e513acea6f92d15c6de3b34e954458f245b8e761b45b63950f65373352ab00"}, @@ -6554,7 +6483,6 @@ description = "Sphinx Extension adding support for custom favicons" optional = false python-versions = ">=3.7" groups = ["docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "sphinx-favicon-1.0.1.tar.gz", hash = "sha256:df796de32125609c1b4a8964db74270ebf4502089c27cd53f542354dc0b57e8e"}, {file = "sphinx_favicon-1.0.1-py3-none-any.whl", hash = "sha256:7c93d6b634cb4c9687ceab67a8526f05d3b02679df94e273e51a43282e6b034c"}, @@ -6575,7 +6503,6 @@ description = "sphinxcontrib-applehelp is a Sphinx extension which outputs Apple optional = false python-versions = ">=3.9" groups = ["docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "sphinxcontrib_applehelp-2.0.0-py3-none-any.whl", hash = "sha256:4cd3f0ec4ac5dd9c17ec65e9ab272c9b867ea77425228e68ecf08d6b28ddbdb5"}, {file = "sphinxcontrib_applehelp-2.0.0.tar.gz", hash = "sha256:2f29ef331735ce958efa4734873f084941970894c6090408b079c61b2e1c06d1"}, @@ -6593,7 +6520,6 @@ description = "sphinxcontrib-devhelp is a sphinx extension which outputs Devhelp optional = false python-versions = ">=3.9" groups = ["docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "sphinxcontrib_devhelp-2.0.0-py3-none-any.whl", hash = "sha256:aefb8b83854e4b0998877524d1029fd3e6879210422ee3780459e28a1f03a8a2"}, {file = "sphinxcontrib_devhelp-2.0.0.tar.gz", hash = "sha256:411f5d96d445d1d73bb5d52133377b4248ec79db5c793ce7dbe59e074b4dd1ad"}, @@ -6611,7 +6537,6 @@ description = "sphinxcontrib-htmlhelp is a sphinx extension which renders HTML h optional = false python-versions = ">=3.9" groups = ["docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "sphinxcontrib_htmlhelp-2.1.0-py3-none-any.whl", hash = "sha256:166759820b47002d22914d64a075ce08f4c46818e17cfc9470a9786b759b19f8"}, {file = "sphinxcontrib_htmlhelp-2.1.0.tar.gz", hash = "sha256:c9e2916ace8aad64cc13a0d233ee22317f2b9025b9cf3295249fa985cc7082e9"}, @@ -6629,7 +6554,6 @@ description = "A sphinx extension which renders display math in HTML via JavaScr optional = false python-versions = ">=3.5" groups = ["docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "sphinxcontrib-jsmath-1.0.1.tar.gz", hash = "sha256:a9925e4a4587247ed2191a22df5f6970656cb8ca2bd6284309578f2153e0c4b8"}, {file = "sphinxcontrib_jsmath-1.0.1-py2.py3-none-any.whl", hash = "sha256:2ec2eaebfb78f3f2078e73666b1415417a116cc848b72e5172e596c871103178"}, @@ -6645,7 +6569,6 @@ description = "sphinxcontrib-qthelp is a sphinx extension which outputs QtHelp d optional = false python-versions = ">=3.9" groups = ["docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "sphinxcontrib_qthelp-2.0.0-py3-none-any.whl", hash = "sha256:b18a828cdba941ccd6ee8445dbe72ffa3ef8cbe7505d8cd1fa0d42d3f2d5f3eb"}, {file = "sphinxcontrib_qthelp-2.0.0.tar.gz", hash = "sha256:4fe7d0ac8fc171045be623aba3e2a8f613f8682731f9153bb2e40ece16b9bbab"}, @@ -6663,7 +6586,6 @@ description = "sphinxcontrib-serializinghtml is a sphinx extension which outputs optional = false python-versions = ">=3.9" groups = ["docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "sphinxcontrib_serializinghtml-2.0.0-py3-none-any.whl", hash = "sha256:6e2cb0eef194e10c27ec0023bfeb25badbbb5868244cf5bc5bdc04e4464bf331"}, {file = "sphinxcontrib_serializinghtml-2.0.0.tar.gz", hash = "sha256:e9d912827f872c029017a53f0ef2180b327c3f7fd23c87229f7a8e8b70031d4d"}, @@ -6681,7 +6603,6 @@ description = "Database Abstraction Library" optional = false python-versions = ">=3.7" groups = ["docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "SQLAlchemy-2.0.38-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:5e1d9e429028ce04f187a9f522818386c8b076723cdbe9345708384f49ebcec6"}, {file = "SQLAlchemy-2.0.38-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:b87a90f14c68c925817423b0424381f0e16d80fc9a1a1046ef202ab25b19a444"}, @@ -6715,16 +6636,27 @@ files = [ {file = "SQLAlchemy-2.0.38-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:5dba1cdb8f319084f5b00d41207b2079822aa8d6a4667c0f369fce85e34b0c86"}, {file = "SQLAlchemy-2.0.38-cp313-cp313-win32.whl", hash = "sha256:eae27ad7580529a427cfdd52c87abb2dfb15ce2b7a3e0fc29fbb63e2ed6f8120"}, {file = "SQLAlchemy-2.0.38-cp313-cp313-win_amd64.whl", hash = "sha256:b335a7c958bc945e10c522c069cd6e5804f4ff20f9a744dd38e748eb602cbbda"}, + {file = "SQLAlchemy-2.0.38-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:40310db77a55512a18827488e592965d3dec6a3f1e3d8af3f8243134029daca3"}, {file = "SQLAlchemy-2.0.38-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3d3043375dd5bbcb2282894cbb12e6c559654c67b5fffb462fda815a55bf93f7"}, + {file = "SQLAlchemy-2.0.38-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:70065dfabf023b155a9c2a18f573e47e6ca709b9e8619b2e04c54d5bcf193178"}, {file = "SQLAlchemy-2.0.38-cp37-cp37m-musllinux_1_2_aarch64.whl", hash = "sha256:c058b84c3b24812c859300f3b5abf300daa34df20d4d4f42e9652a4d1c48c8a4"}, + {file = "SQLAlchemy-2.0.38-cp37-cp37m-musllinux_1_2_x86_64.whl", hash = "sha256:0398361acebb42975deb747a824b5188817d32b5c8f8aba767d51ad0cc7bb08d"}, {file = "SQLAlchemy-2.0.38-cp37-cp37m-win32.whl", hash = "sha256:a2bc4e49e8329f3283d99840c136ff2cd1a29e49b5624a46a290f04dff48e079"}, {file = "SQLAlchemy-2.0.38-cp37-cp37m-win_amd64.whl", hash = "sha256:9cd136184dd5f58892f24001cdce986f5d7e96059d004118d5410671579834a4"}, + {file = "SQLAlchemy-2.0.38-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:665255e7aae5f38237b3a6eae49d2358d83a59f39ac21036413fab5d1e810578"}, + {file = "SQLAlchemy-2.0.38-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:92f99f2623ff16bd4aaf786ccde759c1f676d39c7bf2855eb0b540e1ac4530c8"}, {file = "SQLAlchemy-2.0.38-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:aa498d1392216fae47eaf10c593e06c34476ced9549657fca713d0d1ba5f7248"}, + {file = "SQLAlchemy-2.0.38-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a9afbc3909d0274d6ac8ec891e30210563b2c8bdd52ebbda14146354e7a69373"}, {file = "SQLAlchemy-2.0.38-cp38-cp38-musllinux_1_2_aarch64.whl", hash = "sha256:57dd41ba32430cbcc812041d4de8d2ca4651aeefad2626921ae2a23deb8cd6ff"}, + {file = "SQLAlchemy-2.0.38-cp38-cp38-musllinux_1_2_x86_64.whl", hash = "sha256:3e35d5565b35b66905b79ca4ae85840a8d40d31e0b3e2990f2e7692071b179ca"}, {file = "SQLAlchemy-2.0.38-cp38-cp38-win32.whl", hash = "sha256:f0d3de936b192980209d7b5149e3c98977c3810d401482d05fb6d668d53c1c63"}, {file = "SQLAlchemy-2.0.38-cp38-cp38-win_amd64.whl", hash = "sha256:3868acb639c136d98107c9096303d2d8e5da2880f7706f9f8c06a7f961961149"}, + {file = "SQLAlchemy-2.0.38-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:07258341402a718f166618470cde0c34e4cec85a39767dce4e24f61ba5e667ea"}, + {file = "SQLAlchemy-2.0.38-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:0a826f21848632add58bef4f755a33d45105d25656a0c849f2dc2df1c71f6f50"}, {file = "SQLAlchemy-2.0.38-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:386b7d136919bb66ced64d2228b92d66140de5fefb3c7df6bd79069a269a7b06"}, + {file = "SQLAlchemy-2.0.38-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2f2951dc4b4f990a4b394d6b382accb33141d4d3bd3ef4e2b27287135d6bdd68"}, {file = "SQLAlchemy-2.0.38-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:8bf312ed8ac096d674c6aa9131b249093c1b37c35db6a967daa4c84746bc1bc9"}, + {file = "SQLAlchemy-2.0.38-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:6db316d6e340f862ec059dc12e395d71f39746a20503b124edc255973977b728"}, {file = "SQLAlchemy-2.0.38-cp39-cp39-win32.whl", hash = "sha256:c09a6ea87658695e527104cf857c70f79f14e9484605e205217aae0ec27b45fc"}, {file = "SQLAlchemy-2.0.38-cp39-cp39-win_amd64.whl", hash = "sha256:12f5c9ed53334c3ce719155424dc5407aaa4f6cadeb09c5b627e06abb93933a1"}, {file = "SQLAlchemy-2.0.38-py3-none-any.whl", hash = "sha256:63178c675d4c80def39f1febd625a6333f44c0ba269edd8a468b156394b27753"}, @@ -6767,7 +6699,6 @@ description = "Extract data from python stack frames and tracebacks for informat optional = false python-versions = "*" groups = ["dev", "docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "stack_data-0.6.3-py3-none-any.whl", hash = "sha256:d5558e0c25a4cb0853cddad3d77da9891a08cb85dd9f9f91b9f8cd66e511e695"}, {file = "stack_data-0.6.3.tar.gz", hash = "sha256:836a778de4fec4dcd1dcd89ed8abff8a221f58308462e1c4aa2a3cf30148f0b9"}, @@ -6788,7 +6719,7 @@ description = "Computer algebra system (CAS) in Python" optional = true python-versions = ">=3.8" groups = ["main"] -markers = "extra == \"sentence-transformers\" and (python_version <= \"3.11\" or python_version >= \"3.12\")" +markers = "extra == \"sentence-transformers\"" files = [ {file = "sympy-1.13.1-py3-none-any.whl", hash = "sha256:db36cdc64bf61b9b24578b6f7bab1ecdd2452cf008f34faa33776680c26d66f8"}, {file = "sympy-1.13.1.tar.gz", hash = "sha256:9cebf7e04ff162015ce31c9c6c9144daa34a93bd082f54fd8f12deca4f47515f"}, @@ -6807,7 +6738,6 @@ description = "Pretty-print tabular data" optional = false python-versions = ">=3.7" groups = ["main", "docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "tabulate-0.9.0-py3-none-any.whl", hash = "sha256:024ca478df22e9340661486f85298cff5f6dcdba14f3813e8830015b9ed1948f"}, {file = "tabulate-0.9.0.tar.gz", hash = "sha256:0095b12bf5966de529c0feb1fa08671671b3368eec77d7ef7ab114be2c068b3c"}, @@ -6823,7 +6753,6 @@ description = "Retry code until it succeeds" optional = false python-versions = ">=3.8" groups = ["main"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "tenacity-9.0.0-py3-none-any.whl", hash = "sha256:93de0c98785b27fcf659856aa9f54bfbd399e29969b0621bc7f762bd441b4539"}, {file = "tenacity-9.0.0.tar.gz", hash = "sha256:807f37ca97d62aa361264d497b0e31e92b8027044942bfa756160d908320d73b"}, @@ -6840,7 +6769,6 @@ description = "Python library for throwaway instances of anything that can run i optional = false python-versions = "<4.0,>=3.9" groups = ["dev"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "testcontainers-4.9.1-py3-none-any.whl", hash = "sha256:315fb94b42a383872df530aa45319745278ef0cc18b9cfcdc231a75d14afa5a0"}, {file = "testcontainers-4.9.1.tar.gz", hash = "sha256:37fe9a222549ddb788463935965b16f91809e9a8d654f437d6a59eac9b77f76f"}, @@ -6895,7 +6823,7 @@ description = "threadpoolctl" optional = true python-versions = ">=3.8" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"sentence-transformers\"" +markers = "extra == \"sentence-transformers\"" files = [ {file = "threadpoolctl-3.5.0-py3-none-any.whl", hash = "sha256:56c1e26c150397e58c4926da8eeee87533b1e32bef131bd4bf6a2f45f3185467"}, {file = "threadpoolctl-3.5.0.tar.gz", hash = "sha256:082433502dd922bf738de0d8bcc4fdcbf0979ff44c42bd40f5af8a282f6fa107"}, @@ -6908,7 +6836,6 @@ description = "A tiny CSS parser" optional = false python-versions = ">=3.8" groups = ["docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "tinycss2-1.4.0-py3-none-any.whl", hash = "sha256:3a49cf47b7675da0b15d0c6e1df8df4ebd96e9394bb905a5775adb0d884c5289"}, {file = "tinycss2-1.4.0.tar.gz", hash = "sha256:10c0972f6fc0fbee87c3edb76549357415e94548c1ae10ebccdea16fb404a9b7"}, @@ -6928,7 +6855,7 @@ description = "" optional = true python-versions = ">=3.7" groups = ["main"] -markers = "(extra == \"sentence-transformers\" or extra == \"cohere\") and (python_version <= \"3.11\" or python_version >= \"3.12\")" +markers = "extra == \"sentence-transformers\" or extra == \"cohere\"" files = [ {file = "tokenizers-0.21.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:3c4c93eae637e7d2aaae3d376f06085164e1660f89304c0ab2b1d08a406636b2"}, {file = "tokenizers-0.21.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:f53ea537c925422a2e0e92a24cce96f6bc5046bbef24a1652a5edc8ba975f62e"}, @@ -7005,7 +6932,6 @@ description = "Style preserving TOML library" optional = false python-versions = ">=3.8" groups = ["dev"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "tomlkit-0.13.2-py3-none-any.whl", hash = "sha256:7a974427f6e119197f670fbbbeae7bef749a6c14e793db934baefc1b5f03efde"}, {file = "tomlkit-0.13.2.tar.gz", hash = "sha256:fff5fe59a87295b278abd31bec92c15d9bc4a06885ab12bcea52c71119392e79"}, @@ -7018,7 +6944,7 @@ description = "Tensors and Dynamic neural networks in Python with strong GPU acc optional = true python-versions = ">=3.9.0" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"sentence-transformers\"" +markers = "extra == \"sentence-transformers\"" files = [ {file = "torch-2.6.0-cp310-cp310-manylinux1_x86_64.whl", hash = "sha256:6860df13d9911ac158f4c44031609700e1eba07916fff62e21e6ffa0a9e01961"}, {file = "torch-2.6.0-cp310-cp310-manylinux_2_28_aarch64.whl", hash = "sha256:c4f103a49830ce4c7561ef4434cc7926e5a5fe4e5eb100c19ab36ea1e2b634ab"}, @@ -7076,7 +7002,6 @@ description = "Tornado is a Python web framework and asynchronous networking lib optional = false python-versions = ">=3.8" groups = ["dev", "docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "tornado-6.4.2-cp38-abi3-macosx_10_9_universal2.whl", hash = "sha256:e828cce1123e9e44ae2a50a9de3055497ab1d0aeb440c5ac23064d9e44880da1"}, {file = "tornado-6.4.2-cp38-abi3-macosx_10_9_x86_64.whl", hash = "sha256:072ce12ada169c5b00b7d92a99ba089447ccc993ea2143c9ede887e0937aa803"}, @@ -7098,7 +7023,7 @@ description = "Fast, Extensible Progress Meter" optional = true python-versions = ">=3.7" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and (extra == \"nltk\" or extra == \"openai\" or extra == \"sentence-transformers\" or extra == \"cohere\" or extra == \"ranx\") and (extra == \"nltk\" or extra == \"openai\" or extra == \"sentence-transformers\" or extra == \"cohere\" or python_version >= \"3.10\")" +markers = "(python_version < \"3.12\" or extra == \"ranx\" or extra == \"nltk\" or extra == \"openai\" or extra == \"sentence-transformers\" or extra == \"cohere\") and (python_version >= \"3.10\" or extra == \"nltk\" or extra == \"openai\" or extra == \"sentence-transformers\" or extra == \"cohere\") and (extra == \"nltk\" or extra == \"openai\" or extra == \"sentence-transformers\" or extra == \"cohere\" or extra == \"ranx\")" files = [ {file = "tqdm-4.67.1-py3-none-any.whl", hash = "sha256:26445eca388f82e72884e0d580d5464cd801a3ea01e63e5601bdff9ba6a48de2"}, {file = "tqdm-4.67.1.tar.gz", hash = "sha256:f8aef9c52c08c13a65f30ea34f4e5aac3fd1a34959879d7e59e63027286627f2"}, @@ -7121,7 +7046,6 @@ description = "Traitlets Python configuration system" optional = false python-versions = ">=3.8" groups = ["dev", "docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "traitlets-5.14.3-py3-none-any.whl", hash = "sha256:b74e89e397b1ed28cc831db7aea759ba6640cb3de13090ca145426688ff1ac4f"}, {file = "traitlets-5.14.3.tar.gz", hash = "sha256:9ed0579d3502c94b4b3732ac120375cda96f923114522847de4b3bb98b96b6b7"}, @@ -7138,7 +7062,7 @@ description = "State-of-the-art Machine Learning for JAX, PyTorch and TensorFlow optional = true python-versions = ">=3.9.0" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"sentence-transformers\"" +markers = "extra == \"sentence-transformers\"" files = [ {file = "transformers-4.49.0-py3-none-any.whl", hash = "sha256:6b4fded1c5fee04d384b1014495b4235a2b53c87503d7d592423c06128cbbe03"}, {file = "transformers-4.49.0.tar.gz", hash = "sha256:7e40e640b5b8dc3f48743f5f5adbdce3660c82baafbd3afdfc04143cdbd2089e"}, @@ -7209,7 +7133,7 @@ description = "Support tools for TREC CAR participants. Also see trec-car.cs.unh optional = true python-versions = ">=3.6" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"ranx\" and python_version >= \"3.10\"" +markers = "python_version >= \"3.10\" and extra == \"ranx\"" files = [ {file = "trec-car-tools-2.6.tar.gz", hash = "sha256:2fce2de120224fd569b151d5bed358a4ed334e643889b9e3dfe3e5a3d15d21c8"}, {file = "trec_car_tools-2.6-py3-none-any.whl", hash = "sha256:e6f0373259e1c234222da7270ab54ca7af7a6f8d0dd32b13e158c1659d3991cf"}, @@ -7226,7 +7150,7 @@ description = "A language and compiler for custom Deep Learning operations" optional = true python-versions = "*" groups = ["main"] -markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\" and extra == \"sentence-transformers\" and (python_version <= \"3.11\" or python_version >= \"3.12\")" +markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\" and extra == \"sentence-transformers\"" files = [ {file = "triton-3.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b3e54983cd51875855da7c68ec05c05cf8bb08df361b1d5b69e05e40b0c9bd62"}, {file = "triton-3.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8009a1fb093ee8546495e96731336a33fb8856a38e45bb4ab6affd6dbc3ba220"}, @@ -7247,7 +7171,6 @@ description = "Typing stubs for cffi" optional = false python-versions = ">=3.8" groups = ["dev"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "types_cffi-1.16.0.20241221-py3-none-any.whl", hash = "sha256:e5b76b4211d7a9185f6ab8d06a106d56c7eb80af7cdb8bfcb4186ade10fb112f"}, {file = "types_cffi-1.16.0.20241221.tar.gz", hash = "sha256:1c96649618f4b6145f58231acb976e0b448be6b847f7ab733dabe62dfbff6591"}, @@ -7263,7 +7186,6 @@ description = "Typing stubs for pyOpenSSL" optional = false python-versions = ">=3.8" groups = ["dev"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "types-pyOpenSSL-24.1.0.20240722.tar.gz", hash = "sha256:47913b4678a01d879f503a12044468221ed8576263c1540dcb0484ca21b08c39"}, {file = "types_pyOpenSSL-24.1.0.20240722-py3-none-any.whl", hash = "sha256:6a7a5d2ec042537934cfb4c9d4deb0e16c4c6250b09358df1f083682fe6fda54"}, @@ -7280,7 +7202,6 @@ description = "Typing stubs for PyYAML" optional = false python-versions = ">=3.8" groups = ["dev"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "types_PyYAML-6.0.12.20241230-py3-none-any.whl", hash = "sha256:fa4d32565219b68e6dee5f67534c722e53c00d1cfc09c435ef04d7353e1e96e6"}, {file = "types_pyyaml-6.0.12.20241230.tar.gz", hash = "sha256:7f07622dbd34bb9c8b264fe860a17e0efcad00d50b5f27e93984909d9363498c"}, @@ -7293,7 +7214,6 @@ description = "Typing stubs for redis" optional = false python-versions = ">=3.8" groups = ["dev"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "types-redis-4.6.0.20241004.tar.gz", hash = "sha256:5f17d2b3f9091ab75384153bfa276619ffa1cf6a38da60e10d5e6749cc5b902e"}, {file = "types_redis-4.6.0.20241004-py3-none-any.whl", hash = "sha256:ef5da68cb827e5f606c8f9c0b49eeee4c2669d6d97122f301d3a55dc6a63f6ed"}, @@ -7310,7 +7230,7 @@ description = "Typing stubs for requests" optional = true python-versions = ">=3.7" groups = ["main"] -markers = "python_version < \"3.10\" and extra == \"cohere\"" +markers = "python_version == \"3.9\" and extra == \"cohere\"" files = [ {file = "types-requests-2.31.0.6.tar.gz", hash = "sha256:cd74ce3b53c461f1228a9b783929ac73a666658f223e28ed29753771477b3bd0"}, {file = "types_requests-2.31.0.6-py3-none-any.whl", hash = "sha256:a2db9cb228a81da8348b49ad6db3f5519452dd20a9c1e1a868c83c5fe88fd1a9"}, @@ -7326,7 +7246,7 @@ description = "Typing stubs for requests" optional = true python-versions = ">=3.8" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"cohere\" and python_version >= \"3.10\"" +markers = "python_version >= \"3.10\" and extra == \"cohere\"" files = [ {file = "types-requests-2.32.0.20241016.tar.gz", hash = "sha256:0d9cad2f27515d0e3e3da7134a1b6f28fb97129d86b867f24d9c726452634d95"}, {file = "types_requests-2.32.0.20241016-py3-none-any.whl", hash = "sha256:4195d62d6d3e043a4eaaf08ff8a62184584d2e8684e9d2aa178c7915a7da3747"}, @@ -7342,7 +7262,6 @@ description = "Typing stubs for setuptools" optional = false python-versions = ">=3.9" groups = ["dev"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "types_setuptools-75.8.0.20250225-py3-none-any.whl", hash = "sha256:94c86b439cc60bcc68c1cda3fd2c301f007f8f9502f4fbb54c66cb5ce9b875af"}, {file = "types_setuptools-75.8.0.20250225.tar.gz", hash = "sha256:6038f7e983d55792a5f90d8fdbf5d4c186026214a16bb65dd6ae83c624ae9636"}, @@ -7355,7 +7274,6 @@ description = "Typing stubs for tabulate" optional = false python-versions = ">=3.8" groups = ["dev"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "types_tabulate-0.9.0.20241207-py3-none-any.whl", hash = "sha256:b8dad1343c2a8ba5861c5441370c3e35908edd234ff036d4298708a1d4cf8a85"}, {file = "types_tabulate-0.9.0.20241207.tar.gz", hash = "sha256:ac1ac174750c0a385dfd248edc6279fa328aaf4ea317915ab879a2ec47833230"}, @@ -7368,7 +7286,7 @@ description = "Typing stubs for urllib3" optional = true python-versions = "*" groups = ["main"] -markers = "python_version < \"3.10\" and extra == \"cohere\"" +markers = "python_version == \"3.9\" and extra == \"cohere\"" files = [ {file = "types-urllib3-1.26.25.14.tar.gz", hash = "sha256:229b7f577c951b8c1b92c1bc2b2fdb0b49847bd2af6d1cc2a2e3dd340f3bda8f"}, {file = "types_urllib3-1.26.25.14-py3-none-any.whl", hash = "sha256:9683bbb7fb72e32bfe9d2be6e04875fbe1b3eeec3cbb4ea231435aa7fd6b4f0e"}, @@ -7381,7 +7299,6 @@ description = "Backported and Experimental Type Hints for Python 3.8+" optional = false python-versions = ">=3.8" groups = ["main", "dev", "docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "typing_extensions-4.12.2-py3-none-any.whl", hash = "sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d"}, {file = "typing_extensions-4.12.2.tar.gz", hash = "sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8"}, @@ -7394,7 +7311,7 @@ description = "Runtime inspection utilities for typing module." optional = true python-versions = "*" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"mistralai\"" +markers = "extra == \"mistralai\"" files = [ {file = "typing_inspect-0.9.0-py3-none-any.whl", hash = "sha256:9ee6fc59062311ef8547596ab6b955e1b8aa46242d854bfc78f4f6b0eff35f9f"}, {file = "typing_inspect-0.9.0.tar.gz", hash = "sha256:b23fc42ff6f6ef6954e4852c1fb512cdd18dbea03134f91f856a95ccc9461f78"}, @@ -7404,6 +7321,21 @@ files = [ mypy-extensions = ">=0.3.0" typing-extensions = ">=3.7.4" +[[package]] +name = "typing-inspection" +version = "0.4.0" +description = "Runtime typing introspection tools" +optional = false +python-versions = ">=3.9" +groups = ["main"] +files = [ + {file = "typing_inspection-0.4.0-py3-none-any.whl", hash = "sha256:50e72559fcd2a6367a19f7a7e610e6afcb9fac940c650290eed893d61386832f"}, + {file = "typing_inspection-0.4.0.tar.gz", hash = "sha256:9765c87de36671694a67904bf2c96e395be9c6439bb6c87b5142569dcdd65122"}, +] + +[package.dependencies] +typing-extensions = ">=4.12.0" + [[package]] name = "tzdata" version = "2025.1" @@ -7411,7 +7343,7 @@ description = "Provider of IANA time zone data" optional = true python-versions = ">=2" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"ranx\" and python_version >= \"3.10\"" +markers = "python_version >= \"3.10\" and extra == \"ranx\"" files = [ {file = "tzdata-2025.1-py2.py3-none-any.whl", hash = "sha256:7e127113816800496f027041c570f50bcd464a020098a3b6b199517772303639"}, {file = "tzdata-2025.1.tar.gz", hash = "sha256:24894909e88cdb28bd1636c6887801df64cb485bd593f2fd83ef29075a81d694"}, @@ -7424,7 +7356,7 @@ description = "Pure Python decompression module for .Z files compressed using Un optional = true python-versions = ">=3.9" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"ranx\" and python_version >= \"3.10\"" +markers = "python_version >= \"3.10\" and extra == \"ranx\"" files = [ {file = "unlzw3-0.2.3-py3-none-any.whl", hash = "sha256:7760fb4f3afa1225623944c061991d89a061f7fb78665dbc4cddfdb562bb4a8b"}, {file = "unlzw3-0.2.3.tar.gz", hash = "sha256:ede5d928c792fff9da406f20334f9739693327f448f383ae1df1774627197bbb"}, @@ -7445,11 +7377,11 @@ files = [ {file = "urllib3-1.26.20-py2.py3-none-any.whl", hash = "sha256:0ed14ccfbf1c30a9072c7ca157e4319b70d65f623e91e7b32fadb2853431016e"}, {file = "urllib3-1.26.20.tar.gz", hash = "sha256:40c2dc0c681e47eb8f90e7e27bf6ff7df2e677421fd46756da1161c39ca70d32"}, ] -markers = {main = "extra == \"sentence-transformers\" and python_version < \"3.10\" or extra == \"cohere\" and python_version < \"3.10\" or extra == \"vertexai\" and python_version < \"3.10\" or extra == \"voyageai\" and python_version < \"3.10\" or extra == \"bedrock\" and python_version < \"3.10\"", dev = "python_version < \"3.10\"", docs = "python_version < \"3.10\""} +markers = {main = "python_version == \"3.9\" and (extra == \"bedrock\" or extra == \"sentence-transformers\" or extra == \"cohere\" or extra == \"vertexai\" or extra == \"voyageai\")", dev = "python_version == \"3.9\"", docs = "python_version == \"3.9\""} [package.extras] -brotli = ["brotli (==1.0.9)", "brotli (>=1.0.9)", "brotlicffi (>=0.8.0)", "brotlipy (>=0.6.0)"] -secure = ["certifi", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "ipaddress", "pyOpenSSL (>=0.14)", "urllib3-secure-extra"] +brotli = ["brotli (==1.0.9) ; os_name != \"nt\" and python_version < \"3\" and platform_python_implementation == \"CPython\"", "brotli (>=1.0.9) ; python_version >= \"3\" and platform_python_implementation == \"CPython\"", "brotlicffi (>=0.8.0) ; (os_name != \"nt\" or python_version >= \"3\") and platform_python_implementation != \"CPython\"", "brotlipy (>=0.6.0) ; os_name == \"nt\" and python_version < \"3\""] +secure = ["certifi", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "ipaddress ; python_version == \"2.7\"", "pyOpenSSL (>=0.14)", "urllib3-secure-extra"] socks = ["PySocks (>=1.5.6,!=1.5.7,<2.0)"] [[package]] @@ -7463,10 +7395,10 @@ files = [ {file = "urllib3-2.3.0-py3-none-any.whl", hash = "sha256:1cee9ad369867bfdbbb48b7dd50374c0967a0bb7710050facf0dd6911440e3df"}, {file = "urllib3-2.3.0.tar.gz", hash = "sha256:f8c5449b3cf0861679ce7e0503c7b44b5ec981bec0d1d3795a07f1ba96f0204d"}, ] -markers = {main = "(python_version <= \"3.11\" or python_version >= \"3.12\") and (extra == \"sentence-transformers\" or extra == \"cohere\" or extra == \"vertexai\" or extra == \"voyageai\" or extra == \"ranx\" or extra == \"bedrock\") and python_version >= \"3.10\"", dev = "python_version <= \"3.11\" and python_version >= \"3.10\" or python_version >= \"3.12\"", docs = "python_version <= \"3.11\" and python_version >= \"3.10\" or python_version >= \"3.12\""} +markers = {main = "python_version >= \"3.10\" and (extra == \"ranx\" or extra == \"bedrock\" or extra == \"sentence-transformers\" or extra == \"cohere\" or extra == \"vertexai\" or extra == \"voyageai\")", dev = "python_version >= \"3.10\"", docs = "python_version >= \"3.10\""} [package.extras] -brotli = ["brotli (>=1.0.9)", "brotlicffi (>=0.8.0)"] +brotli = ["brotli (>=1.0.9) ; platform_python_implementation == \"CPython\"", "brotlicffi (>=0.8.0) ; platform_python_implementation != \"CPython\""] h2 = ["h2 (>=4,<5)"] socks = ["pysocks (>=1.5.6,!=1.5.7,<2.0)"] zstd = ["zstandard (>=0.18.0)"] @@ -7478,7 +7410,6 @@ description = "Virtual Python Environment builder" optional = false python-versions = ">=3.8" groups = ["dev"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "virtualenv-20.29.2-py3-none-any.whl", hash = "sha256:febddfc3d1ea571bdb1dc0f98d7b45d24def7428214d4fb73cc486c9568cce6a"}, {file = "virtualenv-20.29.2.tar.gz", hash = "sha256:fdaabebf6d03b5ba83ae0a02cfe96f48a716f4fae556461d180825866f75b728"}, @@ -7491,7 +7422,7 @@ platformdirs = ">=3.9.1,<5" [package.extras] docs = ["furo (>=2023.7.26)", "proselint (>=0.13)", "sphinx (>=7.1.2,!=7.3)", "sphinx-argparse (>=0.4)", "sphinxcontrib-towncrier (>=0.2.1a0)", "towncrier (>=23.6)"] -test = ["covdefaults (>=2.3)", "coverage (>=7.2.7)", "coverage-enable-subprocess (>=1)", "flaky (>=3.7)", "packaging (>=23.1)", "pytest (>=7.4)", "pytest-env (>=0.8.2)", "pytest-freezer (>=0.4.8)", "pytest-mock (>=3.11.1)", "pytest-randomly (>=3.12)", "pytest-timeout (>=2.1)", "setuptools (>=68)", "time-machine (>=2.10)"] +test = ["covdefaults (>=2.3)", "coverage (>=7.2.7)", "coverage-enable-subprocess (>=1)", "flaky (>=3.7)", "packaging (>=23.1)", "pytest (>=7.4)", "pytest-env (>=0.8.2)", "pytest-freezer (>=0.4.8) ; platform_python_implementation == \"PyPy\" or platform_python_implementation == \"CPython\" and sys_platform == \"win32\" and python_version >= \"3.13\"", "pytest-mock (>=3.11.1)", "pytest-randomly (>=3.12)", "pytest-timeout (>=2.1)", "setuptools (>=68)", "time-machine (>=2.10) ; platform_python_implementation == \"CPython\""] [[package]] name = "voyageai" @@ -7500,7 +7431,7 @@ description = "" optional = true python-versions = "<4.0.0,>=3.7.1" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"voyageai\"" +markers = "extra == \"voyageai\"" files = [ {file = "voyageai-0.2.4-py3-none-any.whl", hash = "sha256:e3070e5c78dec89adae43231334b4637aa88933dad99b1c33d3219fdfc94dfa4"}, {file = "voyageai-0.2.4.tar.gz", hash = "sha256:b9911d8629e8a4e363291c133482fead49a3536afdf1e735f3ab3aaccd8d250d"}, @@ -7520,7 +7451,7 @@ description = "Python library to work with ARC and WARC files" optional = true python-versions = "*" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"ranx\" and python_version >= \"3.10\"" +markers = "python_version >= \"3.10\" and extra == \"ranx\"" files = [ {file = "warc3_wet-0.2.5-py3-none-any.whl", hash = "sha256:5a9a525383fb1af159734baa75f349a7c4ec7bccd1b938681b5748515d2bf624"}, {file = "warc3_wet-0.2.5.tar.gz", hash = "sha256:15e50402dabaa1e95307f1e2a6169cfd5f137b70761d9f0b16a10aa6de227970"}, @@ -7533,7 +7464,7 @@ description = "Python library to work with ARC and WARC files, with fixes for Cl optional = true python-versions = "*" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"ranx\" and python_version >= \"3.10\"" +markers = "python_version >= \"3.10\" and extra == \"ranx\"" files = [ {file = "warc3-wet-clueweb09-0.2.5.tar.gz", hash = "sha256:3054bfc07da525d5967df8ca3175f78fa3f78514c82643f8c81fbca96300b836"}, ] @@ -7545,7 +7476,6 @@ description = "Measures the displayed width of unicode strings in a terminal" optional = false python-versions = "*" groups = ["dev", "docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "wcwidth-0.2.13-py2.py3-none-any.whl", hash = "sha256:3da69048e4540d84af32131829ff948f1e022c1c6bdb8d6102117aac784f6859"}, {file = "wcwidth-0.2.13.tar.gz", hash = "sha256:72ea0c06399eb286d978fdedb6923a9eb47e1c486ce63e9b4e64fc18303972b5"}, @@ -7558,7 +7488,6 @@ description = "Character encoding aliases for legacy web content" optional = false python-versions = "*" groups = ["docs"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "webencodings-0.5.1-py2.py3-none-any.whl", hash = "sha256:a0af1213f3c2226497a97e2b3aa01a7e4bee4f403f95be16fc9acd2947514a78"}, {file = "webencodings-0.5.1.tar.gz", hash = "sha256:b36a1c245f2d304965eb4e0a82848379241dc04b865afcc4aab16748587e1923"}, @@ -7571,7 +7500,6 @@ description = "Module for decorators, wrappers and monkey patching." optional = false python-versions = ">=3.8" groups = ["dev"] -markers = "python_version <= \"3.11\" or python_version >= \"3.12\"" files = [ {file = "wrapt-1.17.2-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:3d57c572081fed831ad2d26fd430d565b76aa277ed1d30ff4d40670b1c0dd984"}, {file = "wrapt-1.17.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:b5e251054542ae57ac7f3fba5d10bfff615b6c2fb09abeb37d2f1463f841ae22"}, @@ -7661,7 +7589,7 @@ description = "Yet another URL library" optional = true python-versions = ">=3.9" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"voyageai\"" +markers = "extra == \"voyageai\"" files = [ {file = "yarl-1.18.3-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:7df647e8edd71f000a5208fe6ff8c382a1de8edfbccdbbfe649d263de07d8c34"}, {file = "yarl-1.18.3-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:c69697d3adff5aa4f874b19c0e4ed65180ceed6318ec856ebc423aa5850d84f7"}, @@ -7763,14 +7691,14 @@ files = [ {file = "zipp-3.21.0-py3-none-any.whl", hash = "sha256:ac1bbe05fd2991f160ebce24ffbac5f6d11d83dc90891255885223d42b3cd931"}, {file = "zipp-3.21.0.tar.gz", hash = "sha256:2c9958f6430a2040341a52eb608ed6dd93ef4392e02ffe219417c1b28b5dd1f4"}, ] -markers = {dev = "python_version < \"3.10\"", docs = "python_version <= \"3.11\" or python_version >= \"3.12\""} +markers = {dev = "python_version == \"3.9\""} [package.extras] -check = ["pytest-checkdocs (>=2.4)", "pytest-ruff (>=0.2.1)"] +check = ["pytest-checkdocs (>=2.4)", "pytest-ruff (>=0.2.1) ; sys_platform != \"cygwin\""] cover = ["pytest-cov"] doc = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"] enabler = ["pytest-enabler (>=2.2)"] -test = ["big-O", "importlib-resources", "jaraco.functools", "jaraco.itertools", "jaraco.test", "more-itertools", "pytest (>=6,!=8.1.*)", "pytest-ignore-flaky"] +test = ["big-O", "importlib-resources ; python_version < \"3.9\"", "jaraco.functools", "jaraco.itertools", "jaraco.test", "more-itertools", "pytest (>=6,!=8.1.*)", "pytest-ignore-flaky"] type = ["pytest-mypy"] [[package]] @@ -7780,7 +7708,7 @@ description = "Low-level interface to the zlib library that enables capturing th optional = true python-versions = ">=3.6" groups = ["main"] -markers = "(python_version <= \"3.11\" or python_version >= \"3.12\") and extra == \"ranx\" and python_version >= \"3.10\"" +markers = "python_version >= \"3.10\" and extra == \"ranx\"" files = [ {file = "zlib_state-0.1.9-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:97f45d0f80e9d7070229ecb36112eea6a17dc40053449a9c613ef837d9cb66b4"}, {file = "zlib_state-0.1.9-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3564eaa130f2533b87b82d0e622cfb5c25acec123e7bfe38d39db9ce6349cb52"}, @@ -7826,4 +7754,4 @@ voyageai = ["voyageai"] [metadata] lock-version = "2.1" python-versions = ">=3.9,<3.14" -content-hash = "dda6b62555ef815b019ad9aa8f35a7e41ac033f20202ba6a6b4947804a52e2d7" +content-hash = "6004555f0d601947da22af5d7e24e86deb2934927e7934af00a9853e31bd46bc" diff --git a/pyproject.toml b/pyproject.toml index f84a527f..7200b280 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,6 +48,7 @@ mistralai = { version = ">=1.0.0", optional = true } voyageai = { version = ">=0.2.2", optional = true } ranx = { version = "^0.3.0", python=">=3.10", optional = true } boto3 = {version = "1.36.0", optional = true, extras = ["bedrock"]} +langcache = {path = "vendor/langcache-0.0.4-py3-none-any.whl"} [tool.poetry.extras] openai = ["openai"] diff --git a/redisvl/extensions/llmcache/langcache_api.py b/redisvl/extensions/llmcache/langcache_api.py new file mode 100644 index 00000000..49291f1c --- /dev/null +++ b/redisvl/extensions/llmcache/langcache_api.py @@ -0,0 +1,395 @@ +import json +from typing import Any, Dict, List, Optional + +from langcache import LangCache as LangCacheSDK + +from redisvl.extensions.llmcache.base import BaseLLMCache +from redisvl.query.filter import FilterExpression +from redisvl.utils.utils import current_timestamp, hashify + + +class LangCache(BaseLLMCache): + """Redis LangCache Service: API for managing a Redis LangCache""" + + def __init__( + self, + redis_client=None, + name: str = "llmcache", + distance_threshold: float = 0.1, + ttl: Optional[int] = None, + redis_url: str = "redis://localhost:6379", + connection_kwargs: Dict[str, Any] = {}, + overwrite: bool = False, + **kwargs, + ): + """Initialize a LangCache client. + + Args: + redis_client: A Redis client instance. + name: Name of the cache. + distance_threshold: Threshold for semantic similarity (0.0 to 1.0). + ttl: Time-to-live for cache entries in seconds. + redis_url: URL for Redis connection if no client is provided. + connection_kwargs: Additional Redis connection parameters. + overwrite: Whether to overwrite an existing cache with the same name. + """ + # Initialize the base class + super().__init__(ttl) + + # Store configuration + self._name = name + self._redis_client = redis_client + self._redis_url = redis_url + self._distance_threshold = distance_threshold + self._ttl = ttl + self._cache_id = name + + # Initialize LangCache SDK client + self._api = LangCacheSDK(server_url=redis_url, client=redis_client) + + # Create cache if it doesn't exist or if overwrite is True + try: + existing_cache = self._api.cache.get(cache_id=self._cache_id) + if not existing_cache and overwrite: + self._api.cache.create( + index_name=self._name, + redis_urls=[self._redis_url], + ) + except Exception: + # If the cache doesn't exist, create it + if overwrite: + self._api.cache.create( + index_name=self._name, + redis_urls=[self._redis_url], + ) + + @property + def distance_threshold(self) -> float: + """Get the current distance threshold for semantic similarity.""" + return self._distance_threshold + + def set_threshold(self, distance_threshold: float) -> None: + """Sets the semantic distance threshold for the cache. + + Args: + distance_threshold: The semantic distance threshold. + + Raises: + ValueError: If the threshold is not between 0 and 2. + """ + if not 0 <= float(distance_threshold) <= 2: + raise ValueError("Distance threshold must be between 0 and 2") + self._distance_threshold = float(distance_threshold) + + @property + def ttl(self) -> Optional[int]: + """Get the current TTL setting for cache entries.""" + return self._ttl + + def set_ttl(self, ttl: Optional[int] = None) -> None: + """Set the TTL for cache entries. + + Args: + ttl: Time-to-live in seconds, or None to disable expiration. + + Raises: + ValueError: If ttl is negative. + """ + if ttl is not None and ttl < 0: + raise ValueError("TTL must be a positive integer or None") + self._ttl = ttl + + def clear(self) -> None: + """Clear all entries from the cache while preserving the cache configuration.""" + self._api.entries.delete_all(cache_id=self._cache_id, attributes={}, scope={}) + + async def aclear(self) -> None: + """Asynchronously clear all entries from the cache.""" + # Currently using synchronous implementation since langcache doesn't have async API + self.clear() + + def delete(self) -> None: + """Delete the cache and all its entries.""" + self.clear() + self._api.cache.delete(cache_id=self._cache_id) + + async def adelete(self) -> None: + """Asynchronously delete the cache and all its entries.""" + # Currently using synchronous implementation since langcache doesn't have async API + self.delete() + + def drop( + self, ids: Optional[List[str]] = None, keys: Optional[List[str]] = None + ) -> None: + """Remove specific entries from the cache. + + Args: + ids: List of entry IDs to remove. + keys: List of Redis keys to remove. + """ + if ids: + for entry_id in ids: + self._api.entries.delete(entry_id=entry_id, cache_id=self._cache_id) + + async def adrop( + self, ids: Optional[List[str]] = None, keys: Optional[List[str]] = None + ) -> None: + """Asynchronously remove specific entries from the cache. + + Args: + ids: List of entry IDs to remove. + keys: List of Redis keys to remove. + """ + # Currently using synchronous implementation since langcache doesn't have async API + self.drop(ids, keys) + + def check( + self, + prompt: Optional[str] = None, + vector: Optional[List[float]] = None, + num_results: int = 1, + return_fields: Optional[List[str]] = None, + filter_expression: Optional[FilterExpression] = None, + distance_threshold: Optional[float] = None, + ) -> List[Dict[str, Any]]: + """Check the cache for semantically similar entries. + + Args: + prompt: The text prompt to search for. + vector: The vector representation of the prompt. + num_results: Maximum number of results to return. + return_fields: Fields to include in the response. + filter_expression: Optional filter for the search. + distance_threshold: Override the default distance threshold. + + Returns: + List of matching cache entries. + + Raises: + ValueError: If neither prompt nor vector is provided. + TypeError: If return_fields is not a list when provided. + """ + if not any([prompt, vector]): + raise ValueError("Either prompt or vector must be provided") + + if return_fields and not isinstance(return_fields, list): + raise TypeError("return_fields must be a list") + + # Use provided threshold or default + threshold = distance_threshold or self._distance_threshold + + # Search the cache - note we don't use scope since FilterExpression conversion would be complex + # and require proper implementation for CacheEntryScope format + results = self._api.entries.search( + cache_id=self._cache_id, + prompt=prompt or "", # Ensure prompt is never None + similarity_threshold=threshold, + ) + + # If we need to limit results and have more than requested, slice the list + if num_results < len(results): + results = results[:num_results] + + # Process and format results + cache_hits = [] + for result in results: + # Create a basic hit dict with required fields + hit = { + "key": result.id, + "entry_id": result.id, + "prompt": result.prompt, + "response": result.response, + "vector_distance": result.similarity, + "inserted_at": current_timestamp(), # Not available in the model + "updated_at": current_timestamp(), # Not available in the model + } + + # Add metadata if it exists + if hasattr(result, "metadata") and result.metadata: + try: + metadata_dict = {} + # Convert metadata object to dict if possible + if hasattr(result.metadata, "__dict__"): + metadata_dict = { + k: v + for k, v in result.metadata.__dict__.items() + if not k.startswith("_") + } + hit["metadata"] = metadata_dict + except Exception: + hit["metadata"] = {} + + # Filter return fields if specified + if return_fields: + hit = {k: v for k, v in hit.items() if k in return_fields or k == "key"} + + cache_hits.append(hit) + + return cache_hits + + async def acheck( + self, + prompt: Optional[str] = None, + vector: Optional[List[float]] = None, + num_results: int = 1, + return_fields: Optional[List[str]] = None, + filter_expression: Optional[FilterExpression] = None, + distance_threshold: Optional[float] = None, + ) -> List[Dict[str, Any]]: + """Asynchronously check the cache for semantically similar entries.""" + # Currently using synchronous implementation since langcache doesn't have async API + return self.check( + prompt, + vector, + num_results, + return_fields, + filter_expression, + distance_threshold, + ) + + def store( + self, + prompt: str, + response: str, + vector: Optional[List[float]] = None, + metadata: Optional[Dict[str, Any]] = None, + filters: Optional[Dict[str, Any]] = None, + ttl: Optional[int] = None, + ) -> str: + """Store a new entry in the cache. + + Args: + prompt: The prompt text. + response: The response text. + vector: Optional vector representation of the prompt. + metadata: Optional metadata to store with the entry. + filters: Optional filters to associate with the entry. + ttl: Optional custom TTL for this entry. + + Returns: + The ID of the created entry. + """ + # Validate metadata + if metadata is not None and not isinstance(metadata, dict): + raise ValueError("Metadata must be a dictionary") + + # Create entry with optional TTL + entry_ttl = ttl if ttl is not None else self._ttl + + # Convert ttl to ttl_millis (milliseconds) if provided + ttl_millis = entry_ttl * 1000 if entry_ttl is not None else None + + # Process additional attributes from filters + attributes = {} + if filters: + attributes.update(filters) + + # Add metadata to attributes if provided + if metadata: + attributes["metadata"] = ( + json.dumps(metadata) if isinstance(metadata, dict) else metadata + ) + + # Store the entry and get the response + create_response = self._api.entries.create( + cache_id=self._cache_id, + prompt=prompt, + response=response, + attributes=attributes, + ttl_millis=ttl_millis, + ) + + # Return the entry ID from the response + return create_response.entry_id + + async def astore( + self, + prompt: str, + response: str, + vector: Optional[List[float]] = None, + metadata: Optional[Dict[str, Any]] = None, + filters: Optional[Dict[str, Any]] = None, + ttl: Optional[int] = None, + ) -> str: + """Asynchronously store a new entry in the cache.""" + # Currently using synchronous implementation since langcache doesn't have async API + return self.store(prompt, response, vector, metadata, filters, ttl) + + def update(self, key: str, **kwargs) -> None: + """Update an existing cache entry. + + Args: + key: The entry ID to update. + **kwargs: Fields to update (prompt, response, metadata, etc.) + """ + # Find the entry to update + existing_entries = self._api.entries.search( + cache_id=self._cache_id, + prompt="", # Required parameter but we're searching by ID + attributes={"id": key}, # Search by ID as an attribute + similarity_threshold=1.0, # We're not doing semantic search + ) + + if not existing_entries: + return + + existing_entry = existing_entries[0] + + # Prepare updated values + # CacheEntry objects are Pydantic models, access their attributes directly + prompt = kwargs.get( + "prompt", existing_entry.prompt if hasattr(existing_entry, "prompt") else "" + ) + response = kwargs.get( + "response", + existing_entry.response if hasattr(existing_entry, "response") else "", + ) + + # Prepare attributes for update + attributes = {} + if "metadata" in kwargs: + attributes["metadata"] = ( + json.dumps(kwargs["metadata"]) + if isinstance(kwargs["metadata"], dict) + else kwargs["metadata"] + ) + + # Convert TTL to milliseconds if provided + ttl = kwargs.get("ttl", None) + ttl_millis = ttl * 1000 if ttl is not None else None + + # Re-create the entry with updated values + self._api.entries.create( + cache_id=self._cache_id, + prompt=prompt, + response=response, + attributes=attributes, + ttl_millis=ttl_millis, + ) + + async def aupdate(self, key: str, **kwargs) -> None: + """Asynchronously update an existing cache entry.""" + # Currently using synchronous implementation since langcache doesn't have async API + self.update(key, **kwargs) + + def disconnect(self) -> None: + """Close the Redis connection.""" + # Redis clients typically don't need explicit disconnection, + # as they use connection pooling + pass + + async def adisconnect(self) -> None: + """Asynchronously close the Redis connection.""" + self.disconnect() + + def __enter__(self): + return self + + def __exit__(self, exc_type, exc_val, exc_tb): + self.disconnect() + + async def __aenter__(self): + return self + + async def __aexit__(self, exc_type, exc_val, exc_tb): + await self.adisconnect() diff --git a/redisvl/extensions/llmcache/schema.py b/redisvl/extensions/llmcache/schema.py index fa6f720a..88fcd697 100644 --- a/redisvl/extensions/llmcache/schema.py +++ b/redisvl/extensions/llmcache/schema.py @@ -9,9 +9,9 @@ RESPONSE_FIELD_NAME, UPDATED_AT_FIELD_NAME, ) -from redisvl.redis.utils import array_to_buffer, hashify +from redisvl.redis.utils import array_to_buffer from redisvl.schema import IndexSchema -from redisvl.utils.utils import current_timestamp, deserialize, serialize +from redisvl.utils.utils import current_timestamp, deserialize, hashify, serialize class CacheEntry(BaseModel): diff --git a/redisvl/extensions/llmcache/semantic.py b/redisvl/extensions/llmcache/semantic.py index 13bab707..3d2120a3 100644 --- a/redisvl/extensions/llmcache/semantic.py +++ b/redisvl/extensions/llmcache/semantic.py @@ -1,8 +1,6 @@ import asyncio -import weakref from typing import Any, Dict, List, Optional -import numpy as np from redis import Redis from redisvl.extensions.constants import ( @@ -24,14 +22,12 @@ from redisvl.index import AsyncSearchIndex, SearchIndex from redisvl.query import VectorRangeQuery from redisvl.query.filter import FilterExpression -from redisvl.query.query import BaseQuery from redisvl.redis.connection import RedisConnectionFactory from redisvl.utils.log import get_logger from redisvl.utils.utils import ( current_timestamp, deprecated_argument, serialize, - sync_wrapper, validate_vector_dims, ) from redisvl.utils.vectorize import BaseVectorizer, HFTextVectorizer diff --git a/redisvl/extensions/router/semantic.py b/redisvl/extensions/router/semantic.py index 9ca886ab..a2f84882 100644 --- a/redisvl/extensions/router/semantic.py +++ b/redisvl/extensions/router/semantic.py @@ -18,9 +18,9 @@ ) from redisvl.index import SearchIndex from redisvl.query import VectorRangeQuery -from redisvl.redis.utils import convert_bytes, hashify, make_dict +from redisvl.redis.utils import convert_bytes, make_dict from redisvl.utils.log import get_logger -from redisvl.utils.utils import deprecated_argument, model_to_dict +from redisvl.utils.utils import deprecated_argument, hashify, model_to_dict from redisvl.utils.vectorize import ( BaseVectorizer, HFTextVectorizer, diff --git a/redisvl/redis/utils.py b/redisvl/redis/utils.py index bce8bf4b..d744497f 100644 --- a/redisvl/redis/utils.py +++ b/redisvl/redis/utils.py @@ -1,8 +1,6 @@ -import hashlib -from typing import Any, Dict, List, Optional +from typing import Any, Dict, List import numpy as np -from ml_dtypes import bfloat16 from redisvl.schema.fields import VectorDataType @@ -53,11 +51,3 @@ def buffer_to_array(buffer: bytes, dtype: str) -> List[Any]: f"Invalid data type: {dtype}. Supported types are: {[t.lower() for t in VectorDataType]}" ) return np.frombuffer(buffer, dtype=dtype.lower()).tolist() # type: ignore[return-value] - - -def hashify(content: str, extras: Optional[Dict[str, Any]] = None) -> str: - """Create a secure hash of some arbitrary input text and optional dictionary.""" - if extras: - extra_string = " ".join([str(k) + str(v) for k, v in sorted(extras.items())]) - content = content + extra_string - return hashlib.sha256(content.encode("utf-8")).hexdigest() diff --git a/redisvl/utils/utils.py b/redisvl/utils/utils.py index ab13f16f..0e86372a 100644 --- a/redisvl/utils/utils.py +++ b/redisvl/utils/utils.py @@ -1,4 +1,5 @@ import asyncio +import hashlib import inspect import json import logging @@ -213,3 +214,11 @@ def norm_l2_distance(value: float) -> float: Normalize the L2 distance. """ return 1 / (1 + value) + + +def hashify(content: str, extras: Optional[Dict[str, Any]] = None) -> str: + """Create a secure hash of some arbitrary input text and optional dictionary.""" + if extras: + extra_string = " ".join([str(k) + str(v) for k, v in sorted(extras.items())]) + content = content + extra_string + return hashlib.sha256(content.encode("utf-8")).hexdigest() diff --git a/vendor/langcache-0.0.4-py3-none-any.whl b/vendor/langcache-0.0.4-py3-none-any.whl new file mode 100644 index 0000000000000000000000000000000000000000..983db20df375fe18701d109b216ce44c9c00e1eb GIT binary patch literal 56763 zcmagGQ<$w=(Gvb)LVfy8C=xfAz(D-gP;jF#;oE zMl1zsU=S1l004-eLnxu_|2@6`^Q#mP008ypYh!3z^xGyc|vQWmU#>`sQ@qsT~>^e)a2S09#gLgegw|I z%iK2@HIOBIekf7Q2X|$j75MxiFROp1W!7lo31(K%TSYR`--h=Ke$&zGlc{hS&fA%z z)Gx{+ajW#LltEdj$AcDH(T-3A-hQ%8M5W6_HL!hk*P@gAYg*o9cn#eA4tv{k+@rUZ8~>o;_H%Iljf#c6y|wfI8ysaNC8rsANmU8? zX=z$18cA72i3$}6Itke+Ia!(-mANqrN=k~BKP&X1kf)@_$5v;QZ7uVEBz9Uh@4 zl$4Z?j>V{l$5bb%r6%SF$L8qNCP!!o=*biog2U2O&`R+jfd9T6AK>n9{U5p~cpr?vC$s?l?#cS+Uw6mr&?>IggNIdS-Ig)x8R*0M=ocbmO z+Wd#04h8XhxJ#>q9$Nma%-B7@aZA6gtF5^0C7};o9OcMuSEVTu3xi1a=jm_LI{x1Zb=KJLmcJ#GO%Re;HI0_zC(2Fn6 z(Q9+Q|3S_uQ^rf=4>A3a|BdB1n^^ys3H=b$oGfd-&wvnm{e>zl$L6uwX^8H&Av8%x zYvTmn-!{X6>PS*cBK&r}@^%wu!nrZ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&R=*vqtvY82lfs!j+3RKHm5CwO%*`M7bDkN(%x6ZM`vlZTfW|`y z1B}^vdqTF}4~yGl#w%|>WNa_rfnv@fZ~bCG z|LH>NAr^vZa!gGWbjr$>LkN@E7`lDdhV+~^lrWx)rO!oOihBD6LE&6sI0%G`BgPyt zG*hx6GxP|H!ay6gb`9B95^sYF2CJ|#UltUMSwRlF@-w&elFcPO`cc6a(yTljw-s(E zjSe=TW#{P?+ezEeB7<#HnQ6XeGs&%?F#XsSlA+2C8!~%DVo}&2jjdm|Y%9KWr|r^E z!-i9={k$t_uHOT(XAC=M?%9skK?V!LMhXl)xGzC^TLrZ69bvYXKeDapjbSwK4LUY< zJh6@ReL7_D6%%H9pJ~ii*9#};;Uinkd++nA4{#B~hpj1AKj+1wN3Xfg2D;_1t81ap M>l75e{*(G{5f}a=&j0`b literal 0 HcmV?d00001 diff --git a/vendor/langcache_client.md b/vendor/langcache_client.md new file mode 100644 index 00000000..c230c93c --- /dev/null +++ b/vendor/langcache_client.md @@ -0,0 +1,437 @@ +# lang-cache + +Developer-friendly & type-safe Python SDK specifically catered to leverage *lang-cache* API. + +
+ + + + +
+ + +

+> [!IMPORTANT] +> This SDK is not yet ready for production use. To complete setup please follow the steps outlined in your [workspace](https://app.speakeasy.com/org/redis/ai-services). Delete this section before > publishing to a package manager. + + +## Summary + +Redis LangCache Service: API for managing a Redis LangCache + + + +## Table of Contents + +- [lang-cache](#lang-cache) + - [Summary](#summary) + - [Table of Contents](#table-of-contents) + - [SDK Installation](#sdk-installation) + - [PIP](#pip) + - [Poetry](#poetry) + - [Shell and script usage with `uv`](#shell-and-script-usage-with-uv) + - [IDE Support](#ide-support) + - [PyCharm](#pycharm) + - [SDK Example Usage](#sdk-example-usage) + - [Example](#example) + - [Available Resources and Operations](#available-resources-and-operations) + - [cache](#cache) + - [entries](#entries) + - [info](#info) + - [Retries](#retries) + - [Error Handling](#error-handling) + - [Example](#example-1) + - [Server Selection](#server-selection) + - [Override Server URL Per-Client](#override-server-url-per-client) + - [Custom HTTP Client](#custom-http-client) + - [Resource Management](#resource-management) + - [Debugging](#debugging) +- [Development](#development) + - [Maturity](#maturity) + - [Contributions](#contributions) + - [SDK Created by Speakeasy](#sdk-created-by-speakeasy) + + + + +## SDK Installation + +> [!NOTE] +> **Python version upgrade policy** +> +> Once a Python version reaches its [official end of life date](https://devguide.python.org/versions/), a 3-month grace period is provided for users to upgrade. Following this grace period, the minimum python version supported in the SDK will be updated. + +The SDK can be installed with either *pip* or *poetry* package managers. + +### PIP + +*PIP* is the default package installer for Python, enabling easy installation and management of packages from PyPI via the command line. + +```bash +pip install langcache +``` + +### Poetry + +*Poetry* is a modern tool that simplifies dependency management and package publishing by using a single `pyproject.toml` file to handle project metadata and dependencies. + +```bash +poetry add langcache +``` + +### Shell and script usage with `uv` + +You can use this SDK in a Python shell with [uv](https://docs.astral.sh/uv/) and the `uvx` command that comes with it like so: + +```shell +uvx --from langcache python +``` + +It's also possible to write a standalone Python script without needing to set up a whole project like so: + +```python +#!/usr/bin/env -S uv run --script +# /// script +# requires-python = ">=3.9" +# dependencies = [ +# "langcache", +# ] +# /// + +from langcache import LangCache + +sdk = LangCache( + # SDK arguments +) + +# Rest of script here... +``` + +Once that is saved to a file, you can run it with `uv run script.py` where +`script.py` can be replaced with the actual file name. + + + +## IDE Support + +### PyCharm + +Generally, the SDK will work well with most IDEs out of the box. However, when using PyCharm, you can enjoy much better integration with Pydantic by installing an additional plugin. + +- [PyCharm Pydantic Plugin](https://docs.pydantic.dev/latest/integrations/pycharm/) + + + +## SDK Example Usage + +### Example + +```python +# Synchronous Example +from langcache import LangCache + + +with LangCache() as lang_cache: + + res = lang_cache.entries.search(cache_id="", prompt="What is the capital of France?", similarity_threshold=0.5, scope={}) + + # Handle response + print(res) +``` + +
+ +The same SDK client can also be used to make asychronous requests by importing asyncio. +```python +# Asynchronous Example +import asyncio +from langcache import LangCache + +async def main(): + + async with LangCache() as lang_cache: + + res = await lang_cache.entries.search_async(cache_id="", prompt="What is the capital of France?", similarity_threshold=0.5, scope={}) + + # Handle response + print(res) + +asyncio.run(main()) +``` + + + +## Available Resources and Operations + +
+Available methods + +### [cache](docs/sdks/cache/README.md) + +* [create](docs/sdks/cache/README.md#create) - Create a new cache +* [get](docs/sdks/cache/README.md#get) - Retrieve cache configuration +* [delete](docs/sdks/cache/README.md#delete) - Delete an existing cache +* [get_info](docs/sdks/cache/README.md#get_info) - Get cache information + +### [entries](docs/sdks/entries/README.md) + +* [search](docs/sdks/entries/README.md#search) - Search and return semantically-similar entries from the cache +* [create](docs/sdks/entries/README.md#create) - Create a new cache entry +* [delete_all](docs/sdks/entries/README.md#delete_all) - Delete multiple cache entries +* [delete](docs/sdks/entries/README.md#delete) - Delete a cache entry + +### [info](docs/sdks/info/README.md) + +* [get_info](docs/sdks/info/README.md#get_info) - Get cache information + + +
+ + + +## Retries + +Some of the endpoints in this SDK support retries. If you use the SDK without any configuration, it will fall back to the default retry strategy provided by the API. However, the default retry strategy can be overridden on a per-operation basis, or across the entire SDK. + +To change the default retry strategy for a single API call, simply provide a `RetryConfig` object to the call: +```python +from langcache import LangCache +from langcache.utils import BackoffStrategy, RetryConfig + + +with LangCache() as lang_cache: + + res = lang_cache.entries.search(cache_id="", prompt="What is the capital of France?", similarity_threshold=0.5, scope={}, + RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False)) + + # Handle response + print(res) + +``` + +If you'd like to override the default retry strategy for all operations that support retries, you can use the `retry_config` optional parameter when initializing the SDK: +```python +from langcache import LangCache +from langcache.utils import BackoffStrategy, RetryConfig + + +with LangCache( + retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False), +) as lang_cache: + + res = lang_cache.entries.search(cache_id="", prompt="What is the capital of France?", similarity_threshold=0.5, scope={}) + + # Handle response + print(res) + +``` + + + +## Error Handling + +Handling errors in this SDK should largely match your expectations. All operations return a response object or raise an exception. + +By default, an API error will raise a models.APIError exception, which has the following properties: + +| Property | Type | Description | +|-----------------|------------------|-----------------------| +| `.status_code` | *int* | The HTTP status code | +| `.message` | *str* | The error message | +| `.raw_response` | *httpx.Response* | The raw HTTP response | +| `.body` | *str* | The response content | + +When custom error responses are specified for an operation, the SDK may also raise their associated exceptions. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `search_async` method may raise the following exceptions: + +| Error Type | Status Code | Content Type | +| ----------------------- | ----------- | ---------------- | +| models.APIErrorResponse | 400 | application/json | +| models.APIErrorResponse | 503 | application/json | +| models.APIError | 4XX, 5XX | \*/\* | + +### Example + +```python +from langcache import LangCache, models + + +with LangCache() as lang_cache: + res = None + try: + + res = lang_cache.entries.search(cache_id="", prompt="What is the capital of France?", similarity_threshold=0.5, scope={}) + + # Handle response + print(res) + + except models.APIErrorResponse as e: + # handle e.data: models.APIErrorResponseData + raise(e) + except models.APIErrorResponse as e: + # handle e.data: models.APIErrorResponseData + raise(e) + except models.APIError as e: + # handle exception + raise(e) +``` + + + +## Server Selection + +### Override Server URL Per-Client + +The default server can be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example: +```python +from langcache import LangCache + + +with LangCache( + server_url="http://localhost:8080", +) as lang_cache: + + res = lang_cache.entries.search(cache_id="", prompt="What is the capital of France?", similarity_threshold=0.5, scope={}) + + # Handle response + print(res) + +``` + + + +## Custom HTTP Client + +The Python SDK makes API calls using the [httpx](https://www.python-httpx.org/) HTTP library. In order to provide a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration, you can initialize the SDK client with your own HTTP client instance. +Depending on whether you are using the sync or async version of the SDK, you can pass an instance of `HttpClient` or `AsyncHttpClient` respectively, which are Protocol's ensuring that the client has the necessary methods to make API calls. +This allows you to wrap the client with your own custom logic, such as adding custom headers, logging, or error handling, or you can just pass an instance of `httpx.Client` or `httpx.AsyncClient` directly. + +For example, you could specify a header for every request that this sdk makes as follows: +```python +from langcache import LangCache +import httpx + +http_client = httpx.Client(headers={"x-custom-header": "someValue"}) +s = LangCache(client=http_client) +``` + +or you could wrap the client with your own custom logic: +```python +from langcache import LangCache +from langcache.httpclient import AsyncHttpClient +import httpx + +class CustomClient(AsyncHttpClient): + client: AsyncHttpClient + + def __init__(self, client: AsyncHttpClient): + self.client = client + + async def send( + self, + request: httpx.Request, + *, + stream: bool = False, + auth: Union[ + httpx._types.AuthTypes, httpx._client.UseClientDefault, None + ] = httpx.USE_CLIENT_DEFAULT, + follow_redirects: Union[ + bool, httpx._client.UseClientDefault + ] = httpx.USE_CLIENT_DEFAULT, + ) -> httpx.Response: + request.headers["Client-Level-Header"] = "added by client" + + return await self.client.send( + request, stream=stream, auth=auth, follow_redirects=follow_redirects + ) + + def build_request( + self, + method: str, + url: httpx._types.URLTypes, + *, + content: Optional[httpx._types.RequestContent] = None, + data: Optional[httpx._types.RequestData] = None, + files: Optional[httpx._types.RequestFiles] = None, + json: Optional[Any] = None, + params: Optional[httpx._types.QueryParamTypes] = None, + headers: Optional[httpx._types.HeaderTypes] = None, + cookies: Optional[httpx._types.CookieTypes] = None, + timeout: Union[ + httpx._types.TimeoutTypes, httpx._client.UseClientDefault + ] = httpx.USE_CLIENT_DEFAULT, + extensions: Optional[httpx._types.RequestExtensions] = None, + ) -> httpx.Request: + return self.client.build_request( + method, + url, + content=content, + data=data, + files=files, + json=json, + params=params, + headers=headers, + cookies=cookies, + timeout=timeout, + extensions=extensions, + ) + +s = LangCache(async_client=CustomClient(httpx.AsyncClient())) +``` + + + +## Resource Management + +The `LangCache` class implements the context manager protocol and registers a finalizer function to close the underlying sync and async HTTPX clients it uses under the hood. This will close HTTP connections, release memory and free up other resources held by the SDK. In short-lived Python programs and notebooks that make a few SDK method calls, resource management may not be a concern. However, in longer-lived programs, it is beneficial to create a single SDK instance via a [context manager][context-manager] and reuse it across the application. + +[context-manager]: https://docs.python.org/3/reference/datamodel.html#context-managers + +```python +from langcache import LangCache +def main(): + + with LangCache() as lang_cache: + # Rest of application here... + + +# Or when using async: +async def amain(): + + async with LangCache() as lang_cache: + # Rest of application here... +``` + + + +## Debugging + +You can setup your SDK to emit debug logs for SDK requests and responses. + +You can pass your own logger class directly into your SDK. +```python +from langcache import LangCache +import logging + +logging.basicConfig(level=logging.DEBUG) +s = LangCache(debug_logger=logging.getLogger("langcache")) +``` + +You can also enable a default debug logger by setting an environment variable `LANGCACHE_DEBUG` to true. + + + + +# Development + +## Maturity + +This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage +to a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally +looking for the latest version. + +## Contributions + +While we value open-source contributions to this SDK, this library is generated programmatically. Any manual changes added to internal files will be overwritten on the next generation. +We look forward to hearing your feedback. Feel free to open a PR or an issue with a proof of concept and we'll do our best to include it in a future release. + +### SDK Created by [Speakeasy](https://www.speakeasy.com/?utm_source=lang-cache&utm_campaign=python) From e9e4fad5f0b9c552514a29710273500a2d08c58c Mon Sep 17 00:00:00 2001 From: Andrew Brookins Date: Thu, 17 Apr 2025 17:24:11 -0700 Subject: [PATCH 02/11] Checkpoint --- redisvl/extensions/llmcache/langcache_api.py | 225 +++++++++----- tests/unit/test_langcache_api.py | 291 +++++++++++++++++++ tests/unit/test_llmcache_schema.py | 7 +- tests/unit/test_utils.py | 2 +- 4 files changed, 442 insertions(+), 83 deletions(-) create mode 100644 tests/unit/test_langcache_api.py diff --git a/redisvl/extensions/llmcache/langcache_api.py b/redisvl/extensions/llmcache/langcache_api.py index 49291f1c..bd85f394 100644 --- a/redisvl/extensions/llmcache/langcache_api.py +++ b/redisvl/extensions/llmcache/langcache_api.py @@ -1,11 +1,14 @@ import json -from typing import Any, Dict, List, Optional +from typing import Any, Dict, List, Optional, Union from langcache import LangCache as LangCacheSDK +from langcache.models import CacheEntryScope, CacheEntryScopeTypedDict from redisvl.extensions.llmcache.base import BaseLLMCache from redisvl.query.filter import FilterExpression -from redisvl.utils.utils import current_timestamp, hashify +from redisvl.utils.utils import current_timestamp + +Scope = Optional[Union[CacheEntryScope, CacheEntryScopeTypedDict]] class LangCache(BaseLLMCache): @@ -20,6 +23,7 @@ def __init__( redis_url: str = "redis://localhost:6379", connection_kwargs: Dict[str, Any] = {}, overwrite: bool = False, + entry_scope: Scope = None, **kwargs, ): """Initialize a LangCache client. @@ -32,6 +36,7 @@ def __init__( redis_url: URL for Redis connection if no client is provided. connection_kwargs: Additional Redis connection parameters. overwrite: Whether to overwrite an existing cache with the same name. + entry_scope: Optional scope for cache entries. """ # Initialize the base class super().__init__(ttl) @@ -43,7 +48,7 @@ def __init__( self._distance_threshold = distance_threshold self._ttl = ttl self._cache_id = name - + self._entry_scope = entry_scope # Initialize LangCache SDK client self._api = LangCacheSDK(server_url=redis_url, client=redis_client) @@ -101,12 +106,28 @@ def set_ttl(self, ttl: Optional[int] = None) -> None: def clear(self) -> None: """Clear all entries from the cache while preserving the cache configuration.""" - self._api.entries.delete_all(cache_id=self._cache_id, attributes={}, scope={}) + self._api.entries.delete_all( + cache_id=self._cache_id, + attributes={}, + scope=( + self._entry_scope + if self._entry_scope is not None + else CacheEntryScope() + ), + ) async def aclear(self) -> None: """Asynchronously clear all entries from the cache.""" - # Currently using synchronous implementation since langcache doesn't have async API - self.clear() + # Use the SDK's async delete_all + await self._api.entries.delete_all_async( + cache_id=self._cache_id, + attributes={}, + scope=( + self._entry_scope + if self._entry_scope is not None + else CacheEntryScope() + ), + ) def delete(self) -> None: """Delete the cache and all its entries.""" @@ -115,8 +136,17 @@ def delete(self) -> None: async def adelete(self) -> None: """Asynchronously delete the cache and all its entries.""" - # Currently using synchronous implementation since langcache doesn't have async API - self.delete() + # Clear entries then delete cache asynchronously + await self._api.entries.delete_all_async( + cache_id=self._cache_id, + attributes={}, + scope=( + self._entry_scope + if self._entry_scope is not None + else CacheEntryScope() + ), + ) + await self._api.cache.delete_async(cache_id=self._cache_id) def drop( self, ids: Optional[List[str]] = None, keys: Optional[List[str]] = None @@ -134,14 +164,13 @@ def drop( async def adrop( self, ids: Optional[List[str]] = None, keys: Optional[List[str]] = None ) -> None: - """Asynchronously remove specific entries from the cache. - - Args: - ids: List of entry IDs to remove. - keys: List of Redis keys to remove. - """ - # Currently using synchronous implementation since langcache doesn't have async API - self.drop(ids, keys) + """Asynchronously remove specific entries from the cache.""" + # Use the SDK's async delete for each entry + if ids: + for entry_id in ids: + await self._api.entries.delete_async( + entry_id=entry_id, cache_id=self._cache_id + ) def check( self, @@ -151,6 +180,7 @@ def check( return_fields: Optional[List[str]] = None, filter_expression: Optional[FilterExpression] = None, distance_threshold: Optional[float] = None, + entry_scope: Optional[Dict[str, Any]] = None, ) -> List[Dict[str, Any]]: """Check the cache for semantically similar entries. @@ -161,7 +191,7 @@ def check( return_fields: Fields to include in the response. filter_expression: Optional filter for the search. distance_threshold: Override the default distance threshold. - + entry_scope: Optional scope for cache entries. Returns: List of matching cache entries. @@ -172,18 +202,22 @@ def check( if not any([prompt, vector]): raise ValueError("Either prompt or vector must be provided") + _scope = entry_scope or self._entry_scope + if return_fields and not isinstance(return_fields, list): raise TypeError("return_fields must be a list") # Use provided threshold or default threshold = distance_threshold or self._distance_threshold - # Search the cache - note we don't use scope since FilterExpression conversion would be complex - # and require proper implementation for CacheEntryScope format + # Search the cache - note we don't use scope since FilterExpression conversion + # would be complex (impossible?) results = self._api.entries.search( cache_id=self._cache_id, prompt=prompt or "", # Ensure prompt is never None similarity_threshold=threshold, + # Type-cast is necessary to handle the scope type correctly + scope=_scope, # type: ignore[arg-type] ) # If we need to limit results and have more than requested, slice the list @@ -235,18 +269,61 @@ async def acheck( return_fields: Optional[List[str]] = None, filter_expression: Optional[FilterExpression] = None, distance_threshold: Optional[float] = None, + entry_scope: Scope = None, ) -> List[Dict[str, Any]]: """Asynchronously check the cache for semantically similar entries.""" - # Currently using synchronous implementation since langcache doesn't have async API - return self.check( - prompt, - vector, - num_results, - return_fields, - filter_expression, - distance_threshold, + # Validate inputs + if not any([prompt, vector]): + raise ValueError("Either prompt or vector must be provided") + if return_fields and not isinstance(return_fields, list): + raise TypeError("return_fields must be a list") + + # Determine scope to use + _scope = entry_scope or self._entry_scope + + # Determine threshold + threshold = distance_threshold or self._distance_threshold + + # Perform async search + results = await self._api.entries.search_async( + cache_id=self._cache_id, + prompt=prompt or "", + similarity_threshold=threshold, + # Type-cast is necessary to handle the scope type correctly + scope=_scope, # type: ignore[arg-type] ) + # Limit results + if num_results < len(results): + results = results[:num_results] + + # Format hits + cache_hits: List[Dict[str, Any]] = [] + for result in results: + hit = { + "key": result.id, + "entry_id": result.id, + "prompt": result.prompt, + "response": result.response, + "vector_distance": result.similarity, + } + if hasattr(result, "metadata") and result.metadata: + try: + metadata_dict = {} + if hasattr(result.metadata, "__dict__"): + metadata_dict = { + k: v + for k, v in result.metadata.__dict__.items() + if not k.startswith("_") + } + hit["metadata"] = metadata_dict + except Exception: + hit["metadata"] = {} + if return_fields: + hit = {k: v for k, v in hit.items() if k in return_fields or k == "key"} + cache_hits.append(hit) + return cache_hits + def store( self, prompt: str, @@ -261,7 +338,7 @@ def store( Args: prompt: The prompt text. response: The response text. - vector: Optional vector representation of the prompt. + vector: Unused. LangCache manages vectorization internally. metadata: Optional metadata to store with the entry. filters: Optional filters to associate with the entry. ttl: Optional custom TTL for this entry. @@ -312,54 +389,29 @@ async def astore( ttl: Optional[int] = None, ) -> str: """Asynchronously store a new entry in the cache.""" - # Currently using synchronous implementation since langcache doesn't have async API - return self.store(prompt, response, vector, metadata, filters, ttl) - - def update(self, key: str, **kwargs) -> None: - """Update an existing cache entry. - - Args: - key: The entry ID to update. - **kwargs: Fields to update (prompt, response, metadata, etc.) - """ - # Find the entry to update - existing_entries = self._api.entries.search( - cache_id=self._cache_id, - prompt="", # Required parameter but we're searching by ID - attributes={"id": key}, # Search by ID as an attribute - similarity_threshold=1.0, # We're not doing semantic search - ) - - if not existing_entries: - return + # Validate metadata + if metadata is not None and not isinstance(metadata, dict): + raise ValueError("Metadata must be a dictionary") - existing_entry = existing_entries[0] + # Create entry with optional TTL + entry_ttl = ttl if ttl is not None else self._ttl - # Prepare updated values - # CacheEntry objects are Pydantic models, access their attributes directly - prompt = kwargs.get( - "prompt", existing_entry.prompt if hasattr(existing_entry, "prompt") else "" - ) - response = kwargs.get( - "response", - existing_entry.response if hasattr(existing_entry, "response") else "", - ) + # Convert ttl to ttl_millis (milliseconds) if provided + ttl_millis = entry_ttl * 1000 if entry_ttl is not None else None - # Prepare attributes for update + # Process additional attributes from filters attributes = {} - if "metadata" in kwargs: + if filters: + attributes.update(filters) + + # Add metadata to attributes if provided + if metadata: attributes["metadata"] = ( - json.dumps(kwargs["metadata"]) - if isinstance(kwargs["metadata"], dict) - else kwargs["metadata"] + json.dumps(metadata) if isinstance(metadata, dict) else metadata ) - # Convert TTL to milliseconds if provided - ttl = kwargs.get("ttl", None) - ttl_millis = ttl * 1000 if ttl is not None else None - - # Re-create the entry with updated values - self._api.entries.create( + # Store the entry and get the response + create_response = await self._api.entries.create_async( cache_id=self._cache_id, prompt=prompt, response=response, @@ -367,29 +419,44 @@ def update(self, key: str, **kwargs) -> None: ttl_millis=ttl_millis, ) + # Return the entry ID from the response + return create_response.entry_id + + def update(self, key: str, **kwargs) -> None: + """Update an existing cache entry. + + Args: + key: The entry ID to update. + **kwargs: Fields to update (prompt, response, metadata, etc.) + """ + raise NotImplementedError("LangCache SDK does not support update in place") + async def aupdate(self, key: str, **kwargs) -> None: """Asynchronously update an existing cache entry.""" - # Currently using synchronous implementation since langcache doesn't have async API - self.update(key, **kwargs) + raise NotImplementedError("LangCache SDK does not support update in place") def disconnect(self) -> None: - """Close the Redis connection.""" - # Redis clients typically don't need explicit disconnection, - # as they use connection pooling - pass + """Close the connection.""" + if self._api.sdk_configuration.client is not None: + self._api.sdk_configuration.client.close() async def adisconnect(self) -> None: - """Asynchronously close the Redis connection.""" - self.disconnect() + """Asynchronously close the connection.""" + if self._api.sdk_configuration.async_client is not None: + await self._api.sdk_configuration.async_client.aclose() + if self._api.sdk_configuration.client is not None: + self._api.sdk_configuration.client.close() def __enter__(self): + self._api.__enter__() return self def __exit__(self, exc_type, exc_val, exc_tb): - self.disconnect() + self._api.__exit__(exc_type, exc_val, exc_tb) async def __aenter__(self): + await self._api.__aenter__() return self async def __aexit__(self, exc_type, exc_val, exc_tb): - await self.adisconnect() + await self._api.__aexit__(exc_type, exc_val, exc_tb) diff --git a/tests/unit/test_langcache_api.py b/tests/unit/test_langcache_api.py new file mode 100644 index 00000000..63554832 --- /dev/null +++ b/tests/unit/test_langcache_api.py @@ -0,0 +1,291 @@ +import json + +import pytest +from langcache.models import CacheEntryScope + +from redisvl.extensions.llmcache.langcache_api import LangCache + + +@pytest.mark.asyncio +async def test_aclear_calls_async_delete_all(monkeypatch): + lang_cache = LangCache() + called = {} + + async def dummy_delete_all_async(cache_id, attributes, scope): + called["cache_id"] = cache_id + called["attributes"] = attributes + called["scope"] = scope + + monkeypatch.setattr( + lang_cache._api.entries, "delete_all_async", dummy_delete_all_async + ) + + await lang_cache.aclear() + assert called["cache_id"] == lang_cache._cache_id + assert called["attributes"] == {} + # Should use a default CacheEntryScope when scope is None + assert isinstance(called["scope"], CacheEntryScope) + + +@pytest.mark.asyncio +async def test_adelete_calls_async_delete_all_and_cache_delete(monkeypatch): + lang_cache = LangCache() + delete_all_called = False + delete_cache_called = False + scope_used = None + + async def dummy_delete_all_async(cache_id, attributes, scope): + nonlocal delete_all_called, scope_used + delete_all_called = True + scope_used = scope + assert cache_id == lang_cache._cache_id + + async def dummy_cache_delete_async(cache_id): + nonlocal delete_cache_called + delete_cache_called = True + assert cache_id == lang_cache._cache_id + + monkeypatch.setattr( + lang_cache._api.entries, "delete_all_async", dummy_delete_all_async + ) + monkeypatch.setattr(lang_cache._api.cache, "delete_async", dummy_cache_delete_async) + + await lang_cache.adelete() + assert delete_all_called and delete_cache_called + assert isinstance(scope_used, CacheEntryScope) + + +@pytest.mark.asyncio +async def test_adrop_deletes_each_id(monkeypatch): + lang_cache = LangCache() + called_ids = [] + + async def dummy_delete_async(cache_id, entry_id): + called_ids.append((cache_id, entry_id)) + + monkeypatch.setattr(lang_cache._api.entries, "delete_async", dummy_delete_async) + + await lang_cache.adrop(ids=["id1", "id2"]) + assert called_ids == [(lang_cache._cache_id, "id1"), (lang_cache._cache_id, "id2")] + + +@pytest.mark.asyncio +async def test_acheck_validates_input(monkeypatch): + lang_cache = LangCache() + with pytest.raises(ValueError): + await lang_cache.acheck() + with pytest.raises(TypeError): + # Passing wrong type on purpose to validate error + await lang_cache.acheck(prompt="p", return_fields="not a list") # type: ignore[arg-type] + + +@pytest.mark.asyncio +async def test_acheck_returns_formatted_results(monkeypatch): + lang_cache = LangCache() + + class DummyMeta: + def __init__(self): + self.foo = "bar" + + class DummyEntry: + def __init__(self, id, prompt, response, similarity, metadata=None): + self.id = id + self.prompt = prompt + self.response = response + self.similarity = similarity + self.metadata = metadata + + entries = [ + DummyEntry("1", "p1", "r1", 0.1), + DummyEntry("2", "p2", "r2", 0.2, metadata=DummyMeta()), + ] + + async def dummy_search_async(cache_id, prompt, similarity_threshold, scope=None): + assert cache_id == lang_cache._cache_id + assert prompt == "test" + # scope parameter is passed but can be None + return entries + + monkeypatch.setattr(lang_cache._api.entries, "search_async", dummy_search_async) + + hits = await lang_cache.acheck(prompt="test", num_results=2) + # Two results without timestamps + assert len(hits) == 2 + assert hits[0] == { + "key": "1", + "entry_id": "1", + "prompt": "p1", + "response": "r1", + "vector_distance": 0.1, + } + assert hits[1]["metadata"] == {"foo": "bar"} + + # Test return_fields filtering + filtered = await lang_cache.acheck( + prompt="test", num_results=2, return_fields=["response"] + ) + assert all(set(hit.keys()) <= {"key", "response"} for hit in filtered) + + # Test with custom scope + custom_scope = CacheEntryScope() + filtered_scope = await lang_cache.acheck( + prompt="test", num_results=2, entry_scope=custom_scope + ) + assert len(filtered_scope) == 2 # Still should return our mocked entries + + +@pytest.mark.asyncio +async def test_astore_calls_create_and_returns_id(monkeypatch): + lang_cache = LangCache() + + class DummyResp: + def __init__(self, entry_id): + self.entry_id = entry_id + + async def dummy_create_async(cache_id, prompt, response, attributes, ttl_millis): + assert cache_id == lang_cache._cache_id + assert prompt == "p" + assert response == "r" + # metadata should be JSON-serialized + expected_attrs = {"f": "v", "metadata": json.dumps({"a": 1})} + assert attributes == expected_attrs + assert ttl_millis == 5000 + return DummyResp("newid") + + monkeypatch.setattr(lang_cache._api.entries, "create_async", dummy_create_async) + + ret = await lang_cache.astore( + "p", "r", metadata={"a": 1}, filters={"f": "v"}, ttl=5 + ) + assert ret == "newid" + + +@pytest.mark.asyncio +async def test_astore_metadata_type_error(): + lang_cache = LangCache() + with pytest.raises(ValueError): + # Passing wrong metadata type on purpose to validate error + await lang_cache.astore("p", "r", metadata="not a dict") # type: ignore[arg-type] + + +def test_disconnect_closes_client(monkeypatch): + lang_cache = LangCache() + + # Mock scenario where client exists + class MockClient: + def __init__(self): + self.closed = False + + def close(self): + self.closed = True + + mock_client = MockClient() + + # Use monkeypatch to patch the client object + monkeypatch.setattr(lang_cache._api.sdk_configuration, "client", mock_client) + + # Call disconnect and verify it closed the client + lang_cache.disconnect() + assert mock_client.closed is True + + # Test with no client + monkeypatch.setattr(lang_cache._api.sdk_configuration, "client", None) + # Should not raise an exception + lang_cache.disconnect() + + +@pytest.mark.asyncio +async def test_adisconnect_closes_clients(monkeypatch): + lang_cache = LangCache() + + # Mock scenario where clients exist + class MockSyncClient: + def __init__(self): + self.closed = False + + def close(self): + self.closed = True + + class MockAsyncClient: + def __init__(self): + self.closed = False + + async def aclose(self): + self.closed = True + + mock_sync_client = MockSyncClient() + mock_async_client = MockAsyncClient() + + # Use monkeypatch to patch the client objects + monkeypatch.setattr(lang_cache._api.sdk_configuration, "client", mock_sync_client) + monkeypatch.setattr( + lang_cache._api.sdk_configuration, "async_client", mock_async_client + ) + + # Call adisconnect and verify it closed both clients + await lang_cache.adisconnect() + assert mock_sync_client.closed is True + assert mock_async_client.closed is True + + # Test with no clients + monkeypatch.setattr(lang_cache._api.sdk_configuration, "client", None) + monkeypatch.setattr(lang_cache._api.sdk_configuration, "async_client", None) + # Should not raise an exception + await lang_cache.adisconnect() + + +def test_context_manager_calls_api_methods(monkeypatch): + # Create a client with a mock API + class MockAPI: + def __init__(self): + self.enter_called = False + self.exit_args = None + + def __enter__(self): + self.enter_called = True + return self + + def __exit__(self, exc_type, exc_val, exc_tb): + self.exit_args = (exc_type, exc_val, exc_tb) + + mock_api = MockAPI() + lang_cache = LangCache() + # Use monkeypatch to replace the API + monkeypatch.setattr(lang_cache, "_api", mock_api) + + # Test the synchronous context manager + with lang_cache as lc: + assert lc is lang_cache + assert mock_api.enter_called is True + + # Verify __exit__ was called with None args (no exception) + assert mock_api.exit_args == (None, None, None) + + +@pytest.mark.asyncio +async def test_async_context_manager_calls_api_methods(monkeypatch): + # Create a client with a mock API + class MockAPI: + def __init__(self): + self.enter_called = False + self.exit_args = None + + async def __aenter__(self): + self.enter_called = True + return self + + async def __aexit__(self, exc_type, exc_val, exc_tb): + self.exit_args = (exc_type, exc_val, exc_tb) + + mock_api = MockAPI() + lang_cache = LangCache() + # Use monkeypatch to replace the API + monkeypatch.setattr(lang_cache, "_api", mock_api) + + # Test the asynchronous context manager + async with lang_cache as lc: + assert lc is lang_cache + assert mock_api.enter_called is True + + # Verify __aexit__ was called with None args (no exception) + assert mock_api.exit_args == (None, None, None) diff --git a/tests/unit/test_llmcache_schema.py b/tests/unit/test_llmcache_schema.py index 72f230fc..9aa4b0e5 100644 --- a/tests/unit/test_llmcache_schema.py +++ b/tests/unit/test_llmcache_schema.py @@ -4,7 +4,8 @@ from pydantic import ValidationError from redisvl.extensions.llmcache.schema import CacheEntry, CacheHit -from redisvl.redis.utils import array_to_buffer, hashify +from redisvl.redis.utils import array_to_buffer +from redisvl.utils.utils import hashify def test_valid_cache_entry_creation(): @@ -35,7 +36,7 @@ def test_cache_entry_with_invalid_metadata(): prompt="What is AI?", response="AI is artificial intelligence.", prompt_vector=[0.1, 0.2, 0.3], - metadata="invalid_metadata", + metadata="invalid_metadata", # type: ignore[arg-type] ) @@ -79,7 +80,7 @@ def test_cache_hit_with_serialized_metadata(): vector_distance=0.1, inserted_at=1625819123.123, updated_at=1625819123.123, - metadata=json.dumps({"author": "John"}), + metadata=json.dumps({"author": "John"}), # type: ignore[arg-type] ) assert hit.metadata == {"author": "John"} diff --git a/tests/unit/test_utils.py b/tests/unit/test_utils.py index 59a1abd8..2ceac02a 100644 --- a/tests/unit/test_utils.py +++ b/tests/unit/test_utils.py @@ -160,7 +160,7 @@ def test_empty_list_to_bytes(): assert array_to_buffer(array, dtype="float32") == expected -@pytest.mark.parametrize("dtype", ["float64", "float32", "float16", "bfloat16"]) +@pytest.mark.parametrize("dtype", ["float64", "float32", "float16"]) def test_conversion_with_various_dtypes(dtype): """Test conversion of a list of floats to bytes with various dtypes""" array = [1.0, -2.0, 3.5] From f0231f4cdc3da6506574c3c58adff1d2fd2d1a44 Mon Sep 17 00:00:00 2001 From: Andrew Brookins Date: Fri, 18 Apr 2025 16:18:50 -0700 Subject: [PATCH 03/11] Skip flaky tests --- tests/integration/test_query.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/integration/test_query.py b/tests/integration/test_query.py index 14749b1d..c1fad1e4 100644 --- a/tests/integration/test_query.py +++ b/tests/integration/test_query.py @@ -598,6 +598,7 @@ def test_sort_vector_query(index, sorted_vector_query): search(sorted_vector_query, index, t, 7, sort=True) +@pytest.mark.skip("Flaky test") def test_sort_range_query(index, sorted_range_query): t = Text("job") % "" search(sorted_range_query, index, t, 7, sort=True) @@ -803,6 +804,9 @@ def test_range_query_normalize_bad_input(index): "scorer", ["BM25", "TFIDF", "TFIDF.DOCNORM", "DISMAX", "DOCSCORE"] ) def test_text_query(index, scorer): + if scorer == "BM25": + pytest.skip("BM25 test is flaky") + text = "a medical professional with expertise in lung cancer" text_field = "description" return_fields = ["user", "credit_score", "age", "job", "location", "description"] From 3dc3faae39f6e4cbd853d47e15756662cef9ef56 Mon Sep 17 00:00:00 2001 From: Andrew Brookins Date: Fri, 18 Apr 2025 17:41:11 -0700 Subject: [PATCH 04/11] Skip flaky tests --- tests/integration/test_query.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/integration/test_query.py b/tests/integration/test_query.py index c1fad1e4..fe8acadf 100644 --- a/tests/integration/test_query.py +++ b/tests/integration/test_query.py @@ -560,6 +560,7 @@ def test_paginate_vector_query(index, vector_query, sample_data): assert i == expected_iterations +@pytest.mark.skip("Flaky test") def test_paginate_filter_query(index, filter_query): batch_size = 3 all_results = [] From ec5fa876bff6fb222d65eaa6bbc29a7ed9b8e6de Mon Sep 17 00:00:00 2001 From: Andrew Brookins Date: Mon, 21 Apr 2025 12:09:27 -0700 Subject: [PATCH 05/11] Skip a flaky test --- tests/integration/test_query.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/integration/test_query.py b/tests/integration/test_query.py index fe8acadf..c78ae309 100644 --- a/tests/integration/test_query.py +++ b/tests/integration/test_query.py @@ -575,6 +575,7 @@ def test_paginate_filter_query(index, filter_query): assert all(item["credit_score"] == "high" for item in all_results) +@pytest.mark.skip("Flaky test") def test_paginate_range_query(index, range_query): batch_size = 1 all_results = [] From abe0ecdb13a64a8cb719021cf2e8024d44afee5a Mon Sep 17 00:00:00 2001 From: Andrew Brookins Date: Tue, 22 Apr 2025 17:06:55 -0700 Subject: [PATCH 06/11] Attempt to fix dupe data in tests with unique indexes --- redisvl/extensions/cache/llm/langcache_api.py | 7 +- redisvl/extensions/llmcache/__init__.py | 2 +- redisvl/extensions/llmcache/langcache_api.py | 500 ------------------ tests/conftest.py | 32 +- tests/integration/test_query.py | 27 +- 5 files changed, 43 insertions(+), 525 deletions(-) delete mode 100644 redisvl/extensions/llmcache/langcache_api.py diff --git a/redisvl/extensions/cache/llm/langcache_api.py b/redisvl/extensions/cache/llm/langcache_api.py index 89012c72..e4ce3073 100644 --- a/redisvl/extensions/cache/llm/langcache_api.py +++ b/redisvl/extensions/cache/llm/langcache_api.py @@ -21,7 +21,7 @@ def __init__( distance_threshold: float = 0.1, ttl: Optional[int] = None, redis_url: str = "redis://localhost:6379", - connection_kwargs: Dict[str, Any] = {}, + connection_kwargs: Optional[Dict[str, Any]] = None, overwrite: bool = False, entry_scope: Scope = None, **kwargs, @@ -38,7 +38,9 @@ def __init__( overwrite: Whether to overwrite an existing cache with the same name. entry_scope: Optional scope for cache entries. """ - # Initialize the base class + if connection_kwargs is None: + connection_kwargs = {} + super().__init__( name=name, ttl=ttl, @@ -47,7 +49,6 @@ def __init__( connection_kwargs=connection_kwargs, ) - # Store configuration self._name = name self._redis_client = redis_client self._redis_url = redis_url diff --git a/redisvl/extensions/llmcache/__init__.py b/redisvl/extensions/llmcache/__init__.py index 188a9d5e..393d2d27 100644 --- a/redisvl/extensions/llmcache/__init__.py +++ b/redisvl/extensions/llmcache/__init__.py @@ -21,7 +21,7 @@ stacklevel=2, ) -from redisvl.extensions.llmcache.langcache_api import LangCache +from redisvl.extensions.cache.llm.langcache_api import LangCache __all__ = [ "BaseLLMCache", diff --git a/redisvl/extensions/llmcache/langcache_api.py b/redisvl/extensions/llmcache/langcache_api.py deleted file mode 100644 index 3f52301d..00000000 --- a/redisvl/extensions/llmcache/langcache_api.py +++ /dev/null @@ -1,500 +0,0 @@ -import json -import warnings -from typing import Any, Dict, List, Optional, Union - -from langcache import LangCache as LangCacheSDK -from langcache.models import CacheEntryScope, CacheEntryScopeTypedDict - -from redisvl.extensions.cache.llm.langcache_api import LangCache as NewLangCache -from redisvl.query.filter import FilterExpression -from redisvl.utils.utils import current_timestamp - -warnings.warn( - "Importing from redisvl.extensions.llmcache.langcache_api is deprecated. " - "Please import from redisvl.extensions.cache.llm instead.", - DeprecationWarning, - stacklevel=2, -) - -Scope = Optional[Union[CacheEntryScope, CacheEntryScopeTypedDict]] - - -class LangCache(NewLangCache): - """Redis LangCache Service: API for managing a Redis LangCache""" - - def __init__( - self, - redis_client=None, - name: str = "llmcache", - distance_threshold: float = 0.1, - ttl: Optional[int] = None, - redis_url: str = "redis://localhost:6379", - connection_kwargs: Dict[str, Any] = {}, - overwrite: bool = False, - entry_scope: Scope = None, - **kwargs, - ): - """Initialize a LangCache client. - - Args: - redis_client: A Redis client instance. - name: Name of the cache. - distance_threshold: Threshold for semantic similarity (0.0 to 1.0). - ttl: Time-to-live for cache entries in seconds. - redis_url: URL for Redis connection if no client is provided. - connection_kwargs: Additional Redis connection parameters. - overwrite: Whether to overwrite an existing cache with the same name. - entry_scope: Optional scope for cache entries. - """ - # Initialize the base class - super().__init__( - name=name, - ttl=ttl, - redis_client=redis_client, - redis_url=redis_url, - connection_kwargs=connection_kwargs, - ) - - # Store configuration - self._name = name - self._redis_client = redis_client - self._redis_url = redis_url - self._distance_threshold = distance_threshold - self._ttl = ttl - self._cache_id = name - self._entry_scope = entry_scope - # Initialize LangCache SDK client - self._api = LangCacheSDK(server_url=redis_url, client=redis_client) - - # Create cache if it doesn't exist or if overwrite is True - try: - existing_cache = self._api.cache.get(cache_id=self._cache_id) - if not existing_cache and overwrite: - self._api.cache.create( - index_name=self._name, - redis_urls=[self._redis_url], - ) - except Exception: - # If the cache doesn't exist, create it - if overwrite: - self._api.cache.create( - index_name=self._name, - redis_urls=[self._redis_url], - ) - - @property - def distance_threshold(self) -> float: - """Get the current distance threshold for semantic similarity.""" - return self._distance_threshold - - def set_threshold(self, distance_threshold: float) -> None: - """Sets the semantic distance threshold for the cache. - - Args: - distance_threshold: The semantic distance threshold. - - Raises: - ValueError: If the threshold is not between 0 and 2. - """ - if not 0 <= float(distance_threshold) <= 2: - raise ValueError("Distance threshold must be between 0 and 2") - self._distance_threshold = float(distance_threshold) - - @property - def ttl(self) -> Optional[int]: - """Get the current TTL setting for cache entries.""" - return self._ttl - - def set_ttl(self, ttl: Optional[int] = None) -> None: - """Set the TTL for cache entries. - - Args: - ttl: Time-to-live in seconds, or None to disable expiration. - - Raises: - ValueError: If ttl is negative. - """ - if ttl is not None and ttl < 0: - raise ValueError("TTL must be a positive integer or None") - self._ttl = ttl - - def clear(self) -> None: - """Clear all entries from the cache while preserving the cache configuration.""" - self._api.entries.delete_all( - cache_id=self._cache_id, - attributes={}, - scope=( - self._entry_scope - if self._entry_scope is not None - else CacheEntryScope() - ), - ) - - async def aclear(self) -> None: - """Asynchronously clear all entries from the cache.""" - # Use the SDK's async delete_all - await self._api.entries.delete_all_async( - cache_id=self._cache_id, - attributes={}, - scope=( - self._entry_scope - if self._entry_scope is not None - else CacheEntryScope() - ), - ) - - def delete(self) -> None: - """Delete the cache and all its entries.""" - self.clear() - self._api.cache.delete(cache_id=self._cache_id) - - async def adelete(self) -> None: - """Asynchronously delete the cache and all its entries.""" - # Clear entries then delete cache asynchronously - await self._api.entries.delete_all_async( - cache_id=self._cache_id, - attributes={}, - scope=( - self._entry_scope - if self._entry_scope is not None - else CacheEntryScope() - ), - ) - await self._api.cache.delete_async(cache_id=self._cache_id) - - def drop( - self, ids: Optional[List[str]] = None, keys: Optional[List[str]] = None - ) -> None: - """Remove specific entries from the cache. - - Args: - ids: List of entry IDs to remove. - keys: List of Redis keys to remove. - """ - if ids: - for entry_id in ids: - self._api.entries.delete(entry_id=entry_id, cache_id=self._cache_id) - - async def adrop( - self, ids: Optional[List[str]] = None, keys: Optional[List[str]] = None - ) -> None: - """Asynchronously remove specific entries from the cache.""" - # Use the SDK's async delete for each entry - if ids: - for entry_id in ids: - await self._api.entries.delete_async( - entry_id=entry_id, cache_id=self._cache_id - ) - - def check( - self, - prompt: Optional[str] = None, - vector: Optional[List[float]] = None, - num_results: int = 1, - return_fields: Optional[List[str]] = None, - filter_expression: Optional[FilterExpression] = None, - distance_threshold: Optional[float] = None, - entry_scope: Scope = None, - ) -> List[Dict[str, Any]]: - """Check the cache for semantically similar entries. - - Args: - prompt: The text prompt to search for. - vector: The vector representation of the prompt. - num_results: Maximum number of results to return. - return_fields: Fields to include in the response. - filter_expression: Optional filter for the search. - distance_threshold: Override the default distance threshold. - entry_scope: Optional scope for cache entries. - Returns: - List of matching cache entries. - - Raises: - ValueError: If neither prompt nor vector is provided. - TypeError: If return_fields is not a list when provided. - """ - if not any([prompt, vector]): - raise ValueError("Either prompt or vector must be provided") - - _scope = entry_scope or self._entry_scope - - if return_fields and not isinstance(return_fields, list): - raise TypeError("return_fields must be a list") - - # Use provided threshold or default - threshold = distance_threshold or self._distance_threshold - - # Search the cache - note we don't use scope since FilterExpression conversion - # would be complex (impossible?) - results = self._api.entries.search( - cache_id=self._cache_id, - prompt=prompt or "", # Ensure prompt is never None - similarity_threshold=threshold, - # Type-cast is necessary to handle the scope type correctly - scope=_scope, # type: ignore[arg-type] - ) - - # If we need to limit results and have more than requested, slice the list - if num_results < len(results): - results = results[:num_results] - - # Process and format results - cache_hits = [] - for result in results: - # Create a basic hit dict with required fields - hit = { - "key": result.id, - "entry_id": result.id, - "prompt": result.prompt, - "response": result.response, - "vector_distance": result.similarity, - "inserted_at": current_timestamp(), # Not available in the model - "updated_at": current_timestamp(), # Not available in the model - } - - # Add metadata if it exists - if hasattr(result, "metadata") and result.metadata: - try: - metadata_dict = {} - # Convert metadata object to dict if possible - if hasattr(result.metadata, "__dict__"): - metadata_dict = { - k: v - for k, v in result.metadata.__dict__.items() - if not k.startswith("_") - } - hit["metadata"] = metadata_dict - except Exception: - hit["metadata"] = {} - - # Filter return fields if specified - if return_fields: - hit = {k: v for k, v in hit.items() if k in return_fields or k == "key"} - - cache_hits.append(hit) - - return cache_hits - - async def acheck( - self, - prompt: Optional[str] = None, - vector: Optional[List[float]] = None, - num_results: int = 1, - return_fields: Optional[List[str]] = None, - filter_expression: Optional[FilterExpression] = None, - distance_threshold: Optional[float] = None, - entry_scope: Scope = None, - ) -> List[Dict[str, Any]]: - """Asynchronously check the cache for semantically similar entries.""" - # Validate inputs - if not any([prompt, vector]): - raise ValueError("Either prompt or vector must be provided") - if return_fields and not isinstance(return_fields, list): - raise TypeError("return_fields must be a list") - - # Determine scope to use - _scope = entry_scope or self._entry_scope - - # Determine threshold - threshold = distance_threshold or self._distance_threshold - - # Perform async search - results = await self._api.entries.search_async( - cache_id=self._cache_id, - prompt=prompt or "", - similarity_threshold=threshold, - # Type-cast is necessary to handle the scope type correctly - scope=_scope, # type: ignore[arg-type] - ) - - # Limit results - if num_results < len(results): - results = results[:num_results] - - # Format hits - cache_hits: List[Dict[str, Any]] = [] - for result in results: - hit = { - "key": result.id, - "entry_id": result.id, - "prompt": result.prompt, - "response": result.response, - "vector_distance": result.similarity, - } - if hasattr(result, "metadata") and result.metadata: - try: - metadata_dict = {} - if hasattr(result.metadata, "__dict__"): - metadata_dict = { - k: v - for k, v in result.metadata.__dict__.items() - if not k.startswith("_") - } - hit["metadata"] = metadata_dict - except Exception: - hit["metadata"] = {} - if return_fields: - hit = {k: v for k, v in hit.items() if k in return_fields or k == "key"} - cache_hits.append(hit) - return cache_hits - - def store( - self, - prompt: str, - response: str, - vector: Optional[List[float]] = None, - metadata: Optional[Dict[str, Any]] = None, - filters: Optional[Dict[str, Any]] = None, - ttl: Optional[int] = None, - entry_scope: Scope = None, - ) -> str: - """Store a new entry in the cache. - - Args: - prompt: The prompt text. - response: The response text. - vector: Unused. LangCache manages vectorization internally. - metadata: Optional metadata to store with the entry. - filters: Optional filters to associate with the entry. - ttl: Optional custom TTL for this entry. - entry_scope: Optional scope for the cache entry. - - Returns: - The ID of the created entry. - """ - # Validate metadata - if metadata is not None and not isinstance(metadata, dict): - raise ValueError("Metadata must be a dictionary") - - # Create entry with optional TTL - entry_ttl = ttl if ttl is not None else self._ttl - - # Convert ttl to ttl_millis (milliseconds) if provided - ttl_millis = entry_ttl * 1000 if entry_ttl is not None else None - - # Process additional attributes from filters - attributes = {} - if filters: - attributes.update(filters) - - # Add metadata to attributes if provided - if metadata: - attributes["metadata"] = ( - json.dumps(metadata) if isinstance(metadata, dict) else metadata - ) - - # Use the provided scope or fall back to the instance default - scope = entry_scope if entry_scope is not None else self._entry_scope - - # Store the entry and get the response - create_response = self._api.entries.create( - cache_id=self._cache_id, - prompt=prompt, - response=response, - attributes=attributes, - ttl_millis=ttl_millis, - scope=scope, - ) - - # Return the entry ID from the response - return create_response.entry_id - - async def astore( - self, - prompt: str, - response: str, - vector: Optional[List[float]] = None, - metadata: Optional[Dict[str, Any]] = None, - filters: Optional[Dict[str, Any]] = None, - ttl: Optional[int] = None, - entry_scope: Scope = None, - ) -> str: - """Asynchronously store a new entry in the cache. - - Args: - prompt: The prompt text. - response: The response text. - vector: Unused. LangCache manages vectorization internally. - metadata: Optional metadata to store with the entry. - filters: Optional filters to associate with the entry. - ttl: Optional custom TTL for this entry. - entry_scope: Optional scope for the cache entry. - - Returns: - The ID of the created entry. - """ - # Validate metadata - if metadata is not None and not isinstance(metadata, dict): - raise ValueError("Metadata must be a dictionary") - - # Create entry with optional TTL - entry_ttl = ttl if ttl is not None else self._ttl - - # Convert ttl to ttl_millis (milliseconds) if provided - ttl_millis = entry_ttl * 1000 if entry_ttl is not None else None - - # Process additional attributes from filters - attributes = {} - if filters: - attributes.update(filters) - - # Add metadata to attributes if provided - if metadata: - attributes["metadata"] = ( - json.dumps(metadata) if isinstance(metadata, dict) else metadata - ) - - # Use the provided scope or fall back to the instance default - scope = entry_scope if entry_scope is not None else self._entry_scope - - # Store the entry and get the response - create_response = await self._api.entries.create_async( - cache_id=self._cache_id, - prompt=prompt, - response=response, - attributes=attributes, - ttl_millis=ttl_millis, - scope=scope, - ) - - # Return the entry ID from the response - return create_response.entry_id - - def update(self, key: str, **kwargs) -> None: - """Update an existing cache entry. - - Args: - key: The entry ID to update. - **kwargs: Fields to update (prompt, response, metadata, etc.) - """ - raise NotImplementedError("LangCache SDK does not support update in place") - - async def aupdate(self, key: str, **kwargs) -> None: - """Asynchronously update an existing cache entry.""" - raise NotImplementedError("LangCache SDK does not support update in place") - - def disconnect(self) -> None: - """Close the connection.""" - if self._api.sdk_configuration.client is not None: - self._api.sdk_configuration.client.close() - - async def adisconnect(self) -> None: - """Asynchronously close the connection.""" - if self._api.sdk_configuration.async_client is not None: - await self._api.sdk_configuration.async_client.aclose() - if self._api.sdk_configuration.client is not None: - self._api.sdk_configuration.client.close() - - def __enter__(self): - self._api.__enter__() - return self - - def __exit__(self, exc_type, exc_val, exc_tb): - self._api.__exit__(exc_type, exc_val, exc_tb) - - async def __aenter__(self): - await self._api.__aenter__() - return self - - async def __aexit__(self, exc_type, exc_val, exc_tb): - await self._api.__aexit__(exc_type, exc_val, exc_tb) diff --git a/tests/conftest.py b/tests/conftest.py index 6a083539..93727a8b 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -196,16 +196,20 @@ def pytest_collection_modifyitems( @pytest.fixture -def flat_index(sample_data, redis_url): +def flat_index(sample_data, redis_url, request): """ A fixture that uses the "flag" algorithm for its vector field. """ + # In xdist, the config has "workerid" in workerinput + workerinput = getattr(request.config, "workerinput", {}) + worker_id = workerinput.get("workerid", "master") + # construct a search index from the schema index = SearchIndex.from_dict( { "index": { "name": "user_index", - "prefix": "v1", + "prefix": f"v1_{worker_id}", "storage_type": "hash", }, "fields": [ @@ -250,16 +254,20 @@ def hash_preprocess(item: dict) -> dict: @pytest.fixture -async def async_flat_index(sample_data, redis_url): +async def async_flat_index(sample_data, redis_url, request): """ A fixture that uses the "flag" algorithm for its vector field. """ + # In xdist, the config has "workerid" in workerinput + workerinput = getattr(request.config, "workerinput", {}) + worker_id = workerinput.get("workerid", "master") + # construct a search index from the schema index = AsyncSearchIndex.from_dict( { "index": { "name": "user_index", - "prefix": "v1", + "prefix": f"v1_{worker_id}", "storage_type": "hash", }, "fields": [ @@ -304,15 +312,19 @@ def hash_preprocess(item: dict) -> dict: @pytest.fixture -async def async_hnsw_index(sample_data, redis_url): +async def async_hnsw_index(sample_data, redis_url, request): """ A fixture that uses the "hnsw" algorithm for its vector field. """ + # In xdist, the config has "workerid" in workerinput + workerinput = getattr(request.config, "workerinput", {}) + worker_id = workerinput.get("workerid", "master") + index = AsyncSearchIndex.from_dict( { "index": { "name": "user_index", - "prefix": "v1", + "prefix": f"v1_{worker_id}", "storage_type": "hash", }, "fields": [ @@ -354,15 +366,19 @@ def hash_preprocess(item: dict) -> dict: @pytest.fixture -def hnsw_index(sample_data, redis_url): +def hnsw_index(sample_data, redis_url, request): """ A fixture that uses the "hnsw" algorithm for its vector field. """ + # In xdist, the config has "workerid" in workerinput + workerinput = getattr(request.config, "workerinput", {}) + worker_id = workerinput.get("workerid", "master") + index = SearchIndex.from_dict( { "index": { "name": "user_index", - "prefix": "v1", + "prefix": f"v1_{worker_id}", "storage_type": "hash", }, "fields": [ diff --git a/tests/integration/test_query.py b/tests/integration/test_query.py index c78ae309..821f8104 100644 --- a/tests/integration/test_query.py +++ b/tests/integration/test_query.py @@ -143,13 +143,17 @@ def sorted_range_query(): @pytest.fixture -def index(sample_data, redis_url): +def index(sample_data, redis_url, request): + # In xdist, the config has "workerid" in workerinput + workerinput = getattr(request.config, "workerinput", {}) + worker_id = workerinput.get("workerid", "master") + # construct a search index from the schema index = SearchIndex.from_dict( { "index": { "name": "user_index", - "prefix": "v1", + "prefix": f"v1_{worker_id}", "storage_type": "hash", }, "fields": [ @@ -194,13 +198,17 @@ def hash_preprocess(item: dict) -> dict: @pytest.fixture -def L2_index(sample_data, redis_url): +def L2_index(sample_data, redis_url, request): + # In xdist, the config has "workerid" in workerinput + workerinput = getattr(request.config, "workerinput", {}) + worker_id = workerinput.get("workerid", "master") + # construct a search index from the schema index = SearchIndex.from_dict( { "index": { "name": "L2_index", - "prefix": "L2_index", + "prefix": f"L2_index_{worker_id}", "storage_type": "hash", }, "fields": [ @@ -560,7 +568,6 @@ def test_paginate_vector_query(index, vector_query, sample_data): assert i == expected_iterations -@pytest.mark.skip("Flaky test") def test_paginate_filter_query(index, filter_query): batch_size = 3 all_results = [] @@ -575,7 +582,6 @@ def test_paginate_filter_query(index, filter_query): assert all(item["credit_score"] == "high" for item in all_results) -@pytest.mark.skip("Flaky test") def test_paginate_range_query(index, range_query): batch_size = 1 all_results = [] @@ -600,7 +606,6 @@ def test_sort_vector_query(index, sorted_vector_query): search(sorted_vector_query, index, t, 7, sort=True) -@pytest.mark.skip("Flaky test") def test_sort_range_query(index, sorted_range_query): t = Text("job") % "" search(sorted_range_query, index, t, 7, sort=True) @@ -806,10 +811,6 @@ def test_range_query_normalize_bad_input(index): "scorer", ["BM25", "TFIDF", "TFIDF.DOCNORM", "DISMAX", "DOCSCORE"] ) def test_text_query(index, scorer): - if scorer == "BM25": - pytest.skip("BM25 test is flaky") - - text = "a medical professional with expertise in lung cancer" text_field = "description" return_fields = ["user", "credit_score", "age", "job", "location", "description"] @@ -828,7 +829,7 @@ def test_text_query(index, scorer): assert any(word in result[text_field] for word in text.split()) -# test that text queryies work with filter expressions +# test that text queries work with filter expressions def test_text_query_with_filter(index): text = "a medical professional with expertise in lung cancer" text_field = "description" @@ -851,7 +852,7 @@ def test_text_query_with_filter(index): assert int(result["age"]) > 30 -# test that text queryies workt with text filter expressions on the same text field +# test that text queries worked with text filter expressions on the same text field def test_text_query_with_text_filter(index): text = "a medical professional with expertise in lung cancer" text_field = "description" From fb8ab193c183d76f06e768f738d7628a5806e9e7 Mon Sep 17 00:00:00 2001 From: Andrew Brookins Date: Tue, 22 Apr 2025 17:32:47 -0700 Subject: [PATCH 07/11] Fix missing variable --- tests/integration/test_query.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/integration/test_query.py b/tests/integration/test_query.py index 821f8104..1b9ce5b8 100644 --- a/tests/integration/test_query.py +++ b/tests/integration/test_query.py @@ -811,6 +811,7 @@ def test_range_query_normalize_bad_input(index): "scorer", ["BM25", "TFIDF", "TFIDF.DOCNORM", "DISMAX", "DOCSCORE"] ) def test_text_query(index, scorer): + text = "a medical professional with expertise in lung cancer" text_field = "description" return_fields = ["user", "credit_score", "age", "job", "location", "description"] From eea6266851ab7965e49379facf03d985b96c6ca0 Mon Sep 17 00:00:00 2001 From: Andrew Brookins Date: Tue, 22 Apr 2025 18:16:31 -0700 Subject: [PATCH 08/11] First pass at central HF fixtures --- redisvl/extensions/cache/llm/schema.py | 7 +----- tests/conftest.py | 10 ++++++++ tests/integration/test_aggregation.py | 8 +++++-- tests/integration/test_async_search_index.py | 25 ++++++++++++++++---- tests/integration/test_llmcache.py | 8 +++---- tests/integration/test_search_index.py | 25 ++++++++++++++++---- tests/integration/test_search_results.py | 8 +++++-- tests/integration/test_semantic_router.py | 4 ++-- tests/integration/test_session_manager.py | 4 ++-- 9 files changed, 73 insertions(+), 26 deletions(-) diff --git a/redisvl/extensions/cache/llm/schema.py b/redisvl/extensions/cache/llm/schema.py index 5826cd12..74337090 100644 --- a/redisvl/extensions/cache/llm/schema.py +++ b/redisvl/extensions/cache/llm/schema.py @@ -11,12 +11,7 @@ ) from redisvl.redis.utils import array_to_buffer from redisvl.schema import IndexSchema -from redisvl.utils.utils import ( # hashify is from utils.utils, not redis.utils - current_timestamp, - deserialize, - hashify, - serialize, -) +from redisvl.utils.utils import current_timestamp, deserialize, hashify, serialize class CacheEntry(BaseModel): diff --git a/tests/conftest.py b/tests/conftest.py index 93727a8b..fa981aac 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -80,6 +80,16 @@ def hf_vectorizer(): ) +@pytest.fixture(scope="session") +def hf_vectorizer_float16(): + return HFTextVectorizer(dtype="float16") + + +@pytest.fixture(scope="session") +def hf_vectorizer_with_model(): + return HFTextVectorizer("sentence-transformers/all-mpnet-base-v2") + + @pytest.fixture def sample_datetimes(): return { diff --git a/tests/integration/test_aggregation.py b/tests/integration/test_aggregation.py index deab8afe..5561e98d 100644 --- a/tests/integration/test_aggregation.py +++ b/tests/integration/test_aggregation.py @@ -10,12 +10,16 @@ @pytest.fixture -def index(sample_data, redis_url): +def index(sample_data, redis_url, request): + # In xdist, the config has "workerid" in workerinput + workerinput = getattr(request.config, "workerinput", {}) + worker_id = workerinput.get("workerid", "master") + index = SearchIndex.from_dict( { "index": { "name": "user_index", - "prefix": "v1", + "prefix": f"v1_{worker_id}", "storage_type": "hash", }, "fields": [ diff --git a/tests/integration/test_async_search_index.py b/tests/integration/test_async_search_index.py index 4df7cb06..eb0ebbab 100644 --- a/tests/integration/test_async_search_index.py +++ b/tests/integration/test_async_search_index.py @@ -32,13 +32,30 @@ def async_index(index_schema, async_client): @pytest.fixture -def async_index_from_dict(): - return AsyncSearchIndex.from_dict({"index": {"name": "my_index"}, "fields": fields}) +def async_index_from_dict(request): + # In xdist, the config has "workerid" in workerinput + workerinput = getattr(request.config, "workerinput", {}) + worker_id = workerinput.get("workerid", "master") + + return AsyncSearchIndex.from_dict( + {"index": {"name": "my_index", "prefix": f"rvl_{worker_id}"}, "fields": fields} + ) @pytest.fixture -def async_index_from_yaml(): - return AsyncSearchIndex.from_yaml("schemas/test_json_schema.yaml") +def async_index_from_yaml(request): + # In xdist, the config has "workerid" in workerinput + workerinput = getattr(request.config, "workerinput", {}) + worker_id = workerinput.get("workerid", "master") + + # Load the schema from YAML + schema = IndexSchema.from_yaml("schemas/test_json_schema.yaml") + + # Modify the prefix to include the worker ID + schema.index.prefix = f"{schema.index.prefix}_{worker_id}" + + # Create the AsyncSearchIndex with the modified schema + return AsyncSearchIndex(schema=schema) def test_search_index_properties(index_schema, async_index): diff --git a/tests/integration/test_llmcache.py b/tests/integration/test_llmcache.py index 43bad503..261c4fd6 100644 --- a/tests/integration/test_llmcache.py +++ b/tests/integration/test_llmcache.py @@ -16,8 +16,8 @@ @pytest.fixture -def vectorizer(): - return HFTextVectorizer("sentence-transformers/all-mpnet-base-v2") +def vectorizer(hf_vectorizer_with_model): + return hf_vectorizer_with_model @pytest.fixture @@ -929,12 +929,12 @@ def test_bad_dtype_connecting_to_existing_cache(redis_url): ) -def test_vectorizer_dtype_mismatch(redis_url): +def test_vectorizer_dtype_mismatch(redis_url, hf_vectorizer_float16): with pytest.raises(ValueError): SemanticCache( name="test_dtype_mismatch", dtype="float32", - vectorizer=HFTextVectorizer(dtype="float16"), + vectorizer=hf_vectorizer_float16, redis_url=redis_url, overwrite=True, ) diff --git a/tests/integration/test_search_index.py b/tests/integration/test_search_index.py index 3a8ddd98..2b407bba 100644 --- a/tests/integration/test_search_index.py +++ b/tests/integration/test_search_index.py @@ -42,13 +42,30 @@ def index(index_schema, client): @pytest.fixture -def index_from_dict(): - return SearchIndex.from_dict({"index": {"name": "my_index"}, "fields": fields}) +def index_from_dict(request): + # In xdist, the config has "workerid" in workerinput + workerinput = getattr(request.config, "workerinput", {}) + worker_id = workerinput.get("workerid", "master") + + return SearchIndex.from_dict( + {"index": {"name": "my_index", "prefix": f"rvl_{worker_id}"}, "fields": fields} + ) @pytest.fixture -def index_from_yaml(): - return SearchIndex.from_yaml("schemas/test_json_schema.yaml") +def index_from_yaml(request): + # In xdist, the config has "workerid" in workerinput + workerinput = getattr(request.config, "workerinput", {}) + worker_id = workerinput.get("workerid", "master") + + # Load the schema from YAML + schema = IndexSchema.from_yaml("schemas/test_json_schema.yaml") + + # Modify the prefix to include the worker ID + schema.index.prefix = f"{schema.index.prefix}_{worker_id}" + + # Create the SearchIndex with the modified schema + return SearchIndex(schema=schema) def test_search_index_properties(index_schema, index): diff --git a/tests/integration/test_search_results.py b/tests/integration/test_search_results.py index c451f039..93867252 100644 --- a/tests/integration/test_search_results.py +++ b/tests/integration/test_search_results.py @@ -16,7 +16,11 @@ def filter_query(): @pytest.fixture -def index(sample_data, redis_url): +def index(sample_data, redis_url, request): + # In xdist, the config has "workerid" in workerinput + workerinput = getattr(request.config, "workerinput", {}) + worker_id = workerinput.get("workerid", "master") + fields_spec = [ {"name": "credit_score", "type": "tag"}, {"name": "user", "type": "tag"}, @@ -37,7 +41,7 @@ def index(sample_data, redis_url): json_schema = { "index": { "name": "user_index_json", - "prefix": "users_json", + "prefix": f"users_json_{worker_id}", "storage_type": "json", }, "fields": fields_spec, diff --git a/tests/integration/test_semantic_router.py b/tests/integration/test_semantic_router.py index 07750b42..69e65f2f 100644 --- a/tests/integration/test_semantic_router.py +++ b/tests/integration/test_semantic_router.py @@ -320,13 +320,13 @@ def test_bad_dtype_connecting_to_exiting_router(redis_url, routes): ) -def test_vectorizer_dtype_mismatch(routes, redis_url): +def test_vectorizer_dtype_mismatch(routes, redis_url, hf_vectorizer_float16): with pytest.raises(ValueError): SemanticRouter( name="test_dtype_mismatch", routes=routes, dtype="float32", - vectorizer=HFTextVectorizer(dtype="float16"), + vectorizer=hf_vectorizer_float16, redis_url=redis_url, overwrite=True, ) diff --git a/tests/integration/test_session_manager.py b/tests/integration/test_session_manager.py index 59d64b97..a622475f 100644 --- a/tests/integration/test_session_manager.py +++ b/tests/integration/test_session_manager.py @@ -594,12 +594,12 @@ def test_bad_dtype_connecting_to_exiting_session(redis_url): ) -def test_vectorizer_dtype_mismatch(redis_url): +def test_vectorizer_dtype_mismatch(redis_url, hf_vectorizer_float16): with pytest.raises(ValueError): SemanticSessionManager( name="test_dtype_mismatch", dtype="float32", - vectorizer=HFTextVectorizer(dtype="float16"), + vectorizer=hf_vectorizer_float16, redis_url=redis_url, overwrite=True, ) From 890e65570335b939af19801eb98fa7e64bb8e645 Mon Sep 17 00:00:00 2001 From: Andrew Brookins Date: Wed, 23 Apr 2025 09:56:22 -0700 Subject: [PATCH 09/11] Fix SearchIndex tests to account for worker IDs in prefixes --- tests/integration/test_async_search_index.py | 4 ++-- tests/integration/test_search_index.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/integration/test_async_search_index.py b/tests/integration/test_async_search_index.py index eb0ebbab..2d17c679 100644 --- a/tests/integration/test_async_search_index.py +++ b/tests/integration/test_async_search_index.py @@ -75,7 +75,7 @@ def test_search_index_properties(index_schema, async_index): def test_search_index_from_yaml(async_index_from_yaml): assert async_index_from_yaml.name == "json-test" assert async_index_from_yaml.client is None - assert async_index_from_yaml.prefix == "json" + assert async_index_from_yaml.prefix.startswith("json") assert async_index_from_yaml.key_separator == ":" assert async_index_from_yaml.storage_type == StorageType.JSON assert async_index_from_yaml.key("foo").startswith(async_index_from_yaml.prefix) @@ -84,7 +84,7 @@ def test_search_index_from_yaml(async_index_from_yaml): def test_search_index_from_dict(async_index_from_dict): assert async_index_from_dict.name == "my_index" assert async_index_from_dict.client is None - assert async_index_from_dict.prefix == "rvl" + assert async_index_from_dict.prefix.startswith("rvl") assert async_index_from_dict.key_separator == ":" assert async_index_from_dict.storage_type == StorageType.HASH assert len(async_index_from_dict.schema.fields) == len(fields) diff --git a/tests/integration/test_search_index.py b/tests/integration/test_search_index.py index 2b407bba..a4474bb3 100644 --- a/tests/integration/test_search_index.py +++ b/tests/integration/test_search_index.py @@ -83,7 +83,7 @@ def test_search_index_properties(index_schema, index): def test_search_index_from_yaml(index_from_yaml): assert index_from_yaml.name == "json-test" assert index_from_yaml.client == None - assert index_from_yaml.prefix == "json" + assert index_from_yaml.prefix.startswith("json") assert index_from_yaml.key_separator == ":" assert index_from_yaml.storage_type == StorageType.JSON assert index_from_yaml.key("foo").startswith(index_from_yaml.prefix) @@ -92,7 +92,7 @@ def test_search_index_from_yaml(index_from_yaml): def test_search_index_from_dict(index_from_dict): assert index_from_dict.name == "my_index" assert index_from_dict.client == None - assert index_from_dict.prefix == "rvl" + assert index_from_dict.prefix.startswith("rvl") assert index_from_dict.key_separator == ":" assert index_from_dict.storage_type == StorageType.HASH assert len(index_from_dict.schema.fields) == len(fields) From e545db0eaf949801dbb614cc678081d4a8b24ae2 Mon Sep 17 00:00:00 2001 From: Andrew Brookins Date: Wed, 23 Apr 2025 15:34:20 -0700 Subject: [PATCH 10/11] Turn worker_id into a fixture --- tests/conftest.py | 47 ++++---- tests/integration/test_aggregation.py | 8 +- tests/integration/test_async_search_index.py | 32 +++--- tests/integration/test_flow.py | 7 +- tests/integration/test_flow_async.py | 7 +- tests/integration/test_llmcache.py | 109 ++++++++++++------- tests/integration/test_query.py | 10 +- tests/integration/test_search_index.py | 32 +++--- tests/integration/test_search_results.py | 8 +- 9 files changed, 133 insertions(+), 127 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index fa981aac..9995ff88 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -10,6 +10,19 @@ from redisvl.utils.vectorize import HFTextVectorizer +@pytest.fixture(scope="session") +def worker_id(request): + """ + Get the worker ID for the current test. + + In pytest-xdist, the config has "workerid" in workerinput. + This fixture abstracts that logic to provide a consistent worker_id + across all tests. + """ + workerinput = getattr(request.config, "workerinput", {}) + return workerinput.get("workerid", "master") + + @pytest.fixture(autouse=True) def set_tokenizers_parallelism(): """Disable tokenizers parallelism in tests to avoid deadlocks""" @@ -17,16 +30,12 @@ def set_tokenizers_parallelism(): @pytest.fixture(scope="session", autouse=True) -def redis_container(request): +def redis_container(worker_id): """ If using xdist, create a unique Compose project for each xdist worker by setting COMPOSE_PROJECT_NAME. That prevents collisions on container/volume names. """ - # In xdist, the config has "workerid" in workerinput - workerinput = getattr(request.config, "workerinput", {}) - worker_id = workerinput.get("workerid", "master") - # Set the Compose project name so containers do not clash across workers os.environ["COMPOSE_PROJECT_NAME"] = f"redis_test_{worker_id}" os.environ.setdefault("REDIS_IMAGE", "redis/redis-stack-server:latest") @@ -206,19 +215,16 @@ def pytest_collection_modifyitems( @pytest.fixture -def flat_index(sample_data, redis_url, request): +def flat_index(sample_data, redis_url, worker_id): """ A fixture that uses the "flag" algorithm for its vector field. """ - # In xdist, the config has "workerid" in workerinput - workerinput = getattr(request.config, "workerinput", {}) - worker_id = workerinput.get("workerid", "master") # construct a search index from the schema index = SearchIndex.from_dict( { "index": { - "name": "user_index", + "name": f"user_index_{worker_id}", "prefix": f"v1_{worker_id}", "storage_type": "hash", }, @@ -264,19 +270,16 @@ def hash_preprocess(item: dict) -> dict: @pytest.fixture -async def async_flat_index(sample_data, redis_url, request): +async def async_flat_index(sample_data, redis_url, worker_id): """ A fixture that uses the "flag" algorithm for its vector field. """ - # In xdist, the config has "workerid" in workerinput - workerinput = getattr(request.config, "workerinput", {}) - worker_id = workerinput.get("workerid", "master") # construct a search index from the schema index = AsyncSearchIndex.from_dict( { "index": { - "name": "user_index", + "name": f"user_index_{worker_id}", "prefix": f"v1_{worker_id}", "storage_type": "hash", }, @@ -322,18 +325,15 @@ def hash_preprocess(item: dict) -> dict: @pytest.fixture -async def async_hnsw_index(sample_data, redis_url, request): +async def async_hnsw_index(sample_data, redis_url, worker_id): """ A fixture that uses the "hnsw" algorithm for its vector field. """ - # In xdist, the config has "workerid" in workerinput - workerinput = getattr(request.config, "workerinput", {}) - worker_id = workerinput.get("workerid", "master") index = AsyncSearchIndex.from_dict( { "index": { - "name": "user_index", + "name": f"user_index_{worker_id}", "prefix": f"v1_{worker_id}", "storage_type": "hash", }, @@ -376,18 +376,15 @@ def hash_preprocess(item: dict) -> dict: @pytest.fixture -def hnsw_index(sample_data, redis_url, request): +def hnsw_index(sample_data, redis_url, worker_id): """ A fixture that uses the "hnsw" algorithm for its vector field. """ - # In xdist, the config has "workerid" in workerinput - workerinput = getattr(request.config, "workerinput", {}) - worker_id = workerinput.get("workerid", "master") index = SearchIndex.from_dict( { "index": { - "name": "user_index", + "name": f"user_index_{worker_id}", "prefix": f"v1_{worker_id}", "storage_type": "hash", }, diff --git a/tests/integration/test_aggregation.py b/tests/integration/test_aggregation.py index 5561e98d..222f8b9f 100644 --- a/tests/integration/test_aggregation.py +++ b/tests/integration/test_aggregation.py @@ -10,15 +10,11 @@ @pytest.fixture -def index(sample_data, redis_url, request): - # In xdist, the config has "workerid" in workerinput - workerinput = getattr(request.config, "workerinput", {}) - worker_id = workerinput.get("workerid", "master") - +def index(sample_data, redis_url, worker_id): index = SearchIndex.from_dict( { "index": { - "name": "user_index", + "name": f"user_index_{worker_id}", "prefix": f"v1_{worker_id}", "storage_type": "hash", }, diff --git a/tests/integration/test_async_search_index.py b/tests/integration/test_async_search_index.py index 2d17c679..7ae66774 100644 --- a/tests/integration/test_async_search_index.py +++ b/tests/integration/test_async_search_index.py @@ -32,30 +32,24 @@ def async_index(index_schema, async_client): @pytest.fixture -def async_index_from_dict(request): - # In xdist, the config has "workerid" in workerinput - workerinput = getattr(request.config, "workerinput", {}) - worker_id = workerinput.get("workerid", "master") +def async_index_from_dict(worker_id): return AsyncSearchIndex.from_dict( - {"index": {"name": "my_index", "prefix": f"rvl_{worker_id}"}, "fields": fields} + { + "index": {"name": f"my_index_{worker_id}", "prefix": f"rvl_{worker_id}"}, + "fields": fields, + } ) @pytest.fixture -def async_index_from_yaml(request): - # In xdist, the config has "workerid" in workerinput - workerinput = getattr(request.config, "workerinput", {}) - worker_id = workerinput.get("workerid", "master") +def async_index_from_yaml(worker_id): - # Load the schema from YAML - schema = IndexSchema.from_yaml("schemas/test_json_schema.yaml") - - # Modify the prefix to include the worker ID - schema.index.prefix = f"{schema.index.prefix}_{worker_id}" - - # Create the AsyncSearchIndex with the modified schema - return AsyncSearchIndex(schema=schema) + index = AsyncSearchIndex.from_yaml("schemas/test_json_schema.yaml") + # Update the index name and prefix to include worker_id + index.schema.index.name = f"{index.schema.index.name}_{worker_id}" + index.schema.index.prefix = f"{index.schema.index.prefix}_{worker_id}" + return index def test_search_index_properties(index_schema, async_index): @@ -73,7 +67,7 @@ def test_search_index_properties(index_schema, async_index): def test_search_index_from_yaml(async_index_from_yaml): - assert async_index_from_yaml.name == "json-test" + assert async_index_from_yaml.name.startswith("json-test") assert async_index_from_yaml.client is None assert async_index_from_yaml.prefix.startswith("json") assert async_index_from_yaml.key_separator == ":" @@ -82,7 +76,7 @@ def test_search_index_from_yaml(async_index_from_yaml): def test_search_index_from_dict(async_index_from_dict): - assert async_index_from_dict.name == "my_index" + assert async_index_from_dict.name.startswith("my_index") assert async_index_from_dict.client is None assert async_index_from_dict.prefix.startswith("rvl") assert async_index_from_dict.key_separator == ":" diff --git a/tests/integration/test_flow.py b/tests/integration/test_flow.py index 7542528a..25aedd8d 100644 --- a/tests/integration/test_flow.py +++ b/tests/integration/test_flow.py @@ -42,7 +42,12 @@ @pytest.mark.parametrize("schema", [hash_schema, json_schema]) -def test_simple(client, schema, sample_data): +def test_simple(client, schema, sample_data, worker_id): + # Update schema with worker_id + schema = schema.copy() + schema["index"] = schema["index"].copy() + schema["index"]["name"] = f"{schema['index']['name']}_{worker_id}" + schema["index"]["prefix"] = f"{schema['index']['prefix']}_{worker_id}" index = SearchIndex.from_dict(schema, redis_client=client) # create the index index.create(overwrite=True, drop=True) diff --git a/tests/integration/test_flow_async.py b/tests/integration/test_flow_async.py index c727fd28..583dc0b3 100644 --- a/tests/integration/test_flow_async.py +++ b/tests/integration/test_flow_async.py @@ -46,7 +46,12 @@ @pytest.mark.asyncio @pytest.mark.parametrize("schema", [hash_schema, json_schema]) -async def test_simple(async_client, schema, sample_data): +async def test_simple(async_client, schema, sample_data, worker_id): + # Update schema with worker_id + schema = schema.copy() + schema["index"] = schema["index"].copy() + schema["index"]["name"] = f"{schema['index']['name']}_{worker_id}" + schema["index"]["prefix"] = f"{schema['index']['prefix']}_{worker_id}" index = AsyncSearchIndex.from_dict(schema, redis_client=async_client) # create the index await index.create(overwrite=True, drop=True) diff --git a/tests/integration/test_llmcache.py b/tests/integration/test_llmcache.py index 261c4fd6..8dde93b2 100644 --- a/tests/integration/test_llmcache.py +++ b/tests/integration/test_llmcache.py @@ -16,13 +16,14 @@ @pytest.fixture -def vectorizer(hf_vectorizer_with_model): - return hf_vectorizer_with_model +def vectorizer(): + return HFTextVectorizer("sentence-transformers/all-mpnet-base-v2") @pytest.fixture -def cache(vectorizer, redis_url): +def cache(vectorizer, redis_url, worker_id): cache_instance = SemanticCache( + name=f"llmcache_{worker_id}", vectorizer=vectorizer, distance_threshold=0.2, redis_url=redis_url, @@ -32,8 +33,9 @@ def cache(vectorizer, redis_url): @pytest.fixture -def cache_with_filters(vectorizer, redis_url): +def cache_with_filters(vectorizer, redis_url, worker_id): cache_instance = SemanticCache( + name=f"llmcache_filters_{worker_id}", vectorizer=vectorizer, distance_threshold=0.2, filterable_fields=[{"name": "label", "type": "tag"}], @@ -44,25 +46,33 @@ def cache_with_filters(vectorizer, redis_url): @pytest.fixture -def cache_no_cleanup(vectorizer, redis_url): +def cache_no_cleanup(vectorizer, redis_url, worker_id): cache_instance = SemanticCache( - vectorizer=vectorizer, distance_threshold=0.2, redis_url=redis_url + name=f"llmcache_no_cleanup_{worker_id}", + vectorizer=vectorizer, + distance_threshold=0.2, + redis_url=redis_url, ) yield cache_instance @pytest.fixture -def cache_with_ttl(vectorizer, redis_url): +def cache_with_ttl(vectorizer, redis_url, worker_id): cache_instance = SemanticCache( - vectorizer=vectorizer, distance_threshold=0.2, ttl=2, redis_url=redis_url + name=f"llmcache_ttl_{worker_id}", + vectorizer=vectorizer, + distance_threshold=0.2, + ttl=2, + redis_url=redis_url, ) yield cache_instance cache_instance._index.delete(True) # Clean up index @pytest.fixture -def cache_with_redis_client(vectorizer, client): +def cache_with_redis_client(vectorizer, client, worker_id): cache_instance = SemanticCache( + name=f"llmcache_client_{worker_id}", vectorizer=vectorizer, redis_client=client, distance_threshold=0.2, @@ -545,9 +555,10 @@ async def test_async_check_invalid_input(cache): await cache.acheck(prompt="test", return_fields="bad value") -def test_bad_connection_info(vectorizer): +def test_bad_connection_info(vectorizer, worker_id): with pytest.raises(ConnectionError): SemanticCache( + name=f"test_bad_connection_{worker_id}", vectorizer=vectorizer, distance_threshold=0.2, redis_url="redis://localhost:6389", @@ -736,9 +747,10 @@ def test_cache_filtering(cache_with_filters): assert len(results) == 0 -def test_cache_bad_filters(vectorizer, redis_url): +def test_cache_bad_filters(vectorizer, redis_url, worker_id): with pytest.raises(ValueError): cache_instance = SemanticCache( + name=f"test_bad_filters_1_{worker_id}", vectorizer=vectorizer, distance_threshold=0.2, # invalid field type @@ -751,6 +763,7 @@ def test_cache_bad_filters(vectorizer, redis_url): with pytest.raises(ValueError): cache_instance = SemanticCache( + name=f"test_bad_filters_2_{worker_id}", vectorizer=vectorizer, distance_threshold=0.2, # duplicate field type @@ -763,6 +776,7 @@ def test_cache_bad_filters(vectorizer, redis_url): with pytest.raises(ValueError): cache_instance = SemanticCache( + name=f"test_bad_filters_3_{worker_id}", vectorizer=vectorizer, distance_threshold=0.2, # reserved field name @@ -798,9 +812,9 @@ def test_complex_filters(cache_with_filters): assert len(results) == 1 -def test_cache_index_overwrite(redis_url): +def test_cache_index_overwrite(redis_url, worker_id): cache_no_tags = SemanticCache( - name="test_cache", + name=f"test_cache_{worker_id}", redis_url=redis_url, ) @@ -829,13 +843,13 @@ def test_cache_index_overwrite(redis_url): with pytest.raises((RedisModuleVersionError, ValueError)): SemanticCache( - name="test_cache", + name=f"test_cache_{worker_id}", redis_url=redis_url, filterable_fields=[{"name": "some_tag", "type": "tag"}], ) cache_overwrite = SemanticCache( - name="test_cache", + name=f"test_cache_{worker_id}", redis_url=redis_url, filterable_fields=[{"name": "some_tag", "type": "tag"}], overwrite=True, @@ -848,9 +862,9 @@ def test_cache_index_overwrite(redis_url): assert len(response) == 1 -def test_no_key_collision_on_identical_prompts(redis_url): +def test_no_key_collision_on_identical_prompts(redis_url, worker_id): private_cache = SemanticCache( - name="private_cache", + name=f"private_cache_{worker_id}", redis_url=redis_url, filterable_fields=[ {"name": "user_id", "type": "tag"}, @@ -890,18 +904,24 @@ def test_no_key_collision_on_identical_prompts(redis_url): assert len(filtered_results) == 2 -def test_create_cache_with_different_vector_types(): +def test_create_cache_with_different_vector_types(worker_id): try: - bfloat_cache = SemanticCache(name="bfloat_cache", dtype="bfloat16") + bfloat_cache = SemanticCache(name=f"bfloat_cache_{worker_id}", dtype="bfloat16") bfloat_cache.store("bfloat16 prompt", "bfloat16 response") - float16_cache = SemanticCache(name="float16_cache", dtype="float16") + float16_cache = SemanticCache( + name=f"float16_cache_{worker_id}", dtype="float16" + ) float16_cache.store("float16 prompt", "float16 response") - float32_cache = SemanticCache(name="float32_cache", dtype="float32") + float32_cache = SemanticCache( + name=f"float32_cache_{worker_id}", dtype="float32" + ) float32_cache.store("float32 prompt", "float32 response") - float64_cache = SemanticCache(name="float64_cache", dtype="float64") + float64_cache = SemanticCache( + name=f"float64_cache_{worker_id}", dtype="float64" + ) float64_cache.store("float64 prompt", "float64 response") for cache in [bfloat_cache, float16_cache, float32_cache, float64_cache]: @@ -911,13 +931,13 @@ def test_create_cache_with_different_vector_types(): pytest.skip("Not using a late enough version of Redis") -def test_bad_dtype_connecting_to_existing_cache(redis_url): +def test_bad_dtype_connecting_to_existing_cache(redis_url, worker_id): try: cache = SemanticCache( - name="float64_cache", dtype="float64", redis_url=redis_url + name=f"float64_cache_{worker_id}", dtype="float64", redis_url=redis_url ) same_type = SemanticCache( - name="float64_cache", dtype="float64", redis_url=redis_url + name=f"float64_cache_{worker_id}", dtype="float64", redis_url=redis_url ) # under the hood uses from_existing except RedisModuleVersionError: @@ -925,14 +945,14 @@ def test_bad_dtype_connecting_to_existing_cache(redis_url): with pytest.raises(ValueError): bad_type = SemanticCache( - name="float64_cache", dtype="float16", redis_url=redis_url + name=f"float64_cache_{worker_id}", dtype="float16", redis_url=redis_url ) -def test_vectorizer_dtype_mismatch(redis_url, hf_vectorizer_float16): +def test_vectorizer_dtype_mismatch(redis_url, hf_vectorizer_float16, worker_id): with pytest.raises(ValueError): SemanticCache( - name="test_dtype_mismatch", + name=f"test_dtype_mismatch_{worker_id}", dtype="float32", vectorizer=hf_vectorizer_float16, redis_url=redis_url, @@ -940,20 +960,20 @@ def test_vectorizer_dtype_mismatch(redis_url, hf_vectorizer_float16): ) -def test_invalid_vectorizer(redis_url): +def test_invalid_vectorizer(redis_url, worker_id): with pytest.raises(TypeError): SemanticCache( - name="test_invalid_vectorizer", + name=f"test_invalid_vectorizer_{worker_id}", vectorizer="invalid_vectorizer", # type: ignore redis_url=redis_url, overwrite=True, ) -def test_passes_through_dtype_to_default_vectorizer(redis_url): +def test_passes_through_dtype_to_default_vectorizer(redis_url, worker_id): # The default is float32, so we should see float64 if we pass it in. cache = SemanticCache( - name="test_pass_through_dtype", + name=f"test_pass_through_dtype_{worker_id}", dtype="float64", redis_url=redis_url, overwrite=True, @@ -961,10 +981,10 @@ def test_passes_through_dtype_to_default_vectorizer(redis_url): assert cache._vectorizer.dtype == "float64" -def test_deprecated_dtype_argument(redis_url): +def test_deprecated_dtype_argument(redis_url, worker_id): with pytest.warns(DeprecationWarning): SemanticCache( - name="test_deprecated_dtype", + name=f"test_deprecated_dtype_{worker_id}", dtype="float32", redis_url=redis_url, overwrite=True, @@ -972,9 +992,9 @@ def test_deprecated_dtype_argument(redis_url): @pytest.mark.asyncio -async def test_cache_async_context_manager(redis_url): +async def test_cache_async_context_manager(redis_url, worker_id): async with SemanticCache( - name="test_cache_async_context_manager", redis_url=redis_url + name=f"test_cache_async_context_manager_{worker_id}", redis_url=redis_url ) as cache: await cache.astore("test prompt", "test response") assert cache._aindex @@ -982,10 +1002,11 @@ async def test_cache_async_context_manager(redis_url): @pytest.mark.asyncio -async def test_cache_async_context_manager_with_exception(redis_url): +async def test_cache_async_context_manager_with_exception(redis_url, worker_id): try: async with SemanticCache( - name="test_cache_async_context_manager_with_exception", redis_url=redis_url + name=f"test_cache_async_context_manager_with_exception_{worker_id}", + redis_url=redis_url, ) as cache: await cache.astore("test prompt", "test response") raise ValueError("test") @@ -995,15 +1016,19 @@ async def test_cache_async_context_manager_with_exception(redis_url): @pytest.mark.asyncio -async def test_cache_async_disconnect(redis_url): - cache = SemanticCache(name="test_cache_async_disconnect", redis_url=redis_url) +async def test_cache_async_disconnect(redis_url, worker_id): + cache = SemanticCache( + name=f"test_cache_async_disconnect_{worker_id}", redis_url=redis_url + ) await cache.astore("test prompt", "test response") await cache.adisconnect() assert cache._aindex is None -def test_cache_disconnect(redis_url): - cache = SemanticCache(name="test_cache_disconnect", redis_url=redis_url) +def test_cache_disconnect(redis_url, worker_id): + cache = SemanticCache( + name=f"test_cache_disconnect_{worker_id}", redis_url=redis_url + ) cache.store("test prompt", "test response") cache.disconnect() # We keep this index object around because it isn't lazily created diff --git a/tests/integration/test_query.py b/tests/integration/test_query.py index 1b9ce5b8..96deea26 100644 --- a/tests/integration/test_query.py +++ b/tests/integration/test_query.py @@ -143,10 +143,7 @@ def sorted_range_query(): @pytest.fixture -def index(sample_data, redis_url, request): - # In xdist, the config has "workerid" in workerinput - workerinput = getattr(request.config, "workerinput", {}) - worker_id = workerinput.get("workerid", "master") +def index(sample_data, redis_url, worker_id): # construct a search index from the schema index = SearchIndex.from_dict( @@ -198,10 +195,7 @@ def hash_preprocess(item: dict) -> dict: @pytest.fixture -def L2_index(sample_data, redis_url, request): - # In xdist, the config has "workerid" in workerinput - workerinput = getattr(request.config, "workerinput", {}) - worker_id = workerinput.get("workerid", "master") +def L2_index(sample_data, redis_url, worker_id): # construct a search index from the schema index = SearchIndex.from_dict( diff --git a/tests/integration/test_search_index.py b/tests/integration/test_search_index.py index a4474bb3..97dc254e 100644 --- a/tests/integration/test_search_index.py +++ b/tests/integration/test_search_index.py @@ -42,30 +42,24 @@ def index(index_schema, client): @pytest.fixture -def index_from_dict(request): - # In xdist, the config has "workerid" in workerinput - workerinput = getattr(request.config, "workerinput", {}) - worker_id = workerinput.get("workerid", "master") +def index_from_dict(worker_id): return SearchIndex.from_dict( - {"index": {"name": "my_index", "prefix": f"rvl_{worker_id}"}, "fields": fields} + { + "index": {"name": f"my_index_{worker_id}", "prefix": f"rvl_{worker_id}"}, + "fields": fields, + } ) @pytest.fixture -def index_from_yaml(request): - # In xdist, the config has "workerid" in workerinput - workerinput = getattr(request.config, "workerinput", {}) - worker_id = workerinput.get("workerid", "master") +def index_from_yaml(worker_id): - # Load the schema from YAML - schema = IndexSchema.from_yaml("schemas/test_json_schema.yaml") - - # Modify the prefix to include the worker ID - schema.index.prefix = f"{schema.index.prefix}_{worker_id}" - - # Create the SearchIndex with the modified schema - return SearchIndex(schema=schema) + index = SearchIndex.from_yaml("schemas/test_json_schema.yaml") + # Update the index name and prefix to include worker_id + index.schema.index.name = f"{index.schema.index.name}_{worker_id}" + index.schema.index.prefix = f"{index.schema.index.prefix}_{worker_id}" + return index def test_search_index_properties(index_schema, index): @@ -81,7 +75,7 @@ def test_search_index_properties(index_schema, index): def test_search_index_from_yaml(index_from_yaml): - assert index_from_yaml.name == "json-test" + assert index_from_yaml.name.startswith("json-test") assert index_from_yaml.client == None assert index_from_yaml.prefix.startswith("json") assert index_from_yaml.key_separator == ":" @@ -90,7 +84,7 @@ def test_search_index_from_yaml(index_from_yaml): def test_search_index_from_dict(index_from_dict): - assert index_from_dict.name == "my_index" + assert index_from_dict.name.startswith("my_index") assert index_from_dict.client == None assert index_from_dict.prefix.startswith("rvl") assert index_from_dict.key_separator == ":" diff --git a/tests/integration/test_search_results.py b/tests/integration/test_search_results.py index 93867252..f75d83b9 100644 --- a/tests/integration/test_search_results.py +++ b/tests/integration/test_search_results.py @@ -16,11 +16,7 @@ def filter_query(): @pytest.fixture -def index(sample_data, redis_url, request): - # In xdist, the config has "workerid" in workerinput - workerinput = getattr(request.config, "workerinput", {}) - worker_id = workerinput.get("workerid", "master") - +def index(sample_data, redis_url, worker_id): fields_spec = [ {"name": "credit_score", "type": "tag"}, {"name": "user", "type": "tag"}, @@ -40,7 +36,7 @@ def index(sample_data, redis_url, request): json_schema = { "index": { - "name": "user_index_json", + "name": f"user_index_json_{worker_id}", "prefix": f"users_json_{worker_id}", "storage_type": "json", }, From 9a50d15bec7bb57b545d8a7851b99985aa012e89 Mon Sep 17 00:00:00 2001 From: Andrew Brookins Date: Fri, 25 Apr 2025 17:04:32 -0700 Subject: [PATCH 11/11] Fix ID vs. name usage --- redisvl/extensions/cache/llm/langcache_api.py | 103 +++++---- redisvl/extensions/cache/llm/schema.py | 27 +++ tests/unit/test_langcache_api.py | 207 ++++++++++++++++-- tests/unit/test_utils.py | 2 +- 4 files changed, 266 insertions(+), 73 deletions(-) diff --git a/redisvl/extensions/cache/llm/langcache_api.py b/redisvl/extensions/cache/llm/langcache_api.py index e4ce3073..f09bc9c1 100644 --- a/redisvl/extensions/cache/llm/langcache_api.py +++ b/redisvl/extensions/cache/llm/langcache_api.py @@ -1,79 +1,90 @@ +import asyncio import json from typing import Any, Dict, List, Optional, Union +from langcache import APIError, APIErrorResponse from langcache import LangCache as LangCacheSDK from langcache.models import CacheEntryScope, CacheEntryScopeTypedDict from redisvl.extensions.cache.llm.base import BaseLLMCache +from redisvl.extensions.cache.llm.schema import LangCacheOptions from redisvl.query.filter import FilterExpression -from redisvl.utils.utils import current_timestamp +from redisvl.utils.utils import ( + current_timestamp, + denorm_cosine_distance, + norm_cosine_distance, +) Scope = Optional[Union[CacheEntryScope, CacheEntryScopeTypedDict]] +class CacheNotFound(RuntimeError): + """The specified LangCache cache was not found.""" + + class LangCache(BaseLLMCache): """Redis LangCache Service: API for managing a Redis LangCache""" def __init__( self, - redis_client=None, name: str = "llmcache", + cache_id: Optional[str] = None, distance_threshold: float = 0.1, ttl: Optional[int] = None, - redis_url: str = "redis://localhost:6379", - connection_kwargs: Optional[Dict[str, Any]] = None, overwrite: bool = False, + create_if_missing: bool = False, entry_scope: Scope = None, + redis_url: str = "redis://localhost:6379", + sdk_options: Optional[LangCacheOptions] = None, **kwargs, ): """Initialize a LangCache client. + TODO: What's the difference between the name and ID of a LangCache cache? + You can't get a cache by name, only ID... + Args: - redis_client: A Redis client instance. - name: Name of the cache. + name: Name of the cache index to use in LangCache. + cache_id: ID of an existing cache to use. distance_threshold: Threshold for semantic similarity (0.0 to 1.0). ttl: Time-to-live for cache entries in seconds. - redis_url: URL for Redis connection if no client is provided. - connection_kwargs: Additional Redis connection parameters. overwrite: Whether to overwrite an existing cache with the same name. entry_scope: Optional scope for cache entries. + redis_url: URL for the Redis instance. + sdk_options: Optional configuration options for the LangCache SDK. """ - if connection_kwargs is None: - connection_kwargs = {} - - super().__init__( - name=name, - ttl=ttl, - redis_client=redis_client, - redis_url=redis_url, - connection_kwargs=connection_kwargs, - ) + super().__init__(name=name, ttl=ttl, **kwargs) self._name = name - self._redis_client = redis_client - self._redis_url = redis_url self._distance_threshold = distance_threshold self._ttl = ttl - self._cache_id = name self._entry_scope = entry_scope - # Initialize LangCache SDK client - self._api = LangCacheSDK(server_url=redis_url, client=redis_client) - - # Create cache if it doesn't exist or if overwrite is True - try: - existing_cache = self._api.cache.get(cache_id=self._cache_id) - if not existing_cache and overwrite: - self._api.cache.create( - index_name=self._name, - redis_urls=[self._redis_url], - ) - except Exception: - # If the cache doesn't exist, create it - if overwrite: - self._api.cache.create( - index_name=self._name, - redis_urls=[self._redis_url], - ) + + if sdk_options is None: + sdk_options = LangCacheOptions() + + options_dict = sdk_options.model_dump(exclude_none=True) + self._api = LangCacheSDK(**options_dict) + + # Try to find the cache if given an ID. If not found and + # create_if_missing is False, raise an error. Otherwise, try to create a + # new cache. + if cache_id: + try: + self._api.cache.get(cache_id=cache_id) + except (APIError, APIErrorResponse): + if not create_if_missing: + raise CacheNotFound(f"LangCache cache with ID {cache_id} not found") + # We can't pass the cache ID to the create method, so reset it + cache_id = None + if not cache_id: + self._cache_id = self._api.cache.create( + index_name=self._name, + redis_urls=[redis_url], + overwrite_if_exists=overwrite, + ).cache_id + assert cache_id + self._cache_id = cache_id @property def distance_threshold(self) -> float: @@ -91,7 +102,7 @@ def set_threshold(self, distance_threshold: float) -> None: """ if not 0 <= float(distance_threshold) <= 2: raise ValueError("Distance threshold must be between 0 and 2") - self._distance_threshold = float(distance_threshold) + self._distance_threshold = float(norm_cosine_distance(distance_threshold)) @property def ttl(self) -> Optional[int]: @@ -238,7 +249,7 @@ def check( "entry_id": entry.id, "prompt": entry.prompt, "response": entry.response, - "vector_distance": entry.similarity, + "vector_distance": denorm_cosine_distance(entry.similarity), } # Add metadata if available @@ -334,7 +345,7 @@ async def acheck( "entry_id": entry.id, "prompt": entry.prompt, "response": entry.response, - "vector_distance": entry.similarity, + "vector_distance": denorm_cosine_distance(entry.similarity), } # Add metadata if available @@ -408,6 +419,7 @@ def store( scope = entry_scope if entry_scope is not None else self._entry_scope # Convert TTL from seconds to milliseconds for LangCache SDK + ttl = ttl or self._ttl ttl_millis = ttl * 1000 if ttl is not None else None # Store the entry @@ -576,7 +588,7 @@ async def aupdate(self, key: str, **kwargs) -> None: ) def disconnect(self) -> None: - """Disconnect from Redis.""" + """Disconnect from LangCache.""" if ( hasattr(self._api.sdk_configuration, "client") and self._api.sdk_configuration.client @@ -585,11 +597,6 @@ def disconnect(self) -> None: async def adisconnect(self) -> None: """Async disconnect from Redis.""" - if ( - hasattr(self._api.sdk_configuration, "client") - and self._api.sdk_configuration.client - ): - self._api.sdk_configuration.client.close() if ( hasattr(self._api.sdk_configuration, "async_client") and self._api.sdk_configuration.async_client diff --git a/redisvl/extensions/cache/llm/schema.py b/redisvl/extensions/cache/llm/schema.py index 74337090..6857dba0 100644 --- a/redisvl/extensions/cache/llm/schema.py +++ b/redisvl/extensions/cache/llm/schema.py @@ -1,5 +1,9 @@ from typing import Any, Dict, List, Optional +from langcache.httpclient import AsyncHttpClient, HttpClient +from langcache.types import UNSET, OptionalNullable +from langcache.utils.logger import Logger +from langcache.utils.retries import RetryConfig from pydantic import BaseModel, ConfigDict, Field, field_validator, model_validator from redisvl.extensions.constants import ( @@ -110,6 +114,29 @@ def to_dict(self) -> Dict[str, Any]: return data +class LangCacheOptions(BaseModel): + """Options for the LangCache SDK client.""" + + server_idx: Optional[int] = None + """The index of the server to use for all methods.""" + server_url: Optional[str] = None + """The server URL to use for all methods.""" + url_params: Optional[Dict[str, str]] = None + """Parameters to optionally template the server URL with.""" + client: Optional[HttpClient] = None + """The HTTP client to use for all synchronous methods.""" + async_client: Optional[AsyncHttpClient] = None + """The Async HTTP client to use for all asynchronous methods.""" + retry_config: OptionalNullable[RetryConfig] = UNSET + """The retry configuration to use for all supported methods.""" + timeout_ms: Optional[int] = None + """Optional request timeout applied to each operation in milliseconds.""" + debug_logger: Optional[Any] = None + """Optional logger for debugging.""" + + model_config = ConfigDict(arbitrary_types_allowed=True) + + class SemanticCacheIndexSchema(IndexSchema): @classmethod diff --git a/tests/unit/test_langcache_api.py b/tests/unit/test_langcache_api.py index 7243d501..c8bec631 100644 --- a/tests/unit/test_langcache_api.py +++ b/tests/unit/test_langcache_api.py @@ -2,13 +2,120 @@ import pytest from langcache.models import CacheEntryScope +from langcache.utils.logger import Logger from redisvl.extensions.cache.llm import LangCache +from redisvl.extensions.cache.llm.schema import LangCacheOptions + + +@pytest.fixture +async def langcache(monkeypatch): + # Create a mock LangCacheSDK class + class MockEntries: + async def delete_all_async(self, *args, **kwargs): + return None + + async def delete_async(self, *args, **kwargs): + return None + + async def search_async(self, *args, **kwargs): + return [] + + async def create_async(self, *args, **kwargs): + class MockResponse: + entry_id = "mock_id" + + return MockResponse() + + async def get_async(self, *args, **kwargs): + class MockEntry: + prompt = "mock_prompt" + response = "mock_response" + attributes = {} + + return MockEntry() + + async def update_async(self, *args, **kwargs): + return None + + def delete_all(self, *args, **kwargs): + return None + + def delete(self, *args, **kwargs): + return None + + def search(self, *args, **kwargs): + return [] + + def create(self, *args, **kwargs): + class MockResponse: + entry_id = "mock_id" + + return MockResponse() + + def get(self, *args, **kwargs): + class MockEntry: + prompt = "mock_prompt" + response = "mock_response" + attributes = {} + + return MockEntry() + + def update(self, *args, **kwargs): + return None + + class MockCache: + async def delete_async(self, *args, **kwargs): + return None + + def delete(self, *args, **kwargs): + return None + + def get(self, *args, **kwargs): + return None + + def create(self, *args, **kwargs): + class MockResponse: + def __init__(self): + self.cache_id = "mock-cache-id" + + return MockResponse() + + class MockSDKConfig: + def __init__(self): + self.client = None + self.async_client = None + + class MockLangCacheSDK: + def __init__(self, **kwargs): + self.entries = MockEntries() + self.cache = MockCache() + self.sdk_configuration = MockSDKConfig() + + def __enter__(self): + return self + + def __exit__(self, *args): + return None + + async def __aenter__(self): + return self + + async def __aexit__(self, *args): + return None + + # Patch the LangCacheSDK import + monkeypatch.setattr( + "redisvl.extensions.cache.llm.langcache_api.LangCacheSDK", MockLangCacheSDK + ) + + # Create and return the LangCache instance + return LangCache(sdk_options=LangCacheOptions(timeout_ms=100)) @pytest.mark.asyncio -async def test_aclear_calls_async_delete_all(monkeypatch): - lang_cache = LangCache() +async def test_aclear_calls_async_delete_all(monkeypatch, langcache): + lang_cache = langcache called = {} async def dummy_delete_all_async(cache_id, attributes, scope): @@ -28,8 +135,8 @@ async def dummy_delete_all_async(cache_id, attributes, scope): @pytest.mark.asyncio -async def test_adelete_calls_async_delete_all_and_cache_delete(monkeypatch): - lang_cache = LangCache() +async def test_adelete_calls_async_delete_all_and_cache_delete(monkeypatch, langcache): + lang_cache = langcache delete_all_called = False delete_cache_called = False scope_used = None @@ -56,8 +163,8 @@ async def dummy_cache_delete_async(cache_id): @pytest.mark.asyncio -async def test_adrop_deletes_each_id(monkeypatch): - lang_cache = LangCache() +async def test_adrop_deletes_each_id(monkeypatch, langcache): + lang_cache = langcache called_ids = [] async def dummy_delete_async(cache_id, entry_id): @@ -70,8 +177,8 @@ async def dummy_delete_async(cache_id, entry_id): @pytest.mark.asyncio -async def test_acheck_validates_input(monkeypatch): - lang_cache = LangCache() +async def test_acheck_validates_input(monkeypatch, langcache): + lang_cache = langcache with pytest.raises(ValueError): await lang_cache.acheck() with pytest.raises(TypeError): @@ -80,8 +187,8 @@ async def test_acheck_validates_input(monkeypatch): @pytest.mark.asyncio -async def test_acheck_returns_formatted_results(monkeypatch): - lang_cache = LangCache() +async def test_acheck_returns_formatted_results(monkeypatch, langcache): + lang_cache = langcache class DummyMeta: def __init__(self): @@ -116,7 +223,7 @@ async def dummy_search_async(cache_id, prompt, similarity_threshold, scope=None) "entry_id": "1", "prompt": "p1", "response": "r1", - "vector_distance": 0.1, + "vector_distance": 1.8, # denormalized cosine distance } assert hits[1]["metadata"] == {"foo": "bar"} @@ -135,8 +242,8 @@ async def dummy_search_async(cache_id, prompt, similarity_threshold, scope=None) @pytest.mark.asyncio -async def test_astore_calls_create_and_returns_id(monkeypatch): - lang_cache = LangCache() +async def test_astore_calls_create_and_returns_id(monkeypatch, langcache): + lang_cache = langcache class DummyResp: def __init__(self, entry_id): @@ -163,15 +270,15 @@ async def dummy_create_async( @pytest.mark.asyncio -async def test_astore_metadata_type_error(): - lang_cache = LangCache() +async def test_astore_metadata_type_error(langcache): + lang_cache = langcache with pytest.raises(ValueError): # Passing wrong metadata type on purpose to validate error await lang_cache.astore("p", "r", metadata="not a dict") # type: ignore[arg-type] -def test_disconnect_closes_client(monkeypatch): - lang_cache = LangCache() +def test_disconnect_closes_client(monkeypatch, langcache): + lang_cache = langcache # Mock scenario where client exists class MockClient: @@ -197,8 +304,8 @@ def close(self): @pytest.mark.asyncio -async def test_adisconnect_closes_clients(monkeypatch): - lang_cache = LangCache() +async def test_adisconnect_closes_clients(monkeypatch, langcache): + lang_cache = langcache # Mock scenario where clients exist class MockSyncClient: @@ -226,7 +333,6 @@ async def aclose(self): # Call adisconnect and verify it closed both clients await lang_cache.adisconnect() - assert mock_sync_client.closed is True assert mock_async_client.closed is True # Test with no clients @@ -236,7 +342,60 @@ async def aclose(self): await lang_cache.adisconnect() -def test_context_manager_calls_api_methods(monkeypatch): +def test_init_with_sdk_options(monkeypatch): + # Test that LangCacheOptions are correctly passed to the SDK + # Use a simple object instead of Logger to avoid instantiation issues + debug_logger = object() + sdk_options = LangCacheOptions( + server_url="https://example.com", # Use a valid HTTP URL + timeout_ms=5000, + debug_logger=debug_logger, + ) + + # Mock the LangCacheSDK constructor + init_args = {} + + class MockCache: + def get(self, cache_id): + return None + + def create(self, **kwargs): + # Create a mock response with a cache_id + class MockResponse: + def __init__(self): + self.cache_id = "mock-cache-id" + + return MockResponse() + + class MockSDK: + def __init__(self, **kwargs): + nonlocal init_args + init_args = kwargs + self.cache = MockCache() + + # Patch the LangCacheSDK import + monkeypatch.setattr( + "redisvl.extensions.cache.llm.langcache_api.LangCacheSDK", MockSDK + ) + + # Create LangCache with sdk_options + LangCache(sdk_options=sdk_options) + + # Verify the options were passed correctly + assert init_args["server_url"] == "https://example.com" + assert init_args["timeout_ms"] == 5000 + assert init_args["debug_logger"] == debug_logger + + # Test with default options + init_args = {} + LangCache() + + # Verify default options are used (retry_config is always set by default) + assert len(init_args) == 1 + assert "retry_config" in init_args + + +def test_context_manager_calls_api_methods(monkeypatch, langcache): # Create a client with a mock API class MockAPI: def __init__(self): @@ -251,7 +410,7 @@ def __exit__(self, exc_type, exc_val, exc_tb): self.exit_args = (exc_type, exc_val, exc_tb) mock_api = MockAPI() - lang_cache = LangCache() + lang_cache = langcache # Use monkeypatch to replace the API monkeypatch.setattr(lang_cache, "_api", mock_api) @@ -273,7 +432,7 @@ def patched_enter(): @pytest.mark.asyncio -async def test_async_context_manager_calls_api_methods(monkeypatch): +async def test_async_context_manager_calls_api_methods(monkeypatch, langcache): # Create a client with a mock API class MockAPI: def __init__(self): @@ -288,7 +447,7 @@ async def __aexit__(self, exc_type, exc_val, exc_tb): self.exit_args = (exc_type, exc_val, exc_tb) mock_api = MockAPI() - lang_cache = LangCache() + lang_cache = langcache # Use monkeypatch to replace the API monkeypatch.setattr(lang_cache, "_api", mock_api) diff --git a/tests/unit/test_utils.py b/tests/unit/test_utils.py index 2ceac02a..59a1abd8 100644 --- a/tests/unit/test_utils.py +++ b/tests/unit/test_utils.py @@ -160,7 +160,7 @@ def test_empty_list_to_bytes(): assert array_to_buffer(array, dtype="float32") == expected -@pytest.mark.parametrize("dtype", ["float64", "float32", "float16"]) +@pytest.mark.parametrize("dtype", ["float64", "float32", "float16", "bfloat16"]) def test_conversion_with_various_dtypes(dtype): """Test conversion of a list of floats to bytes with various dtypes""" array = [1.0, -2.0, 3.5]