Right now the only way to check if indexes need to be trained is by calling the /db/find_indexes_to_train endpoint in FastAPI. It would be ideal to have an automated process that runs on a given interval that calls this endpoint. This won't need to be called super frequently, even once a day could be sufficient in some cases, but there's no harm in running it more frequently.