Projects / Local Multi-Model RAG Chatbot
Local Multi-Model RAG Chatbot
Ask your own documents questions, and get answers that cite their sources.
A fully local Next.js chatbot. It indexes PDF, TXT and CSV files into LanceDB, cites the source file in every answer, and lets you switch between two Qwen models per session. The interface is glassmorphic, with Markdown rendering and code highlighting.
- PDF · TXT · CSV
- 2 local models
- Inline citations
How it's built
01 · Ingest
Accepts PDF, TXT and CSV documents.
Why: Documents never leave your machine.
02 · Embed
Splits documents into chunks and stores their vector embeddings in LanceDB.
Why: Local chunk storage keeps retrieval fast and private.
03 · Retrieve
Semantic search finds the chunks most relevant to the question.
Why: Every chunk keeps its filename, so answers can cite their source inline.
04 · Generate
Streams the answer from a local Qwen model through Ollama.
Why: Each session can switch between two Qwen models, with no paid API.
05 · Remember
Saves chat history in SQLite through Prisma.
Why: Conversations survive restarting the app.