Skip to main content

update_course_embeddings

Function update_course_embeddings 

Source
pub async fn update_course_embeddings(
    conn: &mut PgConnection,
    course_id: Uuid,
    title_embedding: Option<Vector>,
    description_embedding: Option<Vector>,
) -> ModelResult<()>
Expand description

Saves the course’s title and description embeddings, keeping the stored one where an argument is None.