diff --git a/docs/00-introduction.ipynb b/docs/00-introduction.ipynb index f75774ebb2c65721cfca4679079c782639dc0f71..9c68cd0c90b9790098f3510fee64222a8e52252a 100644 --- a/docs/00-introduction.ipynb +++ b/docs/00-introduction.ipynb @@ -51,7 +51,7 @@ } ], "source": [ - "!pip install -qU semantic-router==0.0.29" + "!pip install -qU semantic-router==0.0.35" ] }, { @@ -63,18 +63,9 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 3, "metadata": {}, - "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "c:\\Users\\Siraj\\Documents\\Personal\\Work\\Aurelio\\Virtual Environments\\semantic_layer\\Lib\\site-packages\\tqdm\\auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n", - " from .autonotebook import tqdm as notebook_tqdm\n" - ] - } - ], + "outputs": [], "source": [ "from semantic_router import Route\n", "\n", @@ -100,7 +91,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 4, "metadata": {}, "outputs": [], "source": [ @@ -127,7 +118,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 5, "metadata": {}, "outputs": [], "source": [ @@ -155,14 +146,14 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 7, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ - "\u001b[32m2024-04-02 22:45:21 INFO semantic_router.utils.logger Initializing RouteLayer\u001b[0m\n" + "\u001b[32m2024-04-19 18:34:06 INFO semantic_router.utils.logger local\u001b[0m\n" ] } ], @@ -181,16 +172,16 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 8, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "RouteChoice(name='politics', function_call=None, similarity_score=None, trigger=None)" + "RouteChoice(name='politics', function_call=None, similarity_score=None)" ] }, - "execution_count": 6, + "execution_count": 8, "metadata": {}, "output_type": "execute_result" } @@ -201,16 +192,16 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 9, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "RouteChoice(name='chitchat', function_call=None, similarity_score=None, trigger=None)" + "RouteChoice(name='chitchat', function_call=None, similarity_score=None)" ] }, - "execution_count": 7, + "execution_count": 9, "metadata": {}, "output_type": "execute_result" } @@ -228,16 +219,16 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 10, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "RouteChoice(name=None, function_call=None, similarity_score=None, trigger=None)" + "RouteChoice(name=None, function_call=None, similarity_score=None)" ] }, - "execution_count": 8, + "execution_count": 10, "metadata": {}, "output_type": "execute_result" } @@ -255,17 +246,17 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": 11, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "[RouteChoice(name='politics', function_call=None, similarity_score=0.8596186767854479, trigger=None),\n", - " RouteChoice(name='chitchat', function_call=None, similarity_score=0.8356239688161818, trigger=None)]" + "[RouteChoice(name='politics', function_call=None, similarity_score=0.8596186767854487),\n", + " RouteChoice(name='chitchat', function_call=None, similarity_score=0.8356239688161808)]" ] }, - "execution_count": 9, + "execution_count": 11, "metadata": {}, "output_type": "execute_result" } @@ -273,6 +264,33 @@ "source": [ "rl.retrieve_multiple_routes(\"Hi! How are you doing in politics??\")" ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "[]" + ] + }, + "execution_count": 12, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "rl.retrieve_multiple_routes(\"I'm interested in learning about llama 2\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] } ], "metadata": { @@ -291,7 +309,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.4" + "version": "3.12.2" } }, "nbformat": 4,