Skip to content

Instantly share code, notes, and snippets.

View Iamronaldosunmu's full-sized avatar
💭
Coding👩‍💻

Ronald Dosunmu Iamronaldosunmu

💭
Coding👩‍💻
View GitHub Profile
@Iamronaldosunmu
Iamronaldosunmu / backfill_conversation_topic_embeddings.rb
Created July 24, 2026 08:01
kuda-pilot conversation topic embedding backfill script
# frozen_string_literal: true
# Backfill Voyage conversation topic embeddings via API2 for kuda-pilot.
# Prefer this over Maintenance::EnqueueConversationTopicEmbeddingsTask —
# that task's JobIteration keyset queries hit statement timeouts on prod.
#
# Calls API2 /internal/conversation_topic_embeddings/enqueue directly (60s
# timeout). API2 schedules the Turbopuffer upsert asynchronously and returns
# 202 quickly; this script tracks enqueue success, not embed completion.
#