← All tags

#vector-search

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.

Indexing Dense Embeddings Without Fooling Yourself

TF-IDF still wins on exact tokens. Skip-gram and BERT vectors need a normalized index, an over-fetch, and a filter that the index itself does not apply.