Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite celery process_file_task #3234

Open
linear bot opened this issue Sep 20, 2024 · 1 comment
Open

Rewrite celery process_file_task #3234

linear bot opened this issue Sep 20, 2024 · 1 comment
Labels
area: backend Related to backend functionality or under the /backend directory

Comments

@linear
Copy link

linear bot commented Sep 20, 2024

  • Should process a knowledge instance (syncs or local)
  • Takes a KnowledgeDTO Object
    • If Local
      • Build file -> downloads from S3 using SupabaseS3Storage(knowledge_id)
      • Skip
    • If Sjync:
      • Recursively get children
      • Build file -> Uses SyncUtils to download the file
      • Insert children to DB using KnowledgeService
      • Return Vec<ProcessableKnowledge
  • For file in Vec:
    • Process the files
    • Save chunks
    • Update knowledge status to PROCESSED
Copy link
Author

linear bot commented Sep 20, 2024

@dosubot dosubot bot added the area: backend Related to backend functionality or under the /backend directory label Sep 20, 2024
@linear linear bot changed the title Refactor celery process_file_task Rewrite celery process_file_task Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: backend Related to backend functionality or under the /backend directory
Projects
None yet
Development

No branches or pull requests

0 participants