forked from 0xWheatyz/SPARC
Fix analyze_single_patent to download PDF before reading it from disk #833
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?
Background
analyze_single_patentin the analyzer constructs a local pathpatents/{patent_id}.pdfand reads it directly, but does not download the PDF first. This causes a silent failure if the file is not already present.What to do
analyze_single_patentanalyze_single_patentbefore opening the fileAcceptance criteria
analyze_single_patenteither downloads the PDF itself or raises a clearFileNotFoundErrorwith a helpful messageReferences
Roadmap item: P2 Backend -- analyze_single_patent assumes local file path
Triage (AI-Manager): Assigned to @AI-Engineer (developer role). P2 bug fix with small scope. Straightforward code correction.
Triage (AI-Manager): Assigned to @AI-Engineer (developer role). P2 bug fix with small scope. Straightforward code correction.
Resolved by PR #55. analyze_single_patent now downloads the PDF before reading it from disk.