-
Notifications
You must be signed in to change notification settings - Fork 234
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: hybrid router and async pinecone upgrades #493
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 #493 +/- ##
==========================================
- Coverage 74.84% 74.44% -0.41%
==========================================
Files 43 43
Lines 3753 3846 +93
==========================================
+ Hits 2809 2863 +54
- Misses 944 983 +39 ☔ View full report in Codecov by Sentry. |
Will close #492
This pull request includes several updates to the
semantic_router
project. The changes focus on updating dependencies, enhancing the indexing functionality, and improving the test configuration. It also resolves some previously unnoticed bugs in asyncPineconeIndex
and pytest coverage.Dependency Updates:
POETRY_VERSION
from1.8.4
to2.0.1
in multiple workflow files to ensure compatibility with the latest version of Poetry. (.github/workflows/docs.yml: [1] .github/workflows/lint.yml: [2] .github/workflows/release.yml: [3] .github/workflows/test.yml: [4]0.1.0.dev5
to0.1.0.dev6
inpyproject.toml
andsemantic_router/__init__.py
to reflect the new release. (pyproject.toml: [1] semantic_router/init.py: [2]pinecone-text
dependency to remove the upper version limit. (pyproject.toml: pyproject.tomlL20-R20)Indexing Enhancements:
IndexConfig
class and updatedBaseIndex
class to include new methods such asdescribe
andis_ready
. (semantic_router/index/base.py: [1] [2]build_records
function inPineconeIndex
to handle the creation of records for Pinecone indexing. (semantic_router/index/pinecone.py: semantic_router/index/pinecone.pyR22-R74)get_utterances
methods across different index classes to include aninclude_metadata
parameter. (semantic_router/index/base.py: [1] semantic_router/index/hybrid_local.py: [2] semantic_router/index/local.py: [3]Test Configuration:
--exitfirst
and--maxfail=1
options to pytest commands inMakefile
to improve test failure handling. (Makefile: MakefileL15-R22)Documentation:
Code Cleanup:
mypy
configuration from.pre-commit-config.yaml
. (.pre-commit-config.yaml: .pre-commit-config.yamlL67-L72)