add retry functionality to extract_knowledge_from_text#49
add retry functionality to extract_knowledge_from_text#49wirthual wants to merge 1 commit intomicrosoft:mainfrom
Conversation
|
I'm sorry, this currently adds retries to knowledge extraction. However, that uses typechat, which already implements its own retry logic -- so we don't need to add our own. I was thinking of adding it to the guts of AsyncEmbeddingModel, in Assuming we have to do our own retries, the next thing to try is if its return value gives you access to the raw HTTP headers. There should be a header Maybe you can copy some logic from TypeAgent -- search for |
|
If no retry-after header is found we should definitely use exponential backoff, e.g. first retry after 1 second, second after 2s, then 4s, 8s etc. |
|
Understood. Looks like |
|
Oh in that case we don't need to do anything. The default value is 2 retries, which brings the total number of tries to 3(*), which is exactly what I'd like to use. (*) The code is pretty convoluted but I found code that loops over |
Should there be a delay in between the calls? With a potential backoff?