Skip to content

Latest commit

Β 

History

History
150 lines (118 loc) Β· 4.09 KB

File metadata and controls

150 lines (118 loc) Β· 4.09 KB

Document Processing System

A comprehensive document processing system with AI-powered analysis, storage, and retrieval capabilities.


πŸš€ Quick Start

  1. Clone the repository:
    git clone https://github.com/yourusername/document-processing-system.git
    cd document-processing-system
  2. Copy and edit the environment file:
    cp .env.example .env
    # Edit .env with your settings
  3. Start all services:
    make dev

πŸ–₯️ Service URLs


πŸ“ How OCR Automation Works in This System

1. Upload & Trigger

2. Node-RED Orchestration

3. OCR API Service

4. Bash Test Script

  • Test the OCR API from the command line with a sample PDF.
  • Test script

5. Configuration & Compose


🚦 Step-by-Step Example

  1. Start all services:
    make dev
  2. Upload a PDF for OCR via Node-RED:
  3. Directly test OCR API:

πŸ”— Key Files and Links


πŸ“ Directory Structure

.
β”œβ”€β”€ config/                  # Service configurations
β”‚   β”œβ”€β”€ elasticsearch/       # Elasticsearch config
β”‚   β”œβ”€β”€ grafana/             # Grafana dashboards and config
β”‚   β”œβ”€β”€ node-red/            # Node-RED flows and settings
β”‚   └── prometheus/          # Prometheus config
β”œβ”€β”€ data/                    # Persistent data
β”‚   β”œβ”€β”€ elasticsearch/       # ES data
β”‚   β”œβ”€β”€ grafana/             # Grafana data
β”‚   β”œβ”€β”€ minio/               # MinIO data
β”‚   └── redis/               # Redis data
β”œβ”€β”€ docker/ocr-api/          # OCR API implementation
β”œβ”€β”€ scripts/                 # Utility scripts
β”œβ”€β”€ docker-compose.yml       # Main compose file
β”œβ”€β”€ Makefile                 # Project commands
└── .env                     # Environment variables

πŸ› οΈ Configuration

Create a .env file with the following variables (see .env.example for more):

OCR_HOST=ocr
OCR_PORT=8081
# ... other variables ...

πŸ§‘β€πŸ’» Contributing & Maintenance

  • Use make help to see all available commands.
  • To update services:
    git pull origin main
    make dev
  • To view logs:
    docker-compose logs -f

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ†˜ Support

For support, open an issue in the GitHub repository or contact the maintainers.