Open federicocaccialanzaabb opened 10 months ago
Hello, you can modify the method :
And add : max_retries=20 options for each AzureOpenAIEmbeddings constructor in the if and else statement.
It will use an exponential retry if you encounter HTTP 429 errors (related to call rate per minute)
@hongrunw Thx for the tips 👍
Thank you @deuch, I will modify the method
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days.
This issue is for a: (mark with an
x
)Minimal steps to reproduce
This will results in a success for the azure function batch push results (no token limit exceeded)
upload at the same time more than one copy of the file in order that them combined surpass the token limitation. Let the ingestion of data process and an error will be displayed in the Batch Push Results.
(the same error can be achieved if there are several documents in your azure blob storage that when uploaded and ingested individually were okay but combined they surpass your token limitation. If, through the admin page, you click on reprocess all documents, you will encounter the same error (in fact the same azure function is called, but with the parameter to take all files in the blob storage equal to true and not only the one without the embedding).)
Any log messages given by the failure
Expected/desired behavior
OS and Version?
Versions
Mention any other details that might be useful