Your MDX is the corpus. The build step is the indexer. A small API route is the retriever. A streamed call to your model is the synthesizer.
Each .mdx file under content/docs/ becomes a page. Wrap retrievable units in <Chunk id>. Frontmatter carries the metadata. Versioned with git.
npm run ingest walks the tree, embeds chunks with Voyage AI using your key, and writes them to a single sqlite-vec file at data/docs.db.
/api/docs/search embeds the query, runs a vec0 ANN scan with a lexical filter, and returns top-k chunks. Spotlight (⌘K) calls the same route.
The chat panel packs chunks into a system prompt, appends history, and streams the model's answer through your provider key. Citations link to the source chunk.
sqlite-vec in a single filenpm run ingest at build timedoks is a public pattern, released under MIT. There is no company behind it, no email list to join, and nothing to install beyond a Next.js project. Take it and make your docs answer questions.