Find answers from the community

Updated 3 months ago

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

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