What you build
Embed an answer widget in your docs site. Cite back to the source heading with an anchor URL. Stream the answer.
Features in play
- Markdown chunker preserves heading paths
- Citation anchors include page + heading + char range
- BYO Anthropic key for answer generation in your voice
- Lighthouse-clean: no JS required on docs pages, just the iframe
docs-qa.ts
// the docs widget calls answer with streaming
const res = await fetch("https://api.dextome.com/v1/indexes/idx_docs/answer", {
method: "POST",
headers: { Authorization: "Bearer $DEXTOME_PUB_KEY" }, // publishable key, CORS-allowed
body: JSON.stringify({ question, stream: true })
});Reference architecture
docs site widget
publishable key
/v1/answer
SSE stream
citations linked to /docs/#section