
Loading...
Get the most out of DataChonk's AI by optimizing your knowledge base and maintaining high-quality context. Better input = better output.
Chonk understands your schema better when names are clear and consistent.
Database column comments are indexed and significantly improve AI understanding.
-- Snowflake
ALTER TABLE orders
ALTER COLUMN order_status
COMMENT 'Current fulfillment status: pending, shipped, delivered, cancelled';
-- BigQuery
ALTER TABLE orders
ALTER COLUMN order_status
SET OPTIONS (description = 'Current fulfillment status: pending, shipped, delivered, cancelled');Outdated documentation confuses the AI. Regularly audit your sources.
Long conversation threads can dilute context. Start a new chat when:
Build complex models step by step:
You don't need to scan everything. Focus on:
Filter out tables that add confusion:
# CLI scan with exclusions
datachonk scan \
--schema raw_shopify \
--schema raw_stripe \
--exclude "tmp_*" \
--exclude "*_backup" \
--exclude "test_*"Re-scan After Schema Changes
When a team member generates a useful model:
Add context to your generated models:
{{
config(
materialized='incremental',
unique_key='order_id'
)
}}
/*
Business Context:
- Orders are considered "complete" when status = 'delivered'
- Revenue is calculated excluding tax and shipping
- Customer attribution uses first-touch model
Generated by DataChonk, reviewed by @data-team
*/
SELECT ...More isn't always better. A focused knowledge base outperforms a bloated one:
Pre-configure knowledge settings for common use cases:
Shopify, Stripe, marketing sources
Product analytics, billing, CRM
ERP, banking, compliance docs
Pro Tip