-
Notifications
You must be signed in to change notification settings - Fork 17.2k
AttributeError: 'OpenAIEmbeddings' object has no attribute 'embedding_ctx_length' #1100
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
Comments
@Sohojoe |
#1100 When faiss data and doc.index are created in past versions, error occurs that say there was no attribute. So I put hasattr in the check as a simple solution. However, increasing the number of such checks is not good for conservatism, so I think there is a better solution. Also, the code for the batch process was left out, so I put it back in.
langchain-ai#1100 When faiss data and doc.index are created in past versions, error occurs that say there was no attribute. So I put hasattr in the check as a simple solution. However, increasing the number of such checks is not good for conservatism, so I think there is a better solution. Also, the code for the batch process was left out, so I put it back in.
langchain-ai/langchain#1100 When faiss data and doc.index are created in past versions, error occurs that say there was no attribute. So I put hasattr in the check as a simple solution. However, increasing the number of such checks is not good for conservatism, so I think there is a better solution. Also, the code for the batch process was left out, so I put it back in.
langchain-ai/langchain#1100 When faiss data and doc.index are created in past versions, error occurs that say there was no attribute. So I put hasattr in the check as a simple solution. However, increasing the number of such checks is not good for conservatism, so I think there is a better solution. Also, the code for the batch process was left out, so I put it back in.
Hi, @Sohojoe. I'm Dosu, and I'm helping the LangChain team manage their backlog. I wanted to let you know that we are marking this issue as stale. From what I understand, you encountered an AttributeError after updating to version 0.88 of LangChain. Hase-U made a pull request that seems to address this issue by suggesting the use of hasattr. They provided a link to their pull request for reference. Before we close this issue, we wanted to check with you if it is still relevant to the latest version of the LangChain repository. If it is, please let us know by commenting on this issue. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days. Thank you for your understanding and contribution to the LangChain project. |
since updating to v0.88 i get this error
AttributeError: 'OpenAIEmbeddings' object has no attribute 'embedding_ctx_length
Note: my faiss data and doc.index where create with an older version
my code is simple.
it looks like it is releated to this PR #991 by @Hase-U
The text was updated successfully, but these errors were encountered: