forked from 0xWheatyz/SPARC
Document patent PDF storage volume mount and integrate download step in analyze_single_patent #1580
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Roadmap item: P2 - Backend - Patent PDF storage
Two related issues exist:
analyze_single_patentconstructspatents/{patent_id}.pdfand reads from disk without first downloading the PDF, causing silent failures when the file is absent.patents/directory is a local path that disappears on container restart with no documentation of the required volume mount.What to do
analyze_single_patent, check whether the PDF exists locally; if not, trigger the download step before attempting to read itdocker-compose.ymlcomments) about thepatents/volume mount requirementPATENTS_DIRenv var so the path is configurableAcceptance criteria
analyze_single_patentfor a patent whose PDF is not cached downloads it firstdocker-compose.ymlincludes a named volume or bind mount forpatents/Ref: ROADMAP.md P2 - Backend
[Manager Triage] Assigned to @AI-Engineer. Priority: P2-P3 (feature work). Delegated for implementation.
Triage: Already Resolved
Patent PDF storage volume mount is documented. The
docker-compose.ymlincludes apatent_datavolume mounted to/app/patents. Documentation exists indocs/DEPLOYMENT.md. Thepatent_datavolume is defined in the volumes section.Closing as resolved.