diff --git a/docs/00-introduction.ipynb b/docs/00-introduction.ipynb index c18df0dc5597d7cfcca2bf3700cb5d342bfd163c..60c2a07f2ce5810a7e52a388676609b40e9b739a 100644 --- a/docs/00-introduction.ipynb +++ b/docs/00-introduction.ipynb @@ -41,7 +41,7 @@ "metadata": {}, "outputs": [], "source": [ - "!pip install -qU semantic-router==0.0.33" + "!pip install -qU semantic-router==0.0.34" ] }, { diff --git a/docs/01-save-load-from-file.ipynb b/docs/01-save-load-from-file.ipynb index e1a648cacfca2922549fc10f1ab609d092e4158d..d0afb0ef89f50224b03c7590c63d5fcda34a6e85 100644 --- a/docs/01-save-load-from-file.ipynb +++ b/docs/01-save-load-from-file.ipynb @@ -36,7 +36,7 @@ "metadata": {}, "outputs": [], "source": [ - "!pip install -qU semantic-router==0.0.33" + "!pip install -qU semantic-router==0.0.34" ] }, { diff --git a/docs/02-dynamic-routes.ipynb b/docs/02-dynamic-routes.ipynb index cc151664b0d2df6d07215ad67835a28a4376115f..23eea22806489c3f489fd8f00fadb9a275868eb9 100644 --- a/docs/02-dynamic-routes.ipynb +++ b/docs/02-dynamic-routes.ipynb @@ -48,7 +48,7 @@ }, "outputs": [], "source": [ - "!pip install -qU semantic-router==0.0.33" + "!pip install -qU semantic-router==0.0.34" ] }, { diff --git a/docs/05-local-execution.ipynb b/docs/05-local-execution.ipynb index 8049c27464d050cc73a4fb1e037ec75858b66eda..e9100573673ffdbaf13f78af361fb76bdac19d35 100644 --- a/docs/05-local-execution.ipynb +++ b/docs/05-local-execution.ipynb @@ -41,7 +41,7 @@ "metadata": {}, "outputs": [], "source": [ - "!pip install -qU \"semantic-router[local]==0.0.33\"" + "!pip install -qU \"semantic-router[local]==0.0.34\"" ] }, { diff --git a/docs/06-threshold-optimization.ipynb b/docs/06-threshold-optimization.ipynb index e54970a8f38163edbce2b711728a6164dcac7a9a..059122127c72c75370668f5b72b5ccab636b9928 100644 --- a/docs/06-threshold-optimization.ipynb +++ b/docs/06-threshold-optimization.ipynb @@ -29,7 +29,7 @@ "metadata": {}, "outputs": [], "source": [ - "!pip install -qU \"semantic-router[local]==0.0.33\"" + "!pip install -qU \"semantic-router[local]==0.0.34\"" ] }, { diff --git a/docs/07-multi-modal.ipynb b/docs/07-multi-modal.ipynb index f9303146d4b9bd970a583bd4ef7fa24040308826..15befb4c90fbcb7610ea14a01c388e66056beb42 100644 --- a/docs/07-multi-modal.ipynb +++ b/docs/07-multi-modal.ipynb @@ -100,7 +100,7 @@ ], "source": [ "!pip install -qU \\\n", - " \"semantic-router[vision]==0.0.33\" \\\n", + " \"semantic-router[vision]==0.0.34\" \\\n", " datasets==2.17.0" ] }, diff --git a/docs/09-route-filter.ipynb b/docs/09-route-filter.ipynb index 78909c9908d5be6b9dacc590e807e811bf8fe8b8..22c3af20fcd79f2abddd63c337f6717c891cc1a3 100644 --- a/docs/09-route-filter.ipynb +++ b/docs/09-route-filter.ipynb @@ -41,7 +41,7 @@ "metadata": {}, "outputs": [], "source": [ - "!pip install -qU semantic-router==0.0.33" + "!pip install -qU semantic-router==0.0.34" ] }, { diff --git a/docs/encoders/google.ipynb b/docs/encoders/google.ipynb index 83a4c9885ed2999f4cb2c1b0dbbcd1369d90f6df..5aabdd132765e2376c6eac6a89d5af7911bc1ff8 100644 --- a/docs/encoders/google.ipynb +++ b/docs/encoders/google.ipynb @@ -41,7 +41,7 @@ "metadata": {}, "outputs": [], "source": [ - "!pip install -qU \"semantic-router[google]==0.0.33\"" + "!pip install -qU \"semantic-router[google]==0.0.34\"" ] }, { diff --git a/docs/examples/unstructured-element-splitter.ipynb b/docs/examples/unstructured-element-splitter.ipynb index e3a9be6fb76a24c416485b9a8f42e860eadf695e..c53352c37c2d97d64fd6e4d10fccdd8f93fac1ee 100644 --- a/docs/examples/unstructured-element-splitter.ipynb +++ b/docs/examples/unstructured-element-splitter.ipynb @@ -16,7 +16,7 @@ "# It may take longer to install the package\n", "!pip install -qU \\\n", " \"unstructured[pdf]==0.12.4\" \\\n", - " \"semantic-router==0.0.33\"" + " \"semantic-router==0.0.34\"" ] }, { diff --git a/pyproject.toml b/pyproject.toml index db95e007942f38ede50abaad82d39753d49d3980..06d314d5a89d4100879001080af4cdc2e9fd634e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "semantic-router" -version = "0.0.33" +version = "0.0.34" 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 d677c0359a07395494fefcadb054802544e5fd3d..23b3df7e052899b6d9ed77126318a7efccfa77cd 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.33" +__version__ = "0.0.34" diff --git a/semantic_router/encoders/openai.py b/semantic_router/encoders/openai.py index de6c0599710b59a14124ae269eee3b047eb33063..7712b19b7298b5d5a3070b79b131775ad3466349 100644 --- a/semantic_router/encoders/openai.py +++ b/semantic_router/encoders/openai.py @@ -52,7 +52,7 @@ class OpenAIEncoder(BaseEncoder): error_message = "" # Exponential backoff - for j in range(3): + for j in range(1, 7): try: embeds = self.client.embeddings.create( input=docs, diff --git a/semantic_router/splitters/rolling_window.py b/semantic_router/splitters/rolling_window.py index b3ca6279e6733bf5afa0a57dbefa64c3379fda35..a2809ff53cf15d4a00a87307da6027491d1008ab 100644 --- a/semantic_router/splitters/rolling_window.py +++ b/semantic_router/splitters/rolling_window.py @@ -76,7 +76,7 @@ class RollingWindowSplitter(BaseSplitter): if len(docs) == 1: token_count = tiktoken_length(docs[0]) if token_count > self.max_split_tokens: - logger.warning( + logger.info( f"Single document exceeds the maximum token limit " f"of {self.max_split_tokens}. " "Splitting to sentences before semantically splitting."