Skip to content
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 tfidf #38

Merged
merged 45 commits into from
Jan 12, 2024
Merged

feat: Add tfidf #38

merged 45 commits into from
Jan 12, 2024

Conversation

digriffiths
Copy link
Contributor

@digriffiths digriffiths commented Dec 19, 2023

added tfidf vectorizer, changed hybrid layer to accomodate, user can define which sparse encoder they use

added tfidf encoder, edited hybrid layer to let user choose sparse encoder type
update sparse_encoder if statements to type rather than name
pyproject.toml Outdated Show resolved Hide resolved
@simjak simjak added the enhancement Enhancement to existing features label Dec 20, 2023
Copy link

codecov bot commented Jan 3, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (5657a4d) 87.80% compared to head (c651b4a) 88.60%.

Files Patch % Lines
semantic_router/encoders/tfidf.py 98.43% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #38      +/-   ##
==========================================
+ Coverage   87.80%   88.60%   +0.79%     
==========================================
  Files          22       23       +1     
  Lines         894      965      +71     
==========================================
+ Hits          785      855      +70     
- Misses        109      110       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@digriffiths digriffiths changed the title Add tfidf feat: Add tfidf Jan 5, 2024
Copy link
Member

@jamescalam jamescalam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome work @digriffiths well done! Merging

@jamescalam jamescalam merged commit caa8672 into aurelio-labs:main Jan 12, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to existing features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants