Summary
After cognify, persist the original document to object storage and return the URL.
Blocked by
Blocks
Nothing
Steps
- Open
backend/app/services/ingest.py
- After
cognee.cognify() completes, upload the original file to object storage using storage.upload_file()
- Store the returned object URL in the document response (add
file_url field to UploadResponse)
- Ensure temp file in
/tmp/cognee_uploads/ is still deleted after upload to storage
- Write test: upload document, verify
file_url is returned and points to a valid object
Acceptance Criteria
Summary
After cognify, persist the original document to object storage and return the URL.
Blocked by
Blocks
Nothing
Steps
backend/app/services/ingest.pycognee.cognify()completes, upload the original file to object storage usingstorage.upload_file()file_urlfield toUploadResponse)/tmp/cognee_uploads/is still deleted after upload to storagefile_urlis returned and points to a valid objectAcceptance Criteria
file_urlreturned in upload responseCloses #73