build_dq_rule_candidate_prompt
Public callable
Build the DQ-candidate prompt used in AI-assisted quality drafting.
In the FabricOps workflow, this supports early quality planning after profiling and before deterministic rule approval.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
business_context
|
str
|
Static business context embedded directly into the prompt text. |
''
|
dataset_name
|
str | None
|
Static dataset name embedded directly into the prompt text. |
None
|
Returns:
| Type | Description |
|---|---|
str
|
Prompt template string for use with Fabric |
Notes
Hardcoded sections define expected JSON output schema and review posture.
Row placeholders injected from DataFrame rows are {column_name},
{data_type}, {null_count}, {distinct_count}, and {row_count}.
Output is suggestion-oriented and not deterministic enforcement.
Source code in src/fabricops_kit/ai.py
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 | |