-
Notifications
You must be signed in to change notification settings - Fork 235
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: sentence transformers #517
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:
|
PR Type
Enhancement, Documentation, Tests
Description
Introduced
STEncoder
andLocalEncoder
for local dense embeddings.Refactored encoders to use
TorchAbstractDenseEncoder
for shared PyTorch logic.Added a new introduction notebook for local encoder usage.
Updated dependencies to support local and sentence-transformers functionality.
Changes walkthrough 📝
7 files
Added
STEncoder
andLocalEncoder
to encoder imports andinitialization.
Refactored `CLIPEncoder` to use `TorchAbstractDenseEncoder`.
Introduced `LocalEncoder` extending `STEncoder` for local embeddings.
Added `STEncoder` for sentence-transformers-based dense embeddings.
Created `TorchAbstractDenseEncoder` for shared PyTorch functionality.
Refactored `VitEncoder` to use `TorchAbstractDenseEncoder`.
Added new encoder types `LOCAL` and `SENTENCE_TRANSFORMERS`.
1 files
Added a notebook demonstrating `LocalEncoder` usage.
1 files
Updated dependencies for local and sentence-transformers support.