Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Document Intelligence Platform

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.

Overview

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.

Key Features

  • 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.

Technology Stack

Backend

  • 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

Frontend

  • 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)

processing services

  • PDF Parsing: Smalot PDF Parser
  • OCR: Tesseract OCR

Prerequisites

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)

Installation

  1. Clone the Repository

    git clone <repository-url>
    cd ai-doc-intel
  2. Install PHP Dependencies

    composer install
  3. Install Node Dependencies

    npm install
  4. Environment Configuration Copy the example environment file and configure your database and API keys.

    cp .env.example .env

    Update .env with your database credentials and GEMINI_API_KEY.

  5. Generate Application Key

    php artisan key:generate
  6. Run Migrations

    php artisan migrate
  7. Build Frontend Assets

    npm run build

Running the Application

To run the application locally, you need to start the Laravel development server, the queue worker, and the Vite development server (if developing).

  1. Start Laravel Server

    php artisan serve
  2. Start Queue Worker (Required for document processing)

    php artisan queue:listen
  3. Start Reverb Server (For real-time updates)

    php artisan reverb:start
  4. Access the Application Open your browser and navigate to http://localhost:8000.

License

This project is open-source software licensed under the MIT license.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages