Jamie Craane personal blog

My views, thoughts and experiences about Fullstack software development.

Chunk Overlap Solves the Right Problem at the Wrong Time

Split on structure at ingest, and buy the context back at retrieval

Standard RAG advice says to overlap your chunks by 10 to 20 percent. My knowledge base uses zero overlap and expands a matched chunk to its enclosing section at query time instead. Here is why, and where it actually breaks down.

Multi-Tenancy With Postgres Row-Level Security in Ktor

Enforcing tenant isolation in the database instead of in every query

How I use Postgres Row-Level Security, a non-owner application role, and a small Kotlin transaction wrapper to guarantee tenant isolation in a production Ktor and Exposed application.