Radically simplify architecture: Remove auth, database, and external …#29
Open
sign-u-p wants to merge 1 commit into
Open
Conversation
…services This commit transforms the application into a lightweight, self-contained Next.js app: ## What's New: - Document selection page to choose PDFs from /public/documents/ - Session-based in-memory vector storage (no database) - Simplified chat interface with page-level citations - Support for multiple document selection - Dynamic PDF viewer with document tabs ## What's Removed: - Clerk authentication (no auth required) - PostgreSQL + Prisma (no database) - Pinecone/MongoDB vector stores (in-memory only) - Bytescale file uploads (local PDFs) - Together AI (switched to OpenAI) ## New Architecture: - /lib/document-scanner.ts - Scans /public/documents/ - /lib/pdf-processor.ts - Processes and embeds PDFs - /lib/session-manager.ts - In-memory session storage - /app/page.tsx - Document selection UI - /app/chat/page.tsx - PDF viewer + chat interface - /app/api/documents/ - List available PDFs - /app/api/process/ - Process selected documents - /app/api/session/ - Get session info - /app/api/chat/ - Simplified RAG chat endpoint ## Setup: 1. Add PDFs to /public/documents/ 2. Set OPENAI_API_KEY in .env.local 3. npm install && npm run dev Sessions expire after 1 hour. Everything runs in Next.js with minimal resources. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
|
@claude is attempting to deploy a commit to the Together AI Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…services
This commit transforms the application into a lightweight, self-contained Next.js app:
What's New:
What's Removed:
New Architecture:
Setup:
Sessions expire after 1 hour. Everything runs in Next.js with minimal resources.
🤖 Generated with Claude Code