File size: 961 Bytes
90c6b42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
"""
PDF Processing Integration Module for ATOM

This module provides comprehensive PDF processing capabilities with OCR,
image comprehension, and memory storage integration.

Features:
- PDF text extraction with OCR fallback
- Image comprehension using AI vision
- Vector storage in LanceDB for semantic search
- Graceful degradation when external APIs are unavailable
- Integration with Atom's memory system
"""

from .pdf_memory_integration import PDFMemoryIntegration
from .pdf_memory_routes import router as pdf_memory_router

# Optional OCR router (requires PIL/Pillow)
try:
    from .pdf_ocr_routes import router as pdf_ocr_router
    from .pdf_ocr_service import PDFOCRService
    OCR_AVAILABLE = True
except ImportError:
    pdf_ocr_router = None
    PDFOCRService = None
    OCR_AVAILABLE = False

__all__ = [
    "PDFOCRService",
    "PDFMemoryIntegration",
    "pdf_ocr_router",
    "pdf_memory_router",
    "OCR_AVAILABLE",
]

__version__ = "1.0.0"