forked from 0xWheatyz/SPARC
Document patents/ volume mount requirement and fix analyze_single_patent missing download step #1385
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
Roadmap items: P2 Backend — Patent PDF storage and analyze_single_patent assumes local file path
Two related issues:
patents/directory that is not documented as a required volume mount for containerized deployments, so the directory is lost on container restart.analyze_single_patentconstructspatents/{patent_id}.pdfand reads from disk without first downloading the PDF, causing silent failures when the file is absent.Task
Short-term (this PR):
analyze_single_patentif the PDF does not already exist locally.docker-compose.ymlto mount a named volume at thepatents/path.Optional / follow-up: Add a config flag
PATENT_STORAGE_BACKENDto supportlocal(default) ors3/minioin the future (open a separate issue if scope is too large).Acceptance Criteria
analyze_single_patentdownloads the PDF if it is not present before attempting to read it.docker-compose.ymldeclares a named volume forpatents/.Reference
See ROADMAP.md § P2 Backend.
Resolved by PRs #1374, #31, and #55 (merged). Patent volume mount requirement is documented. The
analyze_single_patentendpoint now auto-downloads patent PDFs when not cached locally.