Retrieval-Augmented Generation

RAG + 3D Chat

Upload documents, ask questions, get answers grounded in your data. When responses include spatial data, they render in an interactive 3D viewer.

What authentication pattern does this project use?

Based on the codebase, this project uses **Clerk** for authentication. The middleware is configured in `proxy.ts` (Next.js 16 pattern) which protects `/dashboard(.*)` routes via `clerkMiddleware`. Key files: - `src/proxy.ts` — middleware configuration - `src/components/layout/providers.tsx` — ClerkProvider wrapper - `src/app/auth/` — sign-in/sign-up routes

Rate limited: 2 messages/hour (guest) · 50/hour (signed in)

3D Viewer

Renders when response includes 3D data

Architecture

UploadChunkerEmbeddingsVector StoreUser QueryRetrieverLLM + ContextResponseThree.js(if spatial data)