A comprehensive document management and intelligence platform leveraging AI to process, analyze, and interact with documents. This application combines the power of Laravel 12 and React to deliver a seamless user experience for document handling, OCR processing, and RAG-based interaction.
This project is built to streamline document workflows by integrating advanced AI capabilities. Users can upload documents (PDF, DOCX, etc.), which are then processed to extract text via OCR, chunked, and embedded for vector search. The platform enables users to chat with their documents, generating intelligent insights and proposals based on the content.
- Dashboard: Real-time analytics and statistics on document processing, utilizing dynamic charts and activity feeds.
- Document Processing Pipeline: Automated workflow handling file uploads, text extraction (OCR), and vector embedding.
- Interactive Chat (RAG): Chat interface allowing users to query their documents using Retrieval-Augmented Generation.
- Proposal Generation: Automated creation of proposals based on stored templates and company profiles.
- Company Profile Management: storage of company details to tailor generated content.
- Real-time Updates: WebSocket integration using Laravel Reverb for live status updates on document processing.
- Secure Authentication: Robust user authentication and session management.
- Framework: Laravel 12
- Language: PHP 8.2+
- AI Integration: Google Gemini API
- Vector Search: Integrated vector database support
- Queue System: Laravel Queue for background processing
- Real-time: Laravel Reverb
- Library: React
- Routing: Inertia.js
- Styling: TailwindCSS
- Components: Shadcn UI (Radix UI based)
- Charts: Recharts
- Icons: Lucide React
- Editor: TinyMCE (Rich Text Editor for proposals)
- PDF Parsing: Smalot PDF Parser
- OCR: Tesseract OCR
Ensure the following are installed on your system:
- PHP 8.2 or higher
- Composer
- Node.js and npm
- Database (MySQL, PostgreSQL, or SQLite)
- Tesseract OCR (installed on the server/local machine)
-
Clone the Repository
git clone <repository-url> cd ai-doc-intel
-
Install PHP Dependencies
composer install
-
Install Node Dependencies
npm install
-
Environment Configuration Copy the example environment file and configure your database and API keys.
cp .env.example .env
Update
.envwith your database credentials andGEMINI_API_KEY. -
Generate Application Key
php artisan key:generate
-
Run Migrations
php artisan migrate
-
Build Frontend Assets
npm run build
To run the application locally, you need to start the Laravel development server, the queue worker, and the Vite development server (if developing).
-
Start Laravel Server
php artisan serve
-
Start Queue Worker (Required for document processing)
php artisan queue:listen
-
Start Reverb Server (For real-time updates)
php artisan reverb:start
-
Access the Application Open your browser and navigate to
http://localhost:8000.
This project is open-source software licensed under the MIT license.