Files
PID2DOC/docker-compose.yml
T
Abhinav Gupta c28be21557 feat(precision): achieve 100% ground truth recall and 76.47% entity precision
- Add centralized ISA 5.1/ISO 15926 taxonomy and DecomposedTag model
- Implement multi-evidence candidate scoring and explainable merge provenance
- Refine CompilerAgent: ISA loop consolidation, dense valve formatting, cross-system isolation
- Enforce canonical endpoint strictness for relationships (zero raw OCR strings)
- Update ValidationAgent with structured actionable feedback
- Add comprehensive test suites (60 pytest + 43 hybrid tests passing 100%)
- Generate baseline, regression, validation, confusion matrix, and final audit reports
2026-09-30 12:00:27 +05:30

70 lines
2.1 KiB
YAML

# ==============================================================================
# Docker Compose for SID-AI Engineering Diagram Extraction Platform
# ==============================================================================
services:
sid-ai:
build:
context: .
dockerfile: Dockerfile
args:
BUILDER_IMAGE: python:3.13-bookworm
RUNNER_IMAGE: python:3.13-slim-bookworm
container_name: sid-ai-extraction
restart: unless-stopped
ports:
- "8501:8501"
# Load API keys and configurations from .env
env_file:
- .env
environment:
- PYTHONUNBUFFERED=1
- PYTHONDONTWRITEBYTECODE=1
# Increase upload limit for high-resolution engineering drawings (in MB)
- STREAMLIT_SERVER_MAX_UPLOAD_SIZE=500
- STREAMLIT_BROWSER_GATHER_USAGE_STATS=false
# Allocate 2GB shared memory for PyTorch, EasyOCR, and OpenCV workers
# (prevents container crashes during multi-threaded image processing)
shm_size: '2gb'
volumes:
# Diagram inputs and generated engineering deliverables (Excel, CSV, Graph JSON)
- ./uploads:/app/uploads
- ./outputs:/app/outputs
# Trained YOLO weights and models
- ./training/outputs:/app/training/outputs:ro
# Persistent cache for downloaded neural network weights (EasyOCR & PyTorch)
- easyocr-models:/app/models/easyocr
- torch-models:/app/models/torch
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8501/_stcore/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Hard cap on CPU/System RAM at 80% (6GB of available 7.57GB WSL2 RAM)
mem_limit: 6g
# ── NVIDIA GPU acceleration with zero VRAM caps & 80% RAM limit ─────────────
deploy:
resources:
limits:
memory: 6g
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
volumes:
easyocr-models:
name: sid_ai_easyocr_models
torch-models:
name: sid_ai_torch_models