Changes between Version 5 and Version 6 of AdvancedTopics


Ignore:
Timestamp:
06/15/26 02:34:28 (27 hours ago)
Author:
231141
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AdvancedTopics

    v5 v6  
    99== 1. Personalized Recommendations ==
    1010
    11 This is the recommendation system that recommends open task requests to workers that have the most similar completed tasks. For this purpose we first embedded the open task requests and then as a starting point for our system we embedded three task requests that resulted in a completed task for each worker. We found this number of tasks enough as a starting point for our app. We built these embeddings and we used a table to store these vectors:
     11This is the recommendation system that recommends open task requests to workers that have the most similar completed tasks. For this purpose we first embedded the open task requests and then as a starting point for our system we embedded three task requests that resulted in a completed task for each worker. We found this number of tasks enough as a starting point for our app. We built these embeddings with the script [attachment:embed_taskrequests.py] and we used a table to store these vectors:
     12
     13{{{
     14#!sql
     15CREATE TABLE task_request_embeddings (
     16    task_request_id INT PRIMARY KEY
     17        REFERENCES TaskRequest(id)
     18        ON DELETE CASCADE
     19        ON UPDATE CASCADE,
     20
     21    embedding vector(384) NOT NULL,
     22
     23    embedded_at TIMESTAMP NOT NULL
     24        DEFAULT CURRENT_TIMESTAMP
     25);
     26}}}
     27
     28Once we embedded all the task requests we needed — the completed ones so we can build the worker profiles and the open ones so we can recommend them — we continued with making the worker recommendation profiles. We did this with a SQL query and we stored them in the table: worker_recommendation_profiles
    1229{{{
    1330#!sql
     
    4865    updated_at = CURRENT_TIMESTAMP;
    4966}}}
    50 {{{
    51 #!sql
    52 CREATE TABLE task_request_embeddings (
    53     task_request_id INT PRIMARY KEY
    54         REFERENCES TaskRequest(id)
    55         ON DELETE CASCADE
    56         ON UPDATE CASCADE,
    57 
    58     embedding vector(384) NOT NULL,
    59 
    60     embedded_at TIMESTAMP NOT NULL
    61         DEFAULT CURRENT_TIMESTAMP
    62 );
    63 }}}
    64 
    65 Once we embedded all the task requests we needed — the completed ones so we can build the worker profiles and the open ones so we can recommend them — we continued with making the worker recommendation profiles. We did this with a Python script [attachment:embed_worker_profiles.py] and we stored them in the table:
    66 
    6767{{{
    6868#!sql