Open hfaouaz-rcg opened 6 days ago
I wasn't able to reproduce the issue in my vision setup. Could you print() out the resp_json to see what it contains?
Hi @pamelafox. thank you first. second, I can't seem to duplicate the issue again after I rebuilt the environment. I am suspecting it could have been computer vision running on a private endpoint, that was preventing prepdocs to invoke the api? I will keep an eye, and it happens again, I will print the resp_json.
This issue is for a: (mark with an
x
)Minimal steps to reproduce
Any log messages given by the failure
Rate limited on the Vision embeddings API, sleeping before retrying... Rate limited on the Vision embeddings API, sleeping before retrying... Rate limited on the Vision embeddings API, sleeping before retrying... Traceback (most recent call last): File "/Users/hfaouaz/development/rcg-search-openai/app/backend/prepdocslib/embeddings.py", line 248, in create_embeddings embeddings.append(resp_json["vector"]) KeyError: 'vector'
Expected/desired behavior
Even hitting the rate limit, it should eventually build the embeddings.
OS and Version?
Running Locally - macOS Sonoma 14.5
azd version?
azd version 1.9.3 (commit e1624330dcc7dde440ecc1eda06aac40e68aa0a3)
Versions
Mention any other details that might be useful