diff --git a/semantic_router/splitters/consecutive_sim.py b/semantic_router/splitters/consecutive_sim.py index 491860ec31f658e4ea22f7ef23bc707260f9b626..5c20d779d3ba8036211dd018a970e5c7a4579ca4 100644 --- a/semantic_router/splitters/consecutive_sim.py +++ b/semantic_router/splitters/consecutive_sim.py @@ -21,9 +21,10 @@ class ConsecutiveSimSplitter(BaseSplitter): ): warn( "Splitters are being deprecated. They have moved to their own " - "package. Please install the `semantic-chunkers` package. More " + "package. Please migrate to the `semantic-chunkers` package. More " "information can be found at:\n" - "https://github.com/aurelio-ai/semantic-chunkers" + "https://github.com/aurelio-ai/semantic-chunkers", + stacklevel=2, ) super().__init__(name=name, encoder=encoder) encoder.score_threshold = score_threshold diff --git a/semantic_router/splitters/cumulative_sim.py b/semantic_router/splitters/cumulative_sim.py index f10a64071bba343b56206d59b5cafebcb21071af..f0fbd8e80316a15f726c3b86142607f7ac1d38d1 100644 --- a/semantic_router/splitters/cumulative_sim.py +++ b/semantic_router/splitters/cumulative_sim.py @@ -22,9 +22,10 @@ class CumulativeSimSplitter(BaseSplitter): ): warn( "Splitters are being deprecated. They have moved to their own " - "package. Please install the `semantic-chunkers` package. More " + "package. Please migrate to the `semantic-chunkers` package. More " "information can be found at:\n" - "https://github.com/aurelio-ai/semantic-chunkers" + "https://github.com/aurelio-ai/semantic-chunkers", + stacklevel=2, ) super().__init__(name=name, encoder=encoder) encoder.score_threshold = score_threshold diff --git a/semantic_router/splitters/rolling_window.py b/semantic_router/splitters/rolling_window.py index 059789112e976fb92fb5503ddbf7d5911af49643..5911882df1d4d34f4f84c80b9d92eae6da0214cd 100644 --- a/semantic_router/splitters/rolling_window.py +++ b/semantic_router/splitters/rolling_window.py @@ -52,9 +52,10 @@ class RollingWindowSplitter(BaseSplitter): ): warn( "Splitters are being deprecated. They have moved to their own " - "package. Please install the `semantic-chunkers` package. More " + "package. Please migrate to the `semantic-chunkers` package. More " "information can be found at:\n" - "https://github.com/aurelio-ai/semantic-chunkers" + "https://github.com/aurelio-ai/semantic-chunkers", + stacklevel=2, ) super().__init__(name=name, encoder=encoder) self.calculated_threshold: float