refs #731: enrich Text2SQL prompts with QA examples

This commit is contained in:
devmrko
2026-07-24 15:59:41 +09:00
parent c8fa6af679
commit 3fcd699d92
7 changed files with 138 additions and 8 deletions

View File

@@ -79,9 +79,15 @@ public record BackofficeProperties(
String dbUrl,
String dbUsername,
String dbPassword,
String profile
String profile,
Boolean fewShotEnabled,
Integer fewShotTopK
) {
public SelectAi(String dbUrl, String dbUsername, String dbPassword, String profile) {
this(dbUrl, dbUsername, dbPassword, profile, true, 3);
}
public boolean configured() {
return dbUrl != null && !dbUrl.isBlank()
&& dbUsername != null && !dbUsername.isBlank()