Engineering notes.

Write ups from real builds, including the systems on this site. What the architecture was, what broke, and what we would do again. Each note is written by the engineers who did the work.

Entries
16
Latest
Written by
Baraqix Engineering
Feed
RSS

Notes · every note is in the field
One constellation per note, placed by the model
Hover a row to light its passages

  1. NOTE/06

    How do you test retrieval quality before building a RAG application?

    How we test retrieval before any model writes an answer: a labelled question set from real questions, hit rate at k, chunking and threshold tuning, and off topic controls. Grounded in the 187 question audit of the search on this site.

    rag, search9 min read

    Architecture diagram of a RAG pipeline. Offline, documents are parsed with tables kept, chunked, embedded and written to a vector store. Online, a question is embedded with the same model, the top k chunks are retrieved and reranked, and a language model answers with citations behind a cite or abstain check. An evaluation harness reads the answer traces and loops back to tune k and chunking.
  2. NOTE/02

    How the search on this site works

    The search console on the home page is the retrieval layer of a RAG system with no external API behind it. This is what runs when you press enter, why it is retrieval only, and why a few hundred dot products beat a vector database at this size.

    rag, search, build notes7 min read

    Architecture diagram of the site search: a query is embedded by a self hosted MiniLM model, scored by cosine similarity against an in memory index of site chunks, and the top passages are returned with their source.

New notes also go out by RSS, the moment they are published, and into the search index the moment they are published too.

Book a free call