Added home page dashboard, added embedding cache size estimation and front-end label, added individual health check routes

This commit is contained in:
2025-12-30 02:54:30 +01:00
parent 4fe6b4a112
commit 0f599a49d0
9 changed files with 2015 additions and 1692 deletions

View File

@@ -101,7 +101,7 @@ public struct SearchdomainSettings(bool cacheReconciliation = false)
public bool CacheReconciliation { get; set; } = cacheReconciliation;
}
internal static class MemorySizes
public static class MemorySizes
{
public static readonly int PointerSize = IntPtr.Size;
public static readonly int ObjectHeader = PointerSize * 2;

View File

@@ -6,4 +6,16 @@ public class ServerGetModelsResult : SuccesMessageBaseModel
{
[JsonPropertyName("Models")]
public string[]? Models { get; set; }
}
public class ServerGetEmbeddingCacheSizeResult : SuccesMessageBaseModel
{
[JsonPropertyName("SizeInBytes")]
public required long? SizeInBytes { get; set; }
[JsonPropertyName("MaxElementCount")]
public required long? MaxElementCount { get; set; }
[JsonPropertyName("ElementCount")]
public required long? ElementCount { get; set; }
[JsonPropertyName("EmbeddingsCount")]
public required long? EmbeddingsCount { get; set; }
}