-
Notifications
You must be signed in to change notification settings - Fork 16.1k
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
Validation error for FastEmbedEmbeddings - extra fields not permitted #24039
Comments
Could you check if downgrading to |
Nope, downgrading to |
Same here, on colab
|
For versions |
@JonathanLoscalzo downgrading both lanchain_community==0.2.6 and fastembed==0.3.2 worked, Thanks! I |
same issue. |
Could someone help isolate whether the issue comes from a change in langchain_community or from fastembed? |
@eyurtsev the issue comes from the new release of langchain_community v0.2.7 which was released 2 days ago. |
thanks for that it works |
th
Thanks Man This finally works thanks very much |
## 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 #24039 - Resolves #qdrant/fastembed#296
## 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
weird, im getting the same error here |
@Fernando7181, can you update the Langchain community package to the latest version? |
|
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
`---------------------------------------------------------------------------
ValidationError Traceback (most recent call last)
in <cell line: 1>()
----> 1 embeddings = FastEmbedEmbeddings()
/usr/local/lib/python3.10/dist-packages/pydantic/v1/main.py in init(pydantic_self, **data)
339 values, fields_set, validation_error = validate_model(pydantic_self.class, data)
340 if validation_error:
--> 341 raise validation_error
342 try:
343 object_setattr(pydantic_self, 'dict', values)
ValidationError: 1 validation error for FastEmbedEmbeddings
_model
extra fields not permitted (type=value_error.extra)
Description
Unable to Instantie FastEmbed model. It raises validation error for extra fields while none are provided. Issue seems to be arising from pydantic.
Code was working well on langchain == 0.2.6 and langchain-core == 0.2.11. Tried installing older versions but still getting the error.
Followed the tutorial here: https://python.langchain.com/v0.2/docs/integrations/text_embedding/fastembed/
System Info
langchain==0.2.7
langchain-community==0.2.7
langchain-core==0.2.12
langchain-text-splitters==0.2.2
Google-colab
Python 3.10.12
The text was updated successfully, but these errors were encountered: