Skip to content

Commit e2275bf

Browse files
committed
Update answer agent
1 parent 44e548c commit e2275bf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

text_2_sql/text_2_sql_core/src/text_2_sql_core/prompts/answer_agent.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@ system_message:
1010
{
1111
'answer': '<GENERATED ANSWER>',
1212
'sources': [
13-
{'chunk': <SOURCE 1 CONTEXT CHUNK>, 'reference': '<SOURCE 1 SQL QUERY>', 'explanation': '<EXPLANATION OF SQL QUERY 1>'},
14-
{'chunk': <SOURCE 2 CONTEXT CHUNK>, 'reference': '<SOURCE 2 SQL QUERY>', 'explanation': '<EXPLANATION OF SQL QUERY 2>'},
13+
{'sql_result_snippet': <SQL QUERY RESULT 1>, 'sql_query_used': '<SOURCE 1 SQL QUERY>', 'explanation': '<EXPLANATION OF SQL QUERY 1>'},
14+
{'sql_result_snippet': <SQL QUERY RESULT 2>, 'sql_query_used': '<SOURCE 2 SQL QUERY>', 'explanation': '<EXPLANATION OF SQL QUERY 2>'},
1515
]
1616
}
17-
18-
Title is the entity name of the schema, chunk is the result of the SQL query and reference is the SQL query used to generate the answer.
1917
"

0 commit comments

Comments
 (0)