GitHub - davidkimai/Context-Engineering: "Context engineering is the delicate art and science of filling the context window with just the right information for the next step." — Andrej Karpathy. A frontier, first-principles handbook inspired by Karpathy and 3Blue1Brown for moving beyond prompt engineering to the wider discipline of context design, orchestration, and optimization.

Context engineering extends beyond prompt engineering to encompass the complete information payload—including examples, memory, retrieval, tools, state, and control flow—that an LLM receives at inference time. This GitHub repository provides a comprehensive first-principles handbook for designing, orchestrating, and optimizing context windows to provide models with precisely the right information for each inference step, drawing on research from major conferences like ICML and NeurIPS. Evidence shows that cognitive tools integrated into context can significantly improve model performance, such as increasing GPT-4's AIME2024 pass rate from 26.7% to 43.3%.

Visit Original Article →

⌘K

Start typing to search...

Search across content, newsletters, and subscribers