From 52d3e870d22ad16fcb7c129945b5a9c172110b41 Mon Sep 17 00:00:00 2001 From: "@gabriel.pereira" Date: Fri, 11 Sep 2026 11:53:37 -0300 Subject: [PATCH] docs: simplify anonymized examples Use clean generic names instead of repeated redaction placeholders.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- cortex_governance_config.yaml | 20 ++++++++++---------- marts_quotes.sql | 30 ++++++++++++++---------------- 2 files changed, 24 insertions(+), 26 deletions(-) diff --git a/cortex_governance_config.yaml b/cortex_governance_config.yaml index 84cb9c2..ee2ace8 100644 --- a/cortex_governance_config.yaml +++ b/cortex_governance_config.yaml @@ -22,20 +22,20 @@ cortex_policies: # Access control: Who can query this semantic model access_control: - default_role: "[REDACTED: SNOWFLAKE_ROLE]" + default_role: "quotation_analytics_user" authorized_teams: - name: "sales_team" - snowflake_role: "[REDACTED: SALES_ROLE]" + snowflake_role: "quotation_sales_user" tables: ["sv_quotation", "sv_chatbot_quotation"] max_rows_returned: 100000 - name: "operations_team" - snowflake_role: "[REDACTED: OPS_ROLE]" + snowflake_role: "quotation_operations_user" tables: ["sv_quotation", "sv_chatbot_quotation"] max_rows_returned: 500000 - name: "cortex_agent" - snowflake_role: "[REDACTED: CORTEX_AGENT_ROLE]" + snowflake_role: "quotation_cortex_agent" tables: ["sv_chatbot_quotation"] max_rows_returned: 1000 allowed_functions: ["semantic_search", "similarity_score"] @@ -59,7 +59,7 @@ cortex_policies: description: "Mask actual customer names in chatbot responses" pattern: "customer_name|cliente_nome" action: "mask_value" - replacement: "[REDACTED: Customer Information]" + replacement: "[Customer information protected]" exception: "Sales team in authorized_teams can see unmasked values" - rule: "pii_scrubbing" @@ -97,7 +97,7 @@ cortex_policies: # Cost controls: Prevent runaway LLM usage cost_controls: - monthly_budget_usd: "[REDACTED: BUDGET]" + monthly_budget_usd: "configured in the deployment environment" alert_threshold_pct: 80 per_query_max_tokens: 2000 max_concurrent_queries: 10 @@ -121,9 +121,9 @@ semantic_model_lineage: description: "How quotation data flows through transformations" stages: 1_source: - system: "[REDACTED: SAP_SYSTEM]" + system: "enterprise_erp_source" frequency: "Daily batch 05:00 UTC" - tables: ["[REDACTED: SOURCE_QUOTE_TABLE]", "[REDACTED: SOURCE_DISCOUNT_TABLE]"] + tables: ["source_quotes", "source_discount_conditions"] 2_staging: schema: "STAGING" @@ -142,8 +142,8 @@ semantic_model_lineage: 5_cortex_consumption: interface_1: "Snowflake Native App (BI)" - interface_2: "[REDACTED: SIEMENS_WORKSPACE]" - llm_model: "[REDACTED: LLM_VERSION]" + interface_2: "internal_chatbot_workspace" + llm_model: "managed_cortex_model" prompt_template: | You are a sales support assistant. Answer quote questions using only the data provided. If discount exceeds policy, flag for human review. diff --git a/marts_quotes.sql b/marts_quotes.sql index 1e709c0..d95f55d 100644 --- a/marts_quotes.sql +++ b/marts_quotes.sql @@ -9,17 +9,17 @@ with source_quotes as ( select - [REDACTED: quote_id column], - [REDACTED: line_item column], - [REDACTED: customer_id column], - [REDACTED: material_id column], - [REDACTED: quantity column], - [REDACTED: net_value column], - [REDACTED: quote_date column], - [REDACTED: sales_person_id column], - [REDACTED: source_timestamp column] - from [REDACTED: SOURCE_SCHEMA].[REDACTED: QUOTE_TABLE] - where [REDACTED: date_partition] >= dateadd(day, -1, current_date()) + quote_id, + line_item, + customer_id, + material_id, + quantity, + net_value, + quote_date, + sales_person_id, + source_timestamp + from source_quotes + where quote_date >= dateadd(day, -1, current_date()) ), enrich_product_portfolio as ( @@ -34,9 +34,9 @@ enrich_product_portfolio as ( sq.sales_person_id, /* Product portfolio classification */ case - when sq.material_id like '[REDACTED: pattern 1]%' then 'data-integration' - when sq.material_id like '[REDACTED: pattern 2]%' then 'automation' - when sq.material_id like '[REDACTED: pattern 3]%' then 'connectivity' + when sq.material_id like 'DI-%' then 'data-integration' + when sq.material_id like 'AU-%' then 'automation' + when sq.material_id like 'CO-%' then 'connectivity' else 'other' end as portfolio_code, pm.portfolio_name, @@ -109,5 +109,3 @@ select sales_person_id, current_timestamp() as dbt_loaded_at from governance_flags - --- ponytail: materialized as table for chatbot + BI queries (not incremental yet; append-only refresh if needed later)