forked from 0xWheatyz/SPARC
Integrate PDF download step in analyze_single_patent and document volume mount requirement #1603
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
analyze_single_patentconstructs a local pathpatents/{patent_id}.pdfand reads from disk without first downloading the PDF. This silently fails if the file is missing.What to do
patents/{patent_id}.pdfexists before reading; if not, trigger the download step firstpatents/directory volume mount requirement for containerized deploymentsAcceptance criteria
analyze_single_patentdoes not fail silently when the PDF is absentRef: ROADMAP.md P2 - Backend
This issue is already resolved in main.
analyze_single_patent()inanalyzer.pynow checks if the PDF exists on disk, and if not, attempts to download it automatically from the cached PDF link viaSERP.save_patents().