Skip to content

What is RAG Chat?

RAG Chat is a modern chat application that uses Retrieval-Augmented Generation (RAG) to provide AI responses grounded in your uploaded documents.

Proof of Concept — This project was built as a proof of concept to demonstrate RAG capabilities using Convex and AI agents. It is not intended for production use without further development and testing.

How It Works

  1. Upload Documents: Add PDF, Markdown, or text files to your knowledge base
  2. Automatic Processing: Documents are parsed, chunked, and indexed with vector embeddings
  3. Ask Questions: Chat with the AI about your documents
  4. Contextual Answers: The AI retrieves relevant chunks and generates informed responses

Tech Stack

PackageDescription
ConvexBackend platform with real-time sync
@convex-dev/agentAI agent framework for Convex
@convex-dev/ragRAG for Convex
TanStack RouterType-safe routing for React
ReactUI library
ViteBuild tool and dev server
Tailwind CSSUtility-first CSS framework
shadcn/uiRe-usable UI components
OpenRouterAI model provider

Features

  • Document Management: Upload, view, and delete documents
  • Real-time Chat: Instant message updates with Convex subscriptions
  • Source Citations: See which documents informed each response
  • Model Selection: Choose from various AI models via OpenRouter
  • Modern UI: Clean interface built with shadcn/ui components

Released under the MIT License.