-
Notifications
You must be signed in to change notification settings - Fork 178
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: async support for pinecone and openai #326
Conversation
PR Reviewer Guide 🔍
|
PR Code Suggestions ✨
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #326 +/- ##
==========================================
- Coverage 77.01% 73.80% -3.22%
==========================================
Files 45 45
Lines 2728 2901 +173
==========================================
+ Hits 2101 2141 +40
- Misses 627 760 +133 ☔ View full report in Codecov by Sentry. |
PR Type
Enhancement
Description
acall
) to base encoder class, OpenAI encoder, Azure OpenAI encoder, and Pinecone index client.threshold
attribute toEncoderInfo
class.Changes walkthrough 📝
base.py
Add asynchronous call method to base encoder class.
semantic_router/encoders/base.py
acall
method to the base encoder class for asynchronous support.openai.py
Add asynchronous support and default values to OpenAI encoder.
semantic_router/encoders/openai.py
acall
method for asynchronous API calls.azure.py
Add asynchronous support to Azure OpenAI encoder.
semantic_router/encoders/azure.py
acall
method for asynchronous API calls.pinecone.py
Add asynchronous support to Pinecone index client.
semantic_router/index/pinecone.py
description.
layer.py
Add asynchronous support to RouteLayer.
semantic_router/layer.py
acall
method for asynchronous route layer operations.schema.py
Add threshold attribute to EncoderInfo class.
semantic_router/schema.py
threshold
attribute toEncoderInfo
class.