← All tags

#computer-science

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.

Hyper-Specific Infrastructure Bottlenecks

Why average capacity metrics miss the links that actually fail, and how to find strong vs weak bottlenecks.

Positions Are Ids, Not Integers

Why insert-at-index loses the other person's sentence, and the merge rules plus Yjs setup that stopped doing it.

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.