From 9ffb1af95c11e85b0608b314a4dba743a203139f Mon Sep 17 00:00:00 2001 From: James Briggs Date: Thu, 5 Sep 2024 18:10:15 +0200 Subject: [PATCH 1/2] fix: bug in pinecone index for func schema --- semantic_router/index/pinecone.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/semantic_router/index/pinecone.py b/semantic_router/index/pinecone.py index 174fb49a..91726e44 100644 --- a/semantic_router/index/pinecone.py +++ b/semantic_router/index/pinecone.py @@ -799,7 +799,7 @@ async def _async_get_routes(self) -> List[Tuple]: data.get("sr_utterance", ""), ( json.loads(data["sr_function_schema"]) - if data["sr_function_schema"] + if data.get("sr_function_schema", "") else {} ), { From 40f7ec12c70593209fcb0b9d1e3bbf4d0bcfadb9 Mon Sep 17 00:00:00 2001 From: James Briggs Date: Thu, 5 Sep 2024 18:12:10 +0200 Subject: [PATCH 2/2] chore: release v0.0.64 --- docs/source/conf.py | 2 +- pyproject.toml | 2 +- semantic_router/__init__.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index b8e1a7d6..f1f379a4 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.0.63" +release = "0.0.64" # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration diff --git a/pyproject.toml b/pyproject.toml index 4b0e66ab..fa02ef1d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "semantic-router" -version = "0.0.63" +version = "0.0.64" 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 8302e0b5..c5f2bb70 100644 --- a/semantic_router/__init__.py +++ b/semantic_router/__init__.py @@ -4,4 +4,4 @@ __all__ = ["RouteLayer", "HybridRouteLayer", "Route", "LayerConfig"] -__version__ = "0.0.63" +__version__ = "0.0.64"