-
Notifications
You must be signed in to change notification settings - Fork 51
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
4_embeddings: ValueError: "InstructorEmbeddings" object has no field "_model" #6
Comments
Problem resolved by adding:
to the InstructorEmbeddings class |
I also got the error:
My solutionThis is my fix:
My results are the same as the video:
|
Current working solution as of Jul 23rd 2024.
Adding instance var model with pydantic validation in placeBaseEmbedding class has pydantic validation, meaning that no extra fields can be added to InstructorEmbeddings child class out of the box. Add following code to allow extra fields to be defined.
Initialize BaseEmbedding super class before initializing model
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I"m working through the llama_docs_bot files and there is an issue with the InstructorEmbeddings class that relies on BaseEmbedding:
Running the following:
I get the following error:
This is a list of my installed modules with versions etc.
The text was updated successfully, but these errors were encountered: