RAG AI Chat is an intelligent document assistant that lets you upload documents or add web sources, then chat with an AI to extract insights and answer questions based on your content. Built with Elysia, Bun, and modern embedding models.
- Upload PDF, Markdown, or Text files as knowledge sources
- Add web pages as sources
- Chat with an AI assistant over your custom knowledge base
- Fast, modern UI (HTMX, Marked.js)
- Health check and configuration endpoints
- Bun v1.3.1 or later
- Node.js 18+ (for some dependencies)
Clone the repository and install dependencies:
git clone https://github.com/rohit267/rag-ai-chat.git
cd rag-ai-chat
bun installCopy .env.example to .env and update values as needed:
cp .env.example .envSee .env.example for all available configuration options (OpenAI, embeddings,
uploads, etc).
# Development
bun run dev
# Production
bun run startThe app will be available at http://localhost:3000 by default.
src/— Main application codemain.ts— Elysia server and API endpointsconfig/app.config.ts— Configuration and environment variablesservices/— Database, file upload, and RAG logic
public/— Frontend HTML and assetsuploads/— Uploaded filesstore/— Vector database
This project is licensed under the MIT License. See LICENSE for details.