-
Notifications
You must be signed in to change notification settings - Fork 232
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
feat: abstract layers #465
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #465 +/- ##
==========================================
+ Coverage 72.29% 73.61% +1.32%
==========================================
Files 39 43 +4
Lines 3292 3548 +256
==========================================
+ Hits 2380 2612 +232
- Misses 912 936 +24 ☔ View full report in Codecov by Sentry. |
PR Type
Enhancement, Tests, Documentation
Description
HybridRouteLayer
andBaseRouteLayer
classes to enhance routing capabilities with hybrid and base functionalities.RouteLayer
to inherit fromBaseRouteLayer
, improving code structure and maintainability.HybridLocalIndex
class for managing local hybrid indexing, supporting both dense and sparse embeddings.tornado
as a new dependency and updated project version to0.1.0.dev2
.Changes walkthrough 📝
6 files
__init__.py
Update imports and version in init file
semantic_router/init.py
HybridRouteLayer
.0.1.0.dev2
.__init__.py
Add new router layer imports
semantic_router/routers/init.py
BaseRouteLayer
,LayerConfig
,RouteLayer
, andHybridRouteLayer
.base.py
Implement BaseRouteLayer with route management
semantic_router/routers/base.py
BaseRouteLayer
class with extensive functionality.hybrid.py
Add HybridRouteLayer for hybrid routing
semantic_router/routers/hybrid.py
HybridRouteLayer
class for hybrid routing.semantic.py
Refactor RouteLayer to extend BaseRouteLayer
semantic_router/routers/semantic.py
RouteLayer
to inherit fromBaseRouteLayer
.hybrid_local.py
Introduce HybridLocalIndex for local hybrid indexing
semantic_router/index/hybrid_local.py
HybridLocalIndex
class for local hybrid indexing.2 files
conf.py
Update documentation version
docs/source/conf.py
0.1.0.dev2
.pinecone-sync-routes.ipynb
Update Pinecone sync notebook for new API
docs/indexes/pinecone-sync-routes.ipynb
1 files
pyproject.toml
Update project version and dependencies
pyproject.toml
0.1.0.dev2
.tornado
as a new dependency.3 files
test_hybrid_layer.py
Update test imports for HybridRouteLayer
tests/unit/test_hybrid_layer.py
HybridRouteLayer
.test_router.py
Update test imports for router layers
tests/unit/test_router.py
LayerConfig
andRouteLayer
.test_sync.py
Update test imports for RouteLayer
tests/unit/test_sync.py
RouteLayer
.