Work / Demo

Chatbot that answers from your documents

A RAG chatbot that answers only from your help docs, shows its sources and embeds on any site with one script tag.

Role
Design and development
Stack
Next.jsTypeScriptClaudeRAG

Open the live demo

Situation

Support teams want a chatbot that answers from their own help center and does not make things up. Visitors also need to see where an answer came from.

What I built

  • Indexing for PDF, Markdown and text files, split by heading
  • Retrieval of the passages closest to the question, passed to Claude with instructions to answer only from them
  • Sources under every answer, limited to the passages Claude actually cited
  • Streaming answers, a demo page and a chat widget that any website can load with one script tag
  • Input length limits and a per-visitor rate limit for a public deployment

Result

35 automated tests cover indexing, retrieval and the answer flow. The demo runs without an API key in mock mode: retrieval is real, and the answer text is assembled from the retrieved passages instead of generated by Claude. The page says so on screen.

Demo page with a question about annual plan refunds, the answer and its source
An answer built from the sample help center, with the passage it came from listed under it.
The chat widget opened on a sample website
The same bot as a widget on another website, added with one script tag.
The sources list expanded under an answer
Each source opens to show the exact passage the answer used.

All work