Context Compression in .NET

Reduce token cost and latency in .NET by compressing RAG context with a cheap summarizer model or an IChatClient middleware pipeline.

April 1, 2026 · 2 min · Lukas Walter

Indirect Prompt Injection Is a Trust Boundary Problem

Indirect prompt injection is a trust-boundary failure; treat retrieved content as untrusted data, isolate it from instructions, and validate actions before execution.

March 23, 2026 · 7 min · Lukas Walter

Stop RAG Hallucinations with the Short-Circuit Pattern

How to reduce RAG hallucinations by short-circuiting generation when retrieval returns weak evidence, with a simple C# threshold check.

March 22, 2026 · 2 min · Lukas Walter

RAG Is a Data Problem Before It’s a Prompt Problem

Why stale documents, weak chunking, and thin metadata usually break RAG before prompt tuning does.

March 9, 2026 · 6 min · Lukas Walter