Skip to content

adds support for int8 and uint8 dtypes in vectorizers #279

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

Merged
merged 7 commits into from
Feb 13, 2025

Conversation

justin-cechmanek
Copy link
Collaborator

This PR includes support for two integer dtypes, and also markes the 'dtype' kwarg in embedding methods as deprecated.

@tylerhutcherson tylerhutcherson added the enhancement New feature or request label Feb 12, 2025
Copy link
Collaborator

@rbs333 rbs333 left a comment

Choose a reason for hiding this comment

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

Looks like we beat you to merge here and you might need to rebase

Copy link
Collaborator

@tylerhutcherson tylerhutcherson left a comment

Choose a reason for hiding this comment

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

looking good, left a few notes

@@ -19,4 +19,5 @@ vectorizer:
model: sentence-transformers/all-mpnet-base-v2
routing_config:
max_k: 2
aggregation_method: avg
Copy link
Collaborator

Choose a reason for hiding this comment

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

@rbs333 this is related to what I DM'd you about regarding the deprecated distance_threshold arg

@@ -316,6 +320,7 @@ async def aembed_many(
]
return embeddings

@deprecated_argument("dtype")
Copy link
Collaborator

Choose a reason for hiding this comment

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

😂 This looks like it was fun

abrookins
abrookins previously approved these changes Feb 13, 2025
Copy link
Collaborator

@abrookins abrookins left a comment

Choose a reason for hiding this comment

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

Looks good! 👍

@tylerhutcherson tylerhutcherson merged commit b751db7 into main Feb 13, 2025
36 checks passed
@tylerhutcherson tylerhutcherson deleted the feat/RAAE-598/int8_support branch February 13, 2025 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants