Skip to content

itonomi/headless-rag-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Headless RAG Demo

A full-stack chat application with RAG (Retrieval-Augmented Generation) capabilities, featuring a React frontend and Node.js BFF that connects to a Clojure backend.

Architecture

Frontend (React/Vite)
        ↓
  Node.js BFF
  (Auth + Proxy)
        ↓
  Clojure API
  (RAG + Data)

Project Components

React 19 + TypeScript + Vite frontend with:

  • Domain-based authentication
  • Chat interface with streaming support
  • React Query for server state management
  • Zustand for UI state
  • Tailwind CSS + Norwegian Design System

View Frontend Documentation →

Node.js + Express backend-for-frontend providing:

  • Domain-based email authentication
  • Session management
  • API proxy to Clojure backend
  • Type-safe TypeScript implementation

View Backend BFF Documentation →

Quick Start

Prerequisites

  • Node.js 18+
  • npm/yarn/pnpm

Setup

  1. Start the Backend BFF:

    cd backend-bff
    npm install
    cp .env.example .env
    # Edit .env with your configuration
    npm run dev
  2. Start the Frontend:

    cd frontend
    npm install
    npm run dev
  3. Access the application:

Development

Each component has its own README with detailed setup and development instructions:

Features

  • Domain-based authentication (no passwords required)
  • Chat interface with streaming responses
  • RAG-powered conversations
  • Session management
  • Markdown + KaTeX rendering
  • Conversation history management

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages