mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-04 21:47:22 +00:00
Added a pause between indexing steps for shared embedding servers (#1114)
This commit is contained in:
1 parent
cbc4ce5413
commit
dcba62b45c
21 files changed
+627
-9
No files matched your search
@@ -6,6 +6,7 @@ using AIStudio.Provider;
|
||||
using AIStudio.Settings.DataModel;
|
||||
using AIStudio.Tools.Rust;
|
||||
using AIStudio.Tools.Services;
|
||||
using AIStudio.Tools.Services.Indexing;
|
||||
|
||||
using Microsoft.AspNetCore.Components;
|
||||
|
||||
@@ -58,6 +59,23 @@ public partial class Embeddings : MSGComponentBase
|
||||
|
||||
private bool AreMailboxesEnabled => PreviewFeatures.PRE_MAILBOXES_2026.IsEnabled(this.SettingsManager);
|
||||
|
||||
/// <remarks>
|
||||
/// Says nothing while there is no pause between the steps, which is the default.
|
||||
/// </remarks>
|
||||
private string PauseBetweenStepsText
|
||||
{
|
||||
get
|
||||
{
|
||||
var pause = PauseRange.FromSettings(this.SettingsManager.ConfigurationData.App.DataSourceIndexing);
|
||||
if (pause.IsNone)
|
||||
return string.Empty;
|
||||
|
||||
return pause.MinimumSeconds == pause.MaximumSeconds
|
||||
? string.Format(T("Between two steps, AI Studio pauses for {0} seconds, to spare an embedding server which many people share."), pause.MaximumSeconds)
|
||||
: string.Format(T("Between two steps, AI Studio pauses for {0} to {1} seconds, to spare an embedding server which many people share."), pause.MinimumSeconds, pause.MaximumSeconds);
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks>
|
||||
/// The chips above count documents, which says nothing about how far the list of data sources
|
||||
/// itself has come. While several of them wait their turn, this is the one line saying so. With a
|
||||
|
||||
Reference in new issue
Block a user