maksit-postclient/src/MaksIT.PostClient.Client/ISemanticSearchService.cs

34 lines
511 B
C#

using MaksIT.PostClient.Shared;
namespace MaksIT.PostClient.Client;
public interface ISemanticSearchService : IDisposable {
bool IsReady { get; }
bool UsesGpu { get; }
string StatusLine { get; }
event Action? Changed;
event Action<Exception>? Faulted;
void Start();
void NotifySettingsChanged();
void Wake();
float[]? EmbedQuery(string query);
ArchiveIndexStats IndexStats();
int RebuildKeywordIndex();
ArchiveIndexStats SanitizeIndices();
int RebuildMeaningIndex();
}