// A repair discards the index, which waits for the end of a pause:
if(embeddingService.IsIndexingPaused)
{
awaitdialogService.ShowMessageBox(TB("Repair Data Source"),TB("AI Studio is backing up or restoring the indexes of your data sources right now. Please try again once that is done."),TB("Close"));
{x=>x.Message,string.Format(TB("The index of the data source '{0}' cannot be read anymore. Repairing it means building the index from scratch: everything indexed so far is thrown away, and every document of this data source is sent to your embedding provider once more. With a cloud provider, this costs money, and with a large data source it takes a while. Do you want to repair this data source now?"),dataSourceName)},
};
vardialogReference=awaitdialogService.ShowAsync<ConfirmDialog>(TB("Repair Data Source"),dialogParameters,Dialogs.DialogOptions.FULLSCREEN);