← All tags

#prompt-engineering

The Dark Art of Context Truncation & Dynamic Prompt Compaction in Production RAG

Truncation, packing, and query-conditioned compaction when production RAG outgrows the context window.

A Practical Guide to Fine-Tuning LLMs in 2024

When to fine-tune, when to prompt engineer, and how to do it right. Covering LoRA, QLoRA, and full fine-tuning approaches.

2021: The Year Language Models Became Unreliable APIs

Copilot, Codex and the open GPT-3 API forced new architecture: determinism layers, regex and Pydantic parsing, AST checks, and pass@k instead of exact-match unit tests.

GPT-3 in Production: Latency, Prompts, and a Score You Can Trust

What broke when the GPT-3 API sat behind a real request: a prompt nobody versioned, multi-second latency, and no score better than a spreadsheet.