From e7a94288ba92e0b4a7ae066465c0b946b4db242b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rodolphe=20K=C3=BCffer?=
<101799433+rkuffer@users.noreply.github.com>
Date: Tue, 19 Nov 2024 09:56:18 +0100
Subject: [PATCH] [Tock Studio] Export and import of ia gen settings (#1760)
* Wip
* Rag settings export
* Rag settings import
* Sentence generation settings export and import
* Observability settings export and import
* Vector DB settings export and import
---
.../models/providers-configuration.ts | 3 +-
.../observability-settings.component.html | 133 +++++++++++
.../observability-settings.component.scss | 7 +
.../observability-settings.component.ts | 173 ++++++++++++++-
.../models/engines-configuration.ts | 16 +-
...entence-generation-settings.component.html | 131 +++++++++++
...entence-generation-settings.component.scss | 7 +
.../sentence-generation-settings.component.ts | 176 ++++++++++++++-
.../models/providers-configuration.ts | 5 +-
.../vector-db-settings.component.html | 133 +++++++++++
.../vector-db-settings.component.scss | 7 +
.../vector-db-settings.component.ts | 172 ++++++++++++++-
.../models/engines-configurations.ts | 25 ++-
.../rag-settings/rag-settings.component.html | 141 +++++++++++-
.../rag-settings/rag-settings.component.ts | 208 ++++++++++++++++--
bot/admin/web/src/app/rag/rag.module.ts | 3 +-
.../web/src/app/shared/model/ai-settings.ts | 18 +-
17 files changed, 1273 insertions(+), 85 deletions(-)
diff --git a/bot/admin/web/src/app/configuration/observability-settings/models/providers-configuration.ts b/bot/admin/web/src/app/configuration/observability-settings/models/providers-configuration.ts
index bc98c880ba..5682374ab8 100644
--- a/bot/admin/web/src/app/configuration/observability-settings/models/providers-configuration.ts
+++ b/bot/admin/web/src/app/configuration/observability-settings/models/providers-configuration.ts
@@ -9,6 +9,7 @@ export interface ProvidersConfigurationParam {
source?: string[];
inputScale?: 'default' | 'fullwidth';
defaultValue?: string;
+ confirmExport?: boolean;
}
export interface ProvidersConfiguration {
@@ -23,7 +24,7 @@ export const ProvidersConfigurations: ProvidersConfiguration[] = [
key: ObservabilityProvider.Langfuse,
params: [
{ key: 'publicKey', label: 'Public key', type: 'obfuscated' },
- { key: 'secretKey', label: 'Secret key', type: 'obfuscated' },
+ { key: 'secretKey', label: 'Secret key', type: 'obfuscated', confirmExport: true },
{ key: 'url', label: 'Url', type: 'obfuscated' }
]
}
diff --git a/bot/admin/web/src/app/configuration/observability-settings/observability-settings.component.html b/bot/admin/web/src/app/configuration/observability-settings/observability-settings.component.html
index ce1587d0ea..50d492c03f 100644
--- a/bot/admin/web/src/app/configuration/observability-settings/observability-settings.component.html
+++ b/bot/admin/web/src/app/configuration/observability-settings/observability-settings.component.html
@@ -3,6 +3,26 @@
Observability settings
+
+
+