generate_dq_rule_candidates_with_fabric_ai
Append AI-suggested DQ rule candidates to a profiling DataFrame.
Use this after profiling and before rule approval to accelerate candidate generation while keeping deterministic enforcement separate.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
profile_df
|
Any
|
Fabric PySpark DataFrame with an |
required |
business_context
|
str
|
Static context embedded in prompt text. |
''
|
dataset_name
|
str | None
|
Static dataset name embedded in prompt text. |
None
|
output_col
|
str
|
Output column for generated JSON text. |
"ai_dq_rule_candidate"
|
error_col
|
str
|
Error column written by AI Functions. |
"ai_dq_rule_error"
|
response_format
|
str
|
Fabric AI response format. |
"json_object"
|
concurrency
|
int
|
Fabric AI row-level concurrency setting. |
20
|
Returns:
| Type | Description |
|---|---|
Any
|
Enriched DataFrame containing AI suggestion output columns. |
Notes
This helper executes AI generation only and does not enforce deterministic quality rules.
Source code in src/fabricops_kit/ai.py
199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 | |