refs #731: enrich Text2SQL prompts with QA examples
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user