Spaces:
Running
Running
Commit History
-
feat: integrate Neon Object Storage for document uploads and retrieval
- Added boto3 dependency for S3 interactions in pyproject.toml. - Implemented object storage functionality in infrastructure/object_storage.py: - Functions for uploading, retrieving, deleting documents, and handling configuration. - Updated API routes in routes/api.py to utilize object storage for document handling: - Enhanced document upload to store original content in S3. - Modified raw document retrieval to fetch from S3. - Implemented cleanup logic for failed uploads. - Created regression tests for object storage interactions in tests/test_object_storage.py.0cfdea5 -
Refactor code structure for improved readability and maintainability
7a064ce