diff --git a/poetry.lock b/poetry.lock index 33839cf8dd3449ed66a81666f4658dfe1d03ab38..ed829510f2a7661b1c0175a05bad3976cc196c7a 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 1.5.1 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand. [[package]] name = "annotated-types" @@ -902,11 +902,11 @@ 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 = "extra == \"grpc\""}, + {version = ">=1.33.2,<2.0dev", optional = true, markers = "python_version < \"3.11\" and 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 = "extra == \"grpc\""}, + {version = ">=1.33.2,<2.0.dev0", optional = true, markers = "python_version < \"3.11\" and extra == \"grpc\""}, {version = ">=1.49.1,<2.0.dev0", optional = true, markers = "python_version >= \"3.11\" and extra == \"grpc\""}, ] proto-plus = ">=1.22.3,<2.0.0dev" diff --git a/pyproject.toml b/pyproject.toml index 3e8420fb50118754a780505e3a8f5f5b7580e221..b3de6b2ccc8a7229b29535bb5b6c499e2d9aad36 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "semantic-router" -version = "0.0.41" +version = "0.0.42" description = "Super fast semantic router for AI decision making" authors = [ "James Briggs <james@aurelio.ai>", diff --git a/semantic_router/__init__.py b/semantic_router/__init__.py index 003bd229f1be3b97d28b901199712486ff7be17f..98188bd1c4f9205423e94be09356a6d90c06bcc5 100644 --- a/semantic_router/__init__.py +++ b/semantic_router/__init__.py @@ -4,4 +4,4 @@ from semantic_router.route import Route __all__ = ["RouteLayer", "HybridRouteLayer", "Route", "LayerConfig"] -__version__ = "0.0.41" +__version__ = "0.0.42" diff --git a/semantic_router/splitters/consecutive_sim.py b/semantic_router/splitters/consecutive_sim.py index 897baae40d5ef1055bf7fc1c7253756b7944b6d6..5c20d779d3ba8036211dd018a970e5c7a4579ca4 100644 --- a/semantic_router/splitters/consecutive_sim.py +++ b/semantic_router/splitters/consecutive_sim.py @@ -1,4 +1,5 @@ from typing import Any, List +from warnings import warn import numpy as np @@ -18,6 +19,13 @@ class ConsecutiveSimSplitter(BaseSplitter): name: str = "consecutive_similarity_splitter", score_threshold: float = 0.45, ): + warn( + "Splitters are being deprecated. They have moved to their own " + "package. Please migrate to the `semantic-chunkers` package. More " + "information can be found at:\n" + "https://github.com/aurelio-ai/semantic-chunkers", + stacklevel=2, + ) super().__init__(name=name, encoder=encoder) encoder.score_threshold = score_threshold self.score_threshold = score_threshold diff --git a/semantic_router/splitters/cumulative_sim.py b/semantic_router/splitters/cumulative_sim.py index 0e50a35499e670bc1011464e34aef29b1d1a6a8f..f0fbd8e80316a15f726c3b86142607f7ac1d38d1 100644 --- a/semantic_router/splitters/cumulative_sim.py +++ b/semantic_router/splitters/cumulative_sim.py @@ -1,4 +1,5 @@ from typing import List +from warnings import warn import numpy as np @@ -19,6 +20,13 @@ class CumulativeSimSplitter(BaseSplitter): name: str = "cumulative_similarity_splitter", score_threshold: float = 0.45, ): + warn( + "Splitters are being deprecated. They have moved to their own " + "package. Please migrate to the `semantic-chunkers` package. More " + "information can be found at:\n" + "https://github.com/aurelio-ai/semantic-chunkers", + stacklevel=2, + ) super().__init__(name=name, encoder=encoder) encoder.score_threshold = score_threshold self.score_threshold = score_threshold diff --git a/semantic_router/splitters/rolling_window.py b/semantic_router/splitters/rolling_window.py index fb4ce20adae1e0c8dfa58e5a1ca901d5f6d96961..5911882df1d4d34f4f84c80b9d92eae6da0214cd 100644 --- a/semantic_router/splitters/rolling_window.py +++ b/semantic_router/splitters/rolling_window.py @@ -1,5 +1,6 @@ from dataclasses import dataclass from typing import List +from warnings import warn import numpy as np @@ -49,6 +50,13 @@ class RollingWindowSplitter(BaseSplitter): plot_splits=False, enable_statistics=False, ): + warn( + "Splitters are being deprecated. They have moved to their own " + "package. Please migrate to the `semantic-chunkers` package. More " + "information can be found at:\n" + "https://github.com/aurelio-ai/semantic-chunkers", + stacklevel=2, + ) super().__init__(name=name, encoder=encoder) self.calculated_threshold: float self.encoder = encoder