Getting Started with Context Engineering
This playbook provides a systematic approach to building and maintaining effective context for your analytics agent. Follow these steps in order to ensure a solid foundation and scalable growth.First POC on small, reliable context
Step 1: Add Your Data Context Start with a restricted perimeter of your data warehouse:- Maximum 20 tables to begin with
- Focus on clean, gold, or mart layer tables (avoid raw staging tables)
- Choose tables that represent core business domains
- dbt documentation (schema.yml, docs blocks)
- Semantic layer definitions
- Any other relevant documentation repositories
- Your company - business context, terminology, conventions
- Different domains covered by your 20 tables - e.g., sales, marketing, finance, operations
- Business definitions - what key terms mean in your organization
- Metrics definitions - how metrics are calculated and used
- List of tables - which tables belong to this domain
- Relevant docs yaml - specific documentation for this domain
Measure, test and iterate
Step 5: Create a Set of 20 Key Questions Develop a test suite of 20 key questions that represent:- Common user queries
- Critical business questions
- Edge cases
- Different complexity levels
- Run all questions through the agent
- Verify answers are correct and complete
- Identify gaps in context or understanding
- Iterate on context - add missing information, clarify ambiguities, refine rules
- Roll out to a small group of users initially
- Track usage - monitor what questions users are asking
- Monitor real-life performance using logs of questions and feedback
- Collect user feedback to identify improvement areas
- Version your context using git repositories
- Run your 20 questions frequently (e.g., weekly or after major changes)
- Ensure context quality doesn’t drift as you make updates
- Set up automated tests if possible
Scale
Step 9: Scale Gradually As adoption grows:- Extend the number of datasets available in the agent
- Make documentation and rules modular to support scalability
- Add new domains incrementally, following the same process
- Maintain the same quality standards as you expand
Context Principles
Review the core principles that guide effective context engineering.