Find answers from the community

Updated 3 months ago

azure

I use AzureOpenAIEmbedding to replace embedding model in Property Graph Index but got this error
Plain Text
AttributeError: 'AzureOpenAIEmbedding' object has no attribute '_async_http_client' 

Is there anyway I can fix this and proceed with using AzureOpenAIEmbedding for PropertyGraphIndex?
1
L
p
m
10 comments
Interesting. I think this is actually fixed if you update to the latest
@Logan M I just installed it so I assume it should be the latest already... Specifically, which version you mean?
Of llama-index-core
Or wait, maybe this is not the error I'm thinking of
Do you have a full stack trace?
I used AzureOpenAIEmbedding with property graph index just fine and it started calling Azure OpenAPI for embeddings.
Are you using below in the code?
import nest_asyncio
nest_asyncio.apply()

Also I used wrapper of LangchainEmbedding on AzureOpenAIEmbedding for optimizing batch calls.
I have those lines, but yeah, maybe I just have an old version.
Just updated to the latest version and now encountering this, still an active issue
It's pretty clear what is happening, this line throws

"http_client": self._async_http_client if is_async else self._http_client,

since self._async_http_client does not exist
Add a reply
Sign up and join the conversation on Discord