Skip to content

embedding生成Rakeタスクに診断ログを追加#9570

Merged
komagata merged 1 commit intomainfrom
feature/smart-search-generate-logging
Jan 29, 2026
Merged

embedding生成Rakeタスクに診断ログを追加#9570
komagata merged 1 commit intomainfrom
feature/smart-search-generate-logging

Conversation

@komagata
Copy link
Copy Markdown
Member

@komagata komagata commented Jan 29, 2026

Summary

  • smart_search:generate_all Rakeタスクに診断ログを追加
  • Cloud Build実行時にembeddingが生成されない原因を特定しやすくする
    • OPEN_AI_ACCESS_TOKENの有無
    • 各モデルのembeddingカラム存在確認
    • 処理前後の件数

Test plan

  • bin/rails smart_search:generate_all を実行し、診断ログが出力されることを確認
  • Cloud Buildトリガーで実行し、ログから状況を確認

🤖 Generated with Claude Code

Summary by CodeRabbit

リリースノート

  • 改善
    • スマート検索のエンベディング生成プロセスの信頼性と可視性を向上させました。API可用性の確認とエラーハンドリングを強化し、生成進捗の詳細な統計情報を提供するようになりました。

✏️ Tip: You can customize this high-level summary in your review settings.

Cloud Build実行時に問題を特定しやすくするため、generate_allタスクに
APIキーの有無・各モデルのembeddingカラム存在確認・処理前後の件数を出力する。

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Jan 29, 2026

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Walkthrough

SmartSearch::EmbeddingGeneratorとBulkEmbeddingJobを活用するランタイムロジックをsmart_search:generate_allタスクに追加します。API可用性チェック、embedding対応モデルの検証、実行前後の統計出力が含まれます。

Changes

Cohort / File(s) Summary
スマート検索タスク拡張
lib/tasks/smart_search.rake
SmartSearch::EmbeddingGeneratorのインスタンス化、OpenAI APIの可用性チェック、embedding対応モデルの検証処理、BulkEmbeddingJobの実行、埋め込み統計情報の出力ロジックを追加

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • AI検索(RAG)機能を追加 #9539: lib/tasks/smart_search.rakeを修正し、SmartSearch::EmbeddingGeneratorおよびBulkEmbeddingJobの実行ロジックを追加する直接関連のあるPR

Poem

🐰 Embeddings now flow with grace,
API checks find their place,
Models hum, statistics sing,
Bulk jobs birth the data spring! ✨


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@komagata komagata merged commit 2dce31e into main Jan 29, 2026
1 of 3 checks passed
@komagata komagata deleted the feature/smart-search-generate-logging branch January 29, 2026 03:00
@github-actions github-actions bot mentioned this pull request Jan 29, 2026
27 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant