BlueEdge is a modern document analysis platform built for the Conservative Research Department. It allows users to upload documents and data, converts them to markdown, and provides an AI-powered chat interface for document analysis.
- Document Upload: Upload various document formats (PDF, DOC, DOCX, TXT, CSV, XLS, XLSX)
- Markdown Conversion: Automatically converts documents to markdown for better analysis
- AI-Powered Analysis: Uses LangChain and OpenAI to provide intelligent document analysis
- Interactive Chat: Ask questions about your documents and get detailed answers
- Document Management: Organize and manage your research documents
- Metadata Extraction: Automatically extracts key information from documents
- Node.js (v16 or later)
- npm or yarn
- OpenAI API key
-
Clone the repository
-
Install dependencies:
npm install -
Set up your environment variables:
- Create a
.env.localfile in the root directory - Add your OpenAI API key:
OPENAI_API_KEY=your_api_key_here - Add your Gemini API key:
GEMINI_API_KEY=your_gemini_api_key_here(enables Gemini-based analysis)
- Create a
-
Initialize the database:
npx prisma migrate dev -
Start the development server:
npm run dev -
Open http://localhost:3000 in your browser
- Upload a Document: Drag and drop a file or click to select a file
- View Document: Select a document to view its content
- Ask Questions: Use the chat interface to ask questions about the document
- Get Analysis: Receive detailed analysis based on the document content
- Frontend: Next.js, React, TailwindCSS
- Backend: Next.js API Routes
- Database: Prisma with SQLite (can be configured for other databases)
- AI: LangChain, OpenAI
- Document Processing: Custom utilities for document conversion
This project is proprietary and confidential. Unauthorized copying, distribution, or use is strictly prohibited.
© 2025 Conservative Research Department. All rights reserved.