| Metadata | Value |
|---|---|
| Track ID | TRACK-081 |
| Title | Extraction Worker Local File Path Support |
| Status | Completed |
| Created | 2026-03-10 |
| Author | Sangeetha Grantha Team |
| Depends On | TRACK-079 (E2E Pipeline) |
Enable the extraction worker to read PDF files from a Docker volume-mounted directory, removing the requirement to serve PDFs over HTTP.
The extraction worker uses httpx to download source files. file:// URIs and bare filesystem paths fail with “UnsupportedProtocol.” This blocked mdskt.pdf (Sanskrit) extraction since PDFs had to be served via a separate HTTP server.
worker.py: Add _resolve_local_path() method to detect file:// URIs and bare / paths, read directly from filesystem instead of HTTP downloadcompose.yaml: Add ./data/pdfs:/app/pdfs:ro volume mount to extraction service.gitignore: Add data/pdfs/*.pdf to exclude binary PDFs from gitdata/pdfs/.gitkeep: Placeholder for the PDF mount directoryPlace PDFs in data/pdfs/ and submit extraction with source path /app/pdfs/<filename>.pdf.
/app/pdfs/mdskt.pdf as source URL