Find answers from the community

Updated 2 months ago

milvus + azure openai

i'm trying to follow the Milvus tutorial but I am using Azure OpenAI and not OpenAI, but it keeps trying to talk to OpenAI during the embedding step:
Plain Text
Retrying llama_index.embeddings.openai.base.get_embeddings in 0.275948059787665 seconds as it raised AuthenticationError: Error code: 401 - {'error': {'message': 'Incorrect API key provided: xxx. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}.
t
L
7 comments
ohh i probably have to configure the service context
bc the default is likely openai when not configured
trying that now
that seems like it was the issue
ok, interesting. it specifically is related to the embed_model setting (or lack thereof). looks like azure openai embed is a hot mess. will use local for now
sorry for the noise!
Yea with azure, I really recommend setting a global service context

Its a little more straight forward in v0.10.x, you can explicitly pass in the embedding model for certain steps, and more easily set a global default
Add a reply
Sign up and join the conversation on Discord