Skip to content
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

Error on Hugging face- AttributeError: 'OpenAIEmbeddings' object has no attribute 'embedding_ctx_length' #5

Open
ailanguageinnovations opened this issue Feb 20, 2023 · 1 comment

Comments

@ailanguageinnovations
Copy link

Over the past week I've had a number of projects working fine on Hugging face after duplicating from https://huggingface.co/spaces/hwchase17/chat-your-data-state-of-the-union.
I'm now getting the following error every time I try and interact with the model.

AttributeError: 'OpenAIEmbeddings' object has no attribute 'embedding_ctx_length'

I've just checked again and duplicated your HF project and get the same issue. I can't see any difference between my duplicate of the HF project and yours so not sure what is going on.

@danielsteinigen
Copy link

danielsteinigen commented Feb 20, 2023

There were probably some changes in the last version of LangChain. Using an older version solved the issue for me:
pip install langchain==0.0.86

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants