mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-09-27 01:53:36 +00:00
Update database labels for clarity and change database name to SQLite
This commit is contained in:
parent
bcc1a3b5eb
commit
b77f95318b
@ -107,10 +107,10 @@ public partial class Information : MSGComponentBase
|
|||||||
/// </remarks>
|
/// </remarks>
|
||||||
private string DatabaseHeaderText(DatabaseSection section)
|
private string DatabaseHeaderText(DatabaseSection section)
|
||||||
{
|
{
|
||||||
var (nameLabel, versionLabel) = section.Role switch
|
var nameLabel = section.Role switch
|
||||||
{
|
{
|
||||||
DatabaseRole.VECTOR_STORE => (T("Vector store"), T("Vector store version")),
|
DatabaseRole.VECTOR_STORE => T("Vector database"),
|
||||||
_ => (T("Local RAG index"), T("Local RAG index version"))
|
_ => T("Index database"),
|
||||||
};
|
};
|
||||||
|
|
||||||
if (section.Client is null)
|
if (section.Client is null)
|
||||||
@ -124,7 +124,7 @@ public partial class Information : MSGComponentBase
|
|||||||
|
|
||||||
return section.Client.Status switch
|
return section.Client.Status switch
|
||||||
{
|
{
|
||||||
DatabaseClientStatus.AVAILABLE when !string.IsNullOrWhiteSpace(version) => $"{versionLabel}: {section.Client.Name} v{version}",
|
DatabaseClientStatus.AVAILABLE when !string.IsNullOrWhiteSpace(version) => $"{nameLabel}: {section.Client.Name} v{version}",
|
||||||
DatabaseClientStatus.AVAILABLE => $"{nameLabel}: {section.Client.Name}",
|
DatabaseClientStatus.AVAILABLE => $"{nameLabel}: {section.Client.Name}",
|
||||||
DatabaseClientStatus.STARTING => $"{nameLabel}: {section.Client.Name} - {T("starting")}",
|
DatabaseClientStatus.STARTING => $"{nameLabel}: {section.Client.Name} - {T("starting")}",
|
||||||
_ => $"{nameLabel}: {section.Client.Name} - {T("not available")}"
|
_ => $"{nameLabel}: {section.Client.Name} - {T("not available")}"
|
||||||
|
|||||||
@ -12,7 +12,7 @@ namespace AIStudio.Tools.Databases.IndexStore;
|
|||||||
|
|
||||||
public sealed class SqliteIndexStoreClientImplementation(string name, string databasePath, string basePath, string version) : IndexStoreClient(name, basePath)
|
public sealed class SqliteIndexStoreClientImplementation(string name, string databasePath, string basePath, string version) : IndexStoreClient(name, basePath)
|
||||||
{
|
{
|
||||||
private const string DATABASE_NAME = "Local RAG Index";
|
private const string DATABASE_NAME = "SQLite";
|
||||||
private const string DATABASE_FILENAME = "rag-index.sqlite3";
|
private const string DATABASE_FILENAME = "rag-index.sqlite3";
|
||||||
private const int MAX_FTS_QUERY_TERMS = 32;
|
private const int MAX_FTS_QUERY_TERMS = 32;
|
||||||
private const int CHUNK_UPSERT_BATCH_SIZE = 500;
|
private const int CHUNK_UPSERT_BATCH_SIZE = 500;
|
||||||
@ -658,4 +658,4 @@ public sealed class SqliteIndexStoreClientImplementation(string name, string dat
|
|||||||
client.SetLogger(databaseClientLogger);
|
client.SetLogger(databaseClientLogger);
|
||||||
return client;
|
return client;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user