-- The embedding (vector) column is intentionally excluded from every sqlc query -- here: sqlc has no native pgvector type. Vector INSERT (bulk) and cosine-KNN -- SELECT are hand-written in repository.go using the pgvector text literal format. -- name: DeleteChunksByRun :exec DELETE FROM code_chunks WHERE run_id = $1; -- name: CountChunksByRun :one SELECT count(*) FROM code_chunks WHERE run_id = $1;