-
Notifications
You must be signed in to change notification settings - Fork 16.2k
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
community: Fix FastEmbedEmbeddings #24462
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
cc @eyurtsev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FastEmbed 0.1 was current in January. Are we sure we want to drop support for it? Should we continue to handle both < 0.2 and >= 0.2 separately?
@@ -48,12 +52,24 @@ class FastEmbedEmbeddings(BaseModel, Embeddings): | |||
The available options are: "default" and "passage" | |||
""" | |||
|
|||
batch_size: int = 256 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(nit) If FastEmbed default changes, this will be out of date. Would prefer to have this Optional and not pass in in the None case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see this could also be applicable to model_name
, max_length
.
Leading to to quite some duplicated code due to the conditionals.
So I propose to keep it. WDYT?
There have been several improvements during the time. We highly recommend to move to the latest. So yes, dropping would be fine. |
## Description This PR: - Fixes the validation error in `FastEmbedEmbeddings`. - Adds support for `batch_size`, `parallel` params. - Removes support for very old FastEmbed versions. - Updates the FastEmbed doc with the new params. Associated Issues: - Resolves langchain-ai#24039 - Resolves #qdrant/fastembed#296
Description
This PR:
FastEmbedEmbeddings
.batch_size
,parallel
params.Associated Issues: