Conversation
- pgvector拡張の存在確認とバージョン表示を追加 - AddEmbeddingToSearchableTablesマイグレーションの実行状況を確認 - ステージング環境でembeddingカラムが見つからない問題の調査用
|
Caution Review failedThe pull request is closed. 📝 Walkthroughウォークスルーlib/tasks/smart_search.rake の generate_all タスクに、pgvector 拡張機能の存在確認とその version 取得、および embedding 関連マイグレーション実行状況の確認機能を追加するランタイム診断ロジックを実装しました。エラーハンドリングも組み込まれています。 変更
推定コードレビュー時間🎯 2 (Simple) | ⏱️ ~12 分 関連する可能性のあるPR
提案されたレビュアー
詩
✨ Finishing touches🧪 Generate unit tests (beta)
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. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
ステージング環境でembeddingカラムが見つからない問題を調査するためのデバッグ情報を追加しました。
背景
ステージング環境でrakeタスクを実行した際に、すべてのモデルで「embedding column not found, skipping」というメッセージが表示されています。
変更内容
lib/tasks/smart_search.rakeのgenerate_allタスクに以下のデバッグ情報を追加:AddEmbeddingToSearchableTablesマイグレーションの実行状況確認期待される出力
このPRをデプロイ後、rakeタスクを実行すると以下の情報が確認できます:
これにより問題の原因を特定し、適切な対処ができるようになります。
確認項目
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.