Get started
Four steps. An afternoon.
Clone the repo. Write your MDX. Run ingest. Ship.
Step 01
Clone the repo
One Next.js project. Components, ingest script, search route, and chat panel all included.
Step 02
Write your docs in MDX
Add files to content/docs/. Wrap retrievable units in <Chunk id>. 50–500 chunks is the sweet spot.
Step 03
Run ingest
npm run ingest builds data/docs.db with embeddings and metadata. Re-run any time MDX changes; it's idempotent.
Step 04
Ship
npm run build && npm start. Push to your existing static host plus a serverless runtime.
# 1. Clone the reference git clone https://github.com/getdoks/doks cd doks && npm install # 2. Edit MDX under content/docs/ $EDITOR content/docs/index.mdx # 3. Build the index VOYAGE_API_KEY=… npm run ingest # 4. Ship npm run build && npm start