-
Notifications
You must be signed in to change notification settings - Fork 217
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: add fast sync check #460
base: main
Are you sure you want to change the base?
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 #460 +/- ##
==========================================
+ Coverage 68.04% 68.50% +0.45%
==========================================
Files 46 46
Lines 3505 3591 +86
==========================================
+ Hits 2385 2460 +75
- Misses 1120 1131 +11 ☔ View full report in Codecov by Sentry. |
PR Type
enhancement
Description
_read_hash
and_write_config
inBaseIndex
andPineconeIndex
to handle configuration parameters.semantic_router/layer.py
by adding hash comparison to check if local and remote instances are synchronized.ConfigParameter
class insemantic_router/schema.py
to manage configuration parameters and convert them to Pinecone format.PineconeIndex
.Changes walkthrough 📝
base.py
Add methods for reading and writing index configuration
semantic_router/index/base.py
_read_hash
method to read the hash of the index._write_config
method to write a config parameter to the index.pinecone.py
Implement configuration methods and namespace validation for Pinecone
index
semantic_router/index/pinecone.py
_read_hash
and_write_config
methods for Pinecone index.PineconeRecord
to have a default function schema.layer.py
Enhance synchronization logic with hash comparison
semantic_router/layer.py
get_hash
method to generate a hash for the layer.is_synced
method to use hash comparison for synchronizationcheck.
schema.py
Add ConfigParameter class for configuration management
semantic_router/schema.py
ConfigParameter
class for configuration management.to_pinecone
method to convert config to Pinecone format.