Luis Gestoso Muñoz
03/24/2025, 2:55 PMupsert
), the API requests take from 5 seconds to almost 2 minutes (if we send around 100docs). We suspect that this is because the embedding generation using the embeddings API is being done Synchronously on Typesense before returning a success, is that right?
If that's the case, how should our system behave in this case? We don't want to keep that thread waiting for the response. We have considered doing fire and forget, but how would we know that the documents were correctly indexed?
Thanks! tyJason Bosco
03/24/2025, 5:26 PMWe suspect that this is because the embedding generation using the embeddings API is being done Synchronously on Typesense before returning a success, is that right?That's correct. You could terminate the connection on your side after you've determined that all the data has been uploaded and network activity is zero, but then you won't be able to receive status updates / validation issues etc. Holding on to the HTTP connection is the only way to receive a status about the updates.
Joao Neves
03/25/2025, 9:52 AMJason Bosco
03/25/2025, 2:28 PMJoao Neves
03/25/2025, 3:05 PM