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.
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.
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
jobs
table: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
[x] Job Creation utility functions
[x] Job Processor Script For now just save it in a
jobs.py
file that every time we call it, it tries to run the not executed jobs.Error Handling
Tasks: