← All tags

#rag

ctx-compact: What I Learned Trying to Fit Long Conversations into a Token Budget as a ml researcher

My open-source experiment on compacting long chats: a dependency graph that worked on synthetic data, neighbour smoothing that worked on LoCoMo, and an honest negative result.

Prompt Injection in RAG Systems: Closing the Trust Gap

How retrieved documents become instructions, and defenses for production RAG.

Architecting a Zero-Cloud Agent Memory Lab: vLLM, pgvector, and a Context Budget That Never Blows Up

How I built a local lab for agent memory: compaction with a PI controller, a conflict sentinel in pgvector, Ollama vs vLLM benchmarks, and the quantization maths that frees VRAM for 32k context.

Building RAG Systems for Production: Lessons from the Trenches

Practical insights on building Retrieval-Augmented Generation systems that actually work at scale: chunking strategies, embedding models, and evaluation.

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.