All projectsRAG Application

DocGenie

Multi-Format Document Q&A

DocGenie lets you upload a document and talk to it. Drop in a PDF, DOCX, TXT, or CSV and ask questions in plain language; a RAG pipeline answers from the document's contents across multiple, independent chat sessions that persist and auto-title themselves. Claude does the reasoning through n8n webhooks, a credit system meters documents and messages separately, and a context-cached dashboard keeps everything in sync.

Category
RAG Application
Role
Solo design & engineering
AI engine
Claude via n8n
Status
Live · Open source
Built with

Next.jsReactTypeScriptTailwind CSSShadcn/UIBetter Authn8nOpenAI LLM

DocGenie landing page
The landing page — chat with your documents.
What it does

Upload, then ask.

Multi-format upload

PDF, DOCX, TXT, and CSV up to 5MB, drag-and-drop with instant processing and a managed library.

Document chat

Natural-language Q&A across multiple independent sessions with auto-generated titles and persistent history.

Two credit pools

Five document credits and 25 message credits on signup, tracked in real time.

Dashboard

Document count, credit and message balances, and recent sessions with quick navigation.

The flow

How a question is answered.

  1. 1Upload a document; it's ingested and added to your library.
  2. 2Start a chat — the session ID is generated client-side with crypto.randomUUID().
  3. 3Your question hits an API route that forwards to an n8n webhook.
  4. 4n8n runs RAG with Claude and returns an answer with history.
  5. 5The DashboardDataProvider Context refreshes only what changed.
Architecture

Eight workflows, one context.

n8n webhooks

Eight workflows handle ingestion, chat, titling, analytics, credits, retrieval, deletion, and contact — each keyed by x-api-key.

Session design

n8n creates the session record on the first message; no separate creation call is needed.

DashboardDataProvider

Fetches analytics, documents, sessions, and credits once, with targeted refresh methods for each.

DocGenie conversational Q&A over an uploaded document
Conversational Q&A — natural-language questions answered from the uploaded document, with history that persists.
Gallery

A closer look.

DocGenie dashboard overview
The overview — documents, credits, messages, and recent sessions.
DocGenie document library
The document library — upload, manage, and delete sources.