Find answers from the community

Updated 5 months ago

[Bug]: OpenAIEmbeddings is broken in 0.1...

At a glance

A community member is experiencing issues with OpenAIEmbeddings in version 0.10.6, where the library seems to crash due to an assignment issue with the callback_manager. The community member has opened an issue on GitHub to provide more information. Other community members have not experienced this issue, and one member provided an example of how they use OpenAIEmbedding successfully. The community is trying to help the original poster troubleshoot the problem, but there is no explicitly marked answer yet.

Useful resources
Hey everyone, I'm having issues with OpenAIEmbeddings in the new 0.10.6. It seems to crash due to an assignment issue of the callback_manager. I opened an issue with more information here:
https://github.com/run-llama/llama_index/issues/10977

Did anyone else experience that?
L
d
6 comments
I have not seen this 🤔 And I've been using OpenAIEmbeddings extensively
That’s weird. Do you also use 0.10.6?
I tried to check my code and it seems pretty straightforward
What is OpenAiEmbedding ? Isn't it OpenAIEmbedding

This works for me

Plain Text
>>> from llama_index.embeddings.openai import OpenAIEmbedding
>>> from llama_index.core import Document, VectorStoreIndex
>>> embed_model = OpenAIEmbedding(model="text-embedding-3-large", dimensions=768)
>>> index = VectorStoreIndex.from_documents([Document.example()], embed_model=embed_model)
yea I'm on the latest
Thanks for helping me out in the issue!
Add a reply
Sign up and join the conversation on Discord