Cognition · Data artifact
Precompiled Context Template
Data artifactCognitionCognition & Memoryarc:PrecompiledContextTemplate
A pre-compiled, domain- or specialty-specific context block injected into prompts in place of dynamically generated context for a known task type.
Responsibility. Supplies compact, stable task-type context without per-request context construction.
Also known as: Specialist template, Template-based context
Relationships
configures structural
Design guidance
- SHOULD replace dynamic context generation with pre-compiled templates for recurring specialist task types.
Quantitative guidance
As stated by the sources; verify before use.
- Specialist templates of ~300 tokens replaced ~1,200-token dynamic context; clinical note tokens fell 4,200 to 1,800 (Ch3.10).
Classification
- Patterns
- Template-based context
- Quality attributes
- Cost efficiencyPerformance efficiency (ISO/IEC 25010)
- Risks mitigated
- Latency from dynamic context building
Sources
- Ch3.10: T. Nguyen, "Efficiency Metrics," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 3.10. ISBN: 9798244538229.