Skip to content

Introduce semantic router extension #186

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions docs/_static/js/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,23 @@ const toc = [
{ title: "Query and Filter", path: "/user_guide/hybrid_queries_02.html" },
{ title: "JSON vs Hash Storage", path: "/user_guide/hash_vs_json_05.html" },
{ title: "Vectorizers", path: "/user_guide/vectorizers_04.html" },
{ title: "Rerankers", path: "/user_guide/rerankers_06.html"},
{ title: "Rerankers", path: "/user_guide/rerankers_06.html" },
{ title: "Semantic Caching", path: "/user_guide/llmcache_03.html" },
{ title: "Semantic Routing", path: "/user_guide/semantic_router_08.html" },
]},
{ header: "API", toc: [
{ title: "Schema", path: "/api/schema.html"},
{ title: "Search Index", path: "/api/searchindex.html" },
{ title: "Query", path: "/api/query.html" },
{ title: "Filter", path: "/api/filter.html" },
]},
{ header: "Utils", toc: [
{ title: "Vectorizers", path: "/api/vectorizer.html" },
{ title: "Rerankers", path: "/api/reranker.html" },
{ title: "LLMCache", path: "/api/cache.html" }
]},
{ header: "Extensions", toc: [
{ title: "LLM Cache", path: "/api/cache.html" },
{ title: "Semantic Router", path: "/api/router.html" },
]}
];

Expand Down
6 changes: 3 additions & 3 deletions docs/api/cache.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

********
LLMCache
********
*********
LLM Cache
*********

SemanticCache
=============
Expand Down
1 change: 1 addition & 0 deletions docs/api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ filter
vectorizer
reranker
cache
router
```

5 changes: 3 additions & 2 deletions docs/api/query.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
Query
*****

.. _query_api:


VectorQuery
===========

.. _query_api:

.. currentmodule:: redisvl.query


Expand Down
51 changes: 51 additions & 0 deletions docs/api/router.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@

***************
Semantic Router
***************

.. _semantic_router_api:


Semantic Router
===============

.. currentmodule:: redisvl.extensions.router

.. autoclass:: SemanticRouter
:members:


Routing Config
==============

.. currentmodule:: redisvl.extensions.router

.. autoclass:: RoutingConfig
:members:


Route
=====

.. currentmodule:: redisvl.extensions.router

.. autoclass:: Route
:members:


Route Match
===========

.. currentmodule:: redisvl.extensions.router.schema

.. autoclass:: RouteMatch
:members:


Distance Aggregation Method
===========================

.. currentmodule:: redisvl.extensions.router.schema

.. autoclass:: DistanceAggregationMethod
:members:
1 change: 1 addition & 0 deletions docs/user_guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ vectorizers_04
hash_vs_json_05
rerankers_06
session_manager_07
semantic_router_08
```

Loading
Loading