From 6864016ed88e0ddd681ec6044b96c666100eca2d Mon Sep 17 00:00:00 2001 From: James Briggs Date: Sat, 2 Mar 2024 16:47:30 +0800 Subject: [PATCH 1/2] version 0.0.27 changes --- docs/{08-multi-modal.ipynb => 07-multi-modal.ipynb} | 0 .../ollama-local-execution.ipynb} | 10 +--------- docs/examples/unstructured-element-splitter.ipynb | 2 +- pyproject.toml | 2 +- semantic_router/__init__.py | 2 +- 5 files changed, 4 insertions(+), 12 deletions(-) rename docs/{08-multi-modal.ipynb => 07-multi-modal.ipynb} (100%) rename docs/{07-ollama-local-execution.ipynb => examples/ollama-local-execution.ipynb} (99%) diff --git a/docs/08-multi-modal.ipynb b/docs/07-multi-modal.ipynb similarity index 100% rename from docs/08-multi-modal.ipynb rename to docs/07-multi-modal.ipynb diff --git a/docs/07-ollama-local-execution.ipynb b/docs/examples/ollama-local-execution.ipynb similarity index 99% rename from docs/07-ollama-local-execution.ipynb rename to docs/examples/ollama-local-execution.ipynb index cf26b77e..f73a30f7 100644 --- a/docs/07-ollama-local-execution.ipynb +++ b/docs/examples/ollama-local-execution.ipynb @@ -25,13 +25,6 @@ "Below is an example of using semantic router which leverages Ollama in order to utilize the **OpenHermes** LLM. " ] }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "We need `pillow`, `torch` and `transformers` for the HuggingFace encoders." - ] - }, { "cell_type": "markdown", "metadata": {}, @@ -118,8 +111,7 @@ } ], "source": [ - "!pip install semantic_router[local]==0.0.23 \\\n", - "pillow torch transformers" + "!pip install -qU \"semantic_router[local]==0.0.27\"" ] }, { diff --git a/docs/examples/unstructured-element-splitter.ipynb b/docs/examples/unstructured-element-splitter.ipynb index 5a2bb577..84c449d6 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.26\"" + " \"semantic-router==0.0.27\"" ] }, { diff --git a/pyproject.toml b/pyproject.toml index 6d366978..024b9e3d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "semantic-router" -version = "0.0.26" +version = "0.0.27" description = "Super fast semantic router for AI decision making" authors = [ "James Briggs ", diff --git a/semantic_router/__init__.py b/semantic_router/__init__.py index 978313b6..d7c6a53d 100644 --- a/semantic_router/__init__.py +++ b/semantic_router/__init__.py @@ -4,4 +4,4 @@ __all__ = ["RouteLayer", "HybridRouteLayer", "Route", "LayerConfig"] -__version__ = "0.0.26" +__version__ = "0.0.27" From 17943fe5ecc8781ab333d240d6f13b76f16eed58 Mon Sep 17 00:00:00 2001 From: James Briggs Date: Sat, 2 Mar 2024 16:49:20 +0800 Subject: [PATCH 2/2] update versions in docs notebooks --- docs/00-introduction.ipynb | 2 +- docs/01-save-load-from-file.ipynb | 2 +- docs/02-dynamic-routes.ipynb | 2 +- docs/05-local-execution.ipynb | 2 +- docs/06-threshold-optimization.ipynb | 2 +- docs/07-multi-modal.ipynb | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/00-introduction.ipynb b/docs/00-introduction.ipynb index 2ff5a985..91b8ef2f 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.20" + "!pip install -qU semantic-router==0.0.27" ] }, { diff --git a/docs/01-save-load-from-file.ipynb b/docs/01-save-load-from-file.ipynb index a3f1c551..dbc7c876 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.20" + "!pip install -qU semantic-router==0.0.27" ] }, { diff --git a/docs/02-dynamic-routes.ipynb b/docs/02-dynamic-routes.ipynb index d50ed704..e896b065 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.20" + "!pip install -qU semantic-router==0.0.27" ] }, { diff --git a/docs/05-local-execution.ipynb b/docs/05-local-execution.ipynb index e3e6572b..e9dc0cad 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.20\"" + "!pip install -qU \"semantic-router[local]==0.0.27\"" ] }, { diff --git a/docs/06-threshold-optimization.ipynb b/docs/06-threshold-optimization.ipynb index fb8ee519..94f89622 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.20\"" + "!pip install -qU \"semantic-router[local]==0.0.27\"" ] }, { diff --git a/docs/07-multi-modal.ipynb b/docs/07-multi-modal.ipynb index c9cfb465..0a047dbb 100644 --- a/docs/07-multi-modal.ipynb +++ b/docs/07-multi-modal.ipynb @@ -42,7 +42,7 @@ "outputs": [], "source": [ "!pip install -qU \\\n", - " \"semantic-router[vision]==0.0.25\" \\\n", + " \"semantic-router[vision]==0.0.27\" \\\n", " datasets==2.17.0" ] },