From 97b15ba06f3ef019858ab4028fcfeba65f163c4a Mon Sep 17 00:00:00 2001 From: jamescalam Date: Sun, 1 Dec 2024 22:00:12 +0100 Subject: [PATCH] chore: new dev release --- docs/00-introduction.ipynb | 40 ++++++++++++------------- docs/examples/hybrid-router.ipynb | 2 +- docs/indexes/pinecone-sync-routes.ipynb | 2 +- docs/source/conf.py | 2 +- pyproject.toml | 2 +- semantic_router/__init__.py | 2 +- 6 files changed, 24 insertions(+), 26 deletions(-) diff --git a/docs/00-introduction.ipynb b/docs/00-introduction.ipynb index 260f1e99..30e08413 100644 --- a/docs/00-introduction.ipynb +++ b/docs/00-introduction.ipynb @@ -24,7 +24,7 @@ "id": "k1nRRAbYf3py" }, "source": [ - "The Semantic Router library can be used as a super fast route making layer on top of LLMs. That means rather than waiting on a slow agent to decide what to do, we can use the magic of semantic vector space to make routes. Cutting route making time down from seconds to milliseconds." + "The Semantic Router library can be used as a super fast decision making layer on top of LLMs. That means rather than waiting on a slow agent to decide what to do, we can use the magic of semantic vector space to make routes. Cutting route making time down from seconds to milliseconds." ] }, { @@ -53,7 +53,7 @@ }, "outputs": [], "source": [ - "!pip install -qU semantic-router" + "!pip install -qU \"semantic-router==0.1.0.dev3\"" ] }, { @@ -167,7 +167,7 @@ "id": "lYuLO0l9f3p3" }, "source": [ - "Now we define the `RouteLayer`. When called, the route layer will consume text (a query) and output the category (`Route`) it belongs to — to initialize a `RouteLayer` we need our `encoder` model and a list of `routes`." + "Now we define the `Router`. When called, the router will consume text (a query) and output the category (`Route`) it belongs to — to initialize a `Router` we need our `encoder` model and a list of `routes`." ] }, { @@ -187,9 +187,9 @@ } ], "source": [ - "from semantic_router.layer import RouteLayer\n", + "from semantic_router.routers import SemanticRouter\n", "\n", - "rl = RouteLayer(encoder=encoder, routes=routes)" + "sr = SemanticRouter(encoder=encoder, routes=routes)" ] }, { @@ -221,7 +221,7 @@ } ], "source": [ - "rl(\"don't you love politics?\")" + "sr(\"don't you love politics?\")" ] }, { @@ -244,7 +244,7 @@ } ], "source": [ - "rl(\"how's the weather today?\")" + "sr(\"how's the weather today?\")" ] }, { @@ -276,7 +276,7 @@ } ], "source": [ - "rl(\"I'm interested in learning about llama 2\")" + "sr(\"I'm interested in learning about llama 2\")" ] }, { @@ -309,7 +309,7 @@ } ], "source": [ - "rl.retrieve_multiple_routes(\"Hi! How are you doing in politics??\")" + "sr.retrieve_multiple_routes(\"Hi! How are you doing in politics??\")" ] }, { @@ -332,20 +332,21 @@ } ], "source": [ - "rl.retrieve_multiple_routes(\"I'm interested in learning about llama 2\")" + "sr.retrieve_multiple_routes(\"I'm interested in learning about llama 2\")" ] }, { - "cell_type": "code", - "execution_count": null, - "metadata": { - "id": "QF_wATjYf3p4" - }, - "outputs": [], - "source": [] + "cell_type": "markdown", + "metadata": {}, + "source": [ + "---" + ] } ], "metadata": { + "colab": { + "provenance": [] + }, "kernelspec": { "display_name": "decision-layer", "language": "python", @@ -362,11 +363,8 @@ "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.11.4" - }, - "colab": { - "provenance": [] } }, "nbformat": 4, "nbformat_minor": 0 -} \ No newline at end of file +} diff --git a/docs/examples/hybrid-router.ipynb b/docs/examples/hybrid-router.ipynb index 71e57ca7..509f40a2 100644 --- a/docs/examples/hybrid-router.ipynb +++ b/docs/examples/hybrid-router.ipynb @@ -36,7 +36,7 @@ "metadata": {}, "outputs": [], "source": [ - "#!pip install -qU semantic-router==0.1.0.dev2" + "#!pip install -qU semantic-router==0.1.0.dev3" ] }, { diff --git a/docs/indexes/pinecone-sync-routes.ipynb b/docs/indexes/pinecone-sync-routes.ipynb index 0c6dc4e0..0ed239a2 100644 --- a/docs/indexes/pinecone-sync-routes.ipynb +++ b/docs/indexes/pinecone-sync-routes.ipynb @@ -6,7 +6,7 @@ "metadata": {}, "outputs": [], "source": [ - "!pip install -qU \"semantic-router[pinecone]==0.1.0.dev2\"" + "!pip install -qU \"semantic-router[pinecone]==0.1.0.dev3\"" ] }, { diff --git a/docs/source/conf.py b/docs/source/conf.py index 0340e029..49131e8d 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -15,7 +15,7 @@ project = "Semantic Router" copyright = "2024, Aurelio AI" author = "Aurelio AI" -release = "0.1.0.dev2" +release = "0.1.0.dev3" # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration diff --git a/pyproject.toml b/pyproject.toml index a914965b..14105630 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "semantic-router" -version = "0.1.0.dev2" +version = "0.1.0.dev3" description = "Super fast semantic router for AI decision making" authors = ["Aurelio AI "] readme = "README.md" diff --git a/semantic_router/__init__.py b/semantic_router/__init__.py index 4e65f002..93f2fc44 100644 --- a/semantic_router/__init__.py +++ b/semantic_router/__init__.py @@ -3,4 +3,4 @@ __all__ = ["SemanticRouter", "HybridRouter", "Route", "RouterConfig"] -__version__ = "0.1.0.dev2" +__version__ = "0.1.0.dev3"