ubclaunchpad / forum

ForumAI combines AI capabilities with structured academic forums, enabling students and faculty to collaborate in a controlled environment where AI assists learning while maintaining academic integrity.
MIT License
12 stars 0 forks source link

Job Pipeline for vectorization process #83

Open armintalaie opened 1 week ago

armintalaie commented 1 week ago

Overview

Implement job queue system to handle asynchronous processing of uploaded files (vectorization, embedding generation)

When files are uploaded by the user we can't vectorize and generate embeddings for the content or post right there. What the API endpoints can do is insert a job in a new jobs table. Usually a process goes every few hours or so and executes the jobs.

Database Changes

Check the example directory for how the jobs might work but basically go the process will go over the record that are not completed.

Components

Error Handling

Tasks:

rayzhou4 commented 6 days ago

need to add actual job processing logic eventually in jobs.py (currently just logs saying that job processing happens)