You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
table_glossary= [ResponseSchema(name="table_glossary", description=" single-sentence business glossary definition")]
4
-
column_glossary= [ResponseSchema(name="column_glossary", description="precise, single-sentence and non-technical business glossary definition")]
5
-
column_tag_glossary= [ResponseSchema(name="column_tag_glossary", description="three precise and distinct business tags", type="list[str]")]
4
+
column_glossary= [
5
+
ResponseSchema(
6
+
name="column_glossary", description="precise, single-sentence and non-technical business glossary definition"
7
+
)
8
+
]
9
+
column_tag_glossary= [
10
+
ResponseSchema(name="column_tag_glossary", description="three precise and distinct business tags", type="list[str]")
11
+
]
6
12
7
13
BUSINESS_GLOSSARY_PROMPTS= {
8
-
"gpt-4o": {
9
-
"TABLE_GLOSSARY_TEMPLATE": """You are responsible for Data Governance in {domain},
14
+
"gpt-4o": {
15
+
"TABLE_GLOSSARY_TEMPLATE": """You are responsible for Data Governance in {domain},
10
16
generate a concise, non-technical business glossary definition for the table on a provided DDL statement.
11
17
The definition should be written as a single sentence and clearly describe the business purpose or function.\n
12
18
# Instructions
@@ -23,7 +29,7 @@
23
29
# Output
24
30
{format_instructions}
25
31
""",
26
-
"BUSINESS_GLOSSARY_TEMPLATE": """You are responsible for Data Governance in {domain},
32
+
"BUSINESS_GLOSSARY_TEMPLATE": """You are responsible for Data Governance in {domain},
27
33
generate a concise single-sentence business glossary definition for each column mentioned in the DDL statement.\n
28
34
The definition should clearly describe the business purpose or function.\n
29
35
@@ -38,7 +44,7 @@
38
44
{create_statements}\n
39
45
{format_instructions}
40
46
""",
41
-
"BUSINESS_TAGS_TEMPLATE": """You are responsible for Data Governance in {domain}, your task is to generate three business tags for a column based on the DDL statements of a table given below.
47
+
"BUSINESS_TAGS_TEMPLATE": """You are responsible for Data Governance in {domain}, your task is to generate three business tags for a column based on the DDL statements of a table given below.
42
48
Use the column's context within the DDL statement (e.g., its name, type, and table name) to infer relevant business tags. Focus on generating concise, domain-relevant,
43
49
and meaningful tags that align with the potential business use of the column.
44
50
@@ -65,10 +71,10 @@
65
71
# Additional Context:
66
72
{additional_context}\n
67
73
{format_instructions}
68
-
"""
69
-
},
70
-
"gpt-4o-mini": {
71
-
"TABLE_GLOSSARY_TEMPLATE": """
74
+
""",
75
+
},
76
+
"gpt-4o-mini": {
77
+
"TABLE_GLOSSARY_TEMPLATE": """
72
78
Role: You are responsible for Data Governance in the {domain}.\n
73
79
Task: You will be given a SQL DDL statement how `{table}` table is structured. Generate a concise, non-technical business glossary definition for `{table}` that clearly describe the business purpose or function.\n
74
80
@@ -89,7 +95,7 @@
89
95
\n\n
90
96
{format_instructions}
91
97
""",
92
-
"BUSINESS_GLOSSARY_TEMPLATE": """
98
+
"BUSINESS_GLOSSARY_TEMPLATE": """
93
99
Role: You are responsible for Data Governance in the {domain}.\n
94
100
Task: You will be given a SQL DDL statement how the attribute `{column}` is structured.\n
95
101
@@ -111,8 +117,7 @@
111
117
{additional_context}\n\n
112
118
{format_instructions}
113
119
""",
114
-
"BUSINESS_TAGS_TEMPLATE":
115
-
"""
120
+
"BUSINESS_TAGS_TEMPLATE": """
116
121
Role: You are responsible for Data Governance in the {domain}.\n
117
122
Task: You will be given a SQL DDL statement how the attribute `{column}` is structured.\n
0 commit comments