Skip to content

Implement document upload to object storage #72

Description

@krapfj23

Summary

Build a storage service that uploads files to the chosen S3-compatible provider.

Blocked by

Blocks

Steps

  1. Install the SDK for the chosen provider (e.g., supabase Python client, boto3 for S3-compatible)
  2. Create backend/app/services/storage.py with functions: upload_file(file_path, bucket, key) -> url and download_file(bucket, key) -> bytes
  3. Add storage env vars to cognee_config.py and .env.example
  4. Write tests: upload a file → get URL back, download by key → get same content

Acceptance Criteria

  • storage.py with upload_file and download_file functions
  • File appears in the storage provider's dashboard after upload
  • Tests pass for upload + download round-trip
  • PR body includes Closes #72

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

migrationStorage & DB migrations

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions