lidp
commited on
Commit
·
cbe40d3
1
Parent(s):
16d7b7b
Update templates:Text2sql and DB Description (#2361)
Browse files### What problem does this PR solve?
### Type of change
- [x] Refactoring
agent/templates/DB Assistant.json
CHANGED
|
@@ -120,6 +120,7 @@
|
|
| 120 |
"obj": {
|
| 121 |
"component_name": "Retrieval",
|
| 122 |
"params": {
|
|
|
|
| 123 |
"kb_ids": [
|
| 124 |
"b510f8f45f6011ef904f0242ac160006"
|
| 125 |
],
|
|
@@ -139,6 +140,7 @@
|
|
| 139 |
"obj": {
|
| 140 |
"component_name": "Retrieval",
|
| 141 |
"params": {
|
|
|
|
| 142 |
"kb_ids": [
|
| 143 |
"9870268e5f6011efb8570242ac160006"
|
| 144 |
],
|
|
@@ -158,6 +160,7 @@
|
|
| 158 |
"obj": {
|
| 159 |
"component_name": "Retrieval",
|
| 160 |
"params": {
|
|
|
|
| 161 |
"kb_ids": [
|
| 162 |
"dd401bcc5b9e11efae770242ac160006"
|
| 163 |
],
|
|
@@ -408,6 +411,7 @@
|
|
| 408 |
{
|
| 409 |
"data": {
|
| 410 |
"form": {
|
|
|
|
| 411 |
"kb_ids": [
|
| 412 |
"dd401bcc5b9e11efae770242ac160006"
|
| 413 |
],
|
|
@@ -493,6 +497,7 @@
|
|
| 493 |
{
|
| 494 |
"data": {
|
| 495 |
"form": {
|
|
|
|
| 496 |
"kb_ids": [
|
| 497 |
"b510f8f45f6011ef904f0242ac160006"
|
| 498 |
],
|
|
@@ -523,6 +528,7 @@
|
|
| 523 |
{
|
| 524 |
"data": {
|
| 525 |
"form": {
|
|
|
|
| 526 |
"kb_ids": [
|
| 527 |
"9870268e5f6011efb8570242ac160006"
|
| 528 |
],
|
|
|
|
| 120 |
"obj": {
|
| 121 |
"component_name": "Retrieval",
|
| 122 |
"params": {
|
| 123 |
+
"empty_response": "Nothing found in DB-Description!",
|
| 124 |
"kb_ids": [
|
| 125 |
"b510f8f45f6011ef904f0242ac160006"
|
| 126 |
],
|
|
|
|
| 140 |
"obj": {
|
| 141 |
"component_name": "Retrieval",
|
| 142 |
"params": {
|
| 143 |
+
"empty_response": "Nothing found in DDL!",
|
| 144 |
"kb_ids": [
|
| 145 |
"9870268e5f6011efb8570242ac160006"
|
| 146 |
],
|
|
|
|
| 160 |
"obj": {
|
| 161 |
"component_name": "Retrieval",
|
| 162 |
"params": {
|
| 163 |
+
"empty_response": "Nothing found in Q->SQL!",
|
| 164 |
"kb_ids": [
|
| 165 |
"dd401bcc5b9e11efae770242ac160006"
|
| 166 |
],
|
|
|
|
| 411 |
{
|
| 412 |
"data": {
|
| 413 |
"form": {
|
| 414 |
+
"empty_response": "Nothing found in Q->SQL!",
|
| 415 |
"kb_ids": [
|
| 416 |
"dd401bcc5b9e11efae770242ac160006"
|
| 417 |
],
|
|
|
|
| 497 |
{
|
| 498 |
"data": {
|
| 499 |
"form": {
|
| 500 |
+
"empty_response": "Nothing found in DB-Description!",
|
| 501 |
"kb_ids": [
|
| 502 |
"b510f8f45f6011ef904f0242ac160006"
|
| 503 |
],
|
|
|
|
| 528 |
{
|
| 529 |
"data": {
|
| 530 |
"form": {
|
| 531 |
+
"empty_response": "Nothing found in DDL!",
|
| 532 |
"kb_ids": [
|
| 533 |
"9870268e5f6011efb8570242ac160006"
|
| 534 |
],
|
agent/templates/text2sql.json
CHANGED
|
@@ -69,6 +69,7 @@
|
|
| 69 |
"obj": {
|
| 70 |
"component_name": "Retrieval",
|
| 71 |
"params": {
|
|
|
|
| 72 |
"kb_ids": [
|
| 73 |
"0ab5de985ba911efad9942010a8a0006"
|
| 74 |
],
|
|
@@ -88,6 +89,7 @@
|
|
| 88 |
"obj": {
|
| 89 |
"component_name": "Retrieval",
|
| 90 |
"params": {
|
|
|
|
| 91 |
"kb_ids": [
|
| 92 |
"b1a6a45e5ba811ef80dc42010a8a0006"
|
| 93 |
],
|
|
@@ -107,6 +109,7 @@
|
|
| 107 |
"obj": {
|
| 108 |
"component_name": "Retrieval",
|
| 109 |
"params": {
|
|
|
|
| 110 |
"kb_ids": [
|
| 111 |
"31257b925b9f11ef9f0142010a8a0004"
|
| 112 |
],
|
|
@@ -286,6 +289,7 @@
|
|
| 286 |
{
|
| 287 |
"data": {
|
| 288 |
"form": {
|
|
|
|
| 289 |
"kb_ids": [
|
| 290 |
"31257b925b9f11ef9f0142010a8a0004"
|
| 291 |
],
|
|
@@ -371,6 +375,7 @@
|
|
| 371 |
{
|
| 372 |
"data": {
|
| 373 |
"form": {
|
|
|
|
| 374 |
"kb_ids": [
|
| 375 |
"0ab5de985ba911efad9942010a8a0006"
|
| 376 |
],
|
|
@@ -401,6 +406,7 @@
|
|
| 401 |
{
|
| 402 |
"data": {
|
| 403 |
"form": {
|
|
|
|
| 404 |
"kb_ids": [
|
| 405 |
"b1a6a45e5ba811ef80dc42010a8a0006"
|
| 406 |
],
|
|
|
|
| 69 |
"obj": {
|
| 70 |
"component_name": "Retrieval",
|
| 71 |
"params": {
|
| 72 |
+
"empty_response": "Nothing found in DB-Description!",
|
| 73 |
"kb_ids": [
|
| 74 |
"0ab5de985ba911efad9942010a8a0006"
|
| 75 |
],
|
|
|
|
| 89 |
"obj": {
|
| 90 |
"component_name": "Retrieval",
|
| 91 |
"params": {
|
| 92 |
+
"empty_response": "Nothing found in DDL!",
|
| 93 |
"kb_ids": [
|
| 94 |
"b1a6a45e5ba811ef80dc42010a8a0006"
|
| 95 |
],
|
|
|
|
| 109 |
"obj": {
|
| 110 |
"component_name": "Retrieval",
|
| 111 |
"params": {
|
| 112 |
+
"empty_response": "Nothing found in Q-SQL!"
|
| 113 |
"kb_ids": [
|
| 114 |
"31257b925b9f11ef9f0142010a8a0004"
|
| 115 |
],
|
|
|
|
| 289 |
{
|
| 290 |
"data": {
|
| 291 |
"form": {
|
| 292 |
+
"empty_response": "Nothing found in Q-SQL!",
|
| 293 |
"kb_ids": [
|
| 294 |
"31257b925b9f11ef9f0142010a8a0004"
|
| 295 |
],
|
|
|
|
| 375 |
{
|
| 376 |
"data": {
|
| 377 |
"form": {
|
| 378 |
+
"empty_response": "Nothing found in DB-Description!",
|
| 379 |
"kb_ids": [
|
| 380 |
"0ab5de985ba911efad9942010a8a0006"
|
| 381 |
],
|
|
|
|
| 406 |
{
|
| 407 |
"data": {
|
| 408 |
"form": {
|
| 409 |
+
"empty_response": "Nothing found in DDL!",
|
| 410 |
"kb_ids": [
|
| 411 |
"b1a6a45e5ba811ef80dc42010a8a0006"
|
| 412 |
],
|