OCR-to-RAG pipeline for life science screenshots

PaddleOCR with preprocessing, scispaCy NER, figure/table detection,
citation extraction, and chunked Markdown output with frontmatter.
Includes watch mode and notebook reprocessing.
This commit is contained in:
aman committed 2026-07-18 19:35:21 +00:00
1 parent 012549b4bc
commit a32b7508c7
68 files changed
+8708

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
FROM python:3.11-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
tesseract-ocr \
libtesseract-dev \
poppler-utils \
libgl1 \
libglib2.0-0 \
libsm6 \
libxext6 \
libxrender-dev \
libgomp1 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY pyproject.toml ./
RUN pip install --no-cache-dir uv && uv sync --frozen
COPY src ./src
COPY config.yaml ./
ENV PYTHONPATH=/app/src
ENV OMP_NUM_THREADS=4
ENTRYPOINT ["ocr-pipeline"]