@attribute [Route(Routes.EMBEDDINGS)] @inherits MSGComponentBase @T("Background embeddings") @T("AI Studio indexes local RAG data sources in the background. Finished files stay recorded so unchanged files can be skipped after a restart, while added or deleted files are detected during the next run.") @string.Format(T("Indexed files: {0}"), this.TotalIndexedFiles) @string.Format(T("Pending files: {0}"), this.TotalPendingFiles) @string.Format(T("Failed files: {0}"), this.TotalFailedFiles) @if (this.Statuses.Count == 0) { @T("No local data source has been queued for embedding yet.") } else { @foreach (var status in this.Statuses) { @status.DataSourceName @status.StateLabel @string.Format(T("{0} of {1} files are indexed."), status.IndexedFiles, status.TotalFiles) @if (status.FailedFiles > 0) { @string.Format(T("Failed files: {0}"), status.FailedFiles) } @if (!string.IsNullOrWhiteSpace(status.CurrentFile)) { @string.Format(T("Current file: {0}"), status.CurrentFile) } @if (!string.IsNullOrWhiteSpace(status.LastError)) { @status.LastError } } }