Skip to content

Conversation

@pacificbelt30
Copy link
Collaborator

Overview

ベクトル検索によるナイーブな RAG の実装
以下の 2つの機能を追加

  • 類似 Issue の提案
  • コードベースの検索

それに伴う新規設定項目の追加

Cause and remedy (in the case of bug fixes)

What i did

  • Pinecone API のクライアント部分の実装
  • ベクトル DB 作成用のコマンドの実装
  • RAG の実装
    • 類似 Issue の提案機能の実装
    • コードベースの検索機能の実装
  • .alert-menta.user.yaml の新規設定の追加
    • ai.commands.{command}.similar_issue: 類似 Issue を Alert-Menta の返答に追加する
    • ai.commands.{command}.similar_code: コードベースを検索して、関連するファイルを抽出し、Alert-Menta が回答する

Change Result

  • RAG 機能を用いた返答が可能
  • .alert-menta.user.yaml で RAG 機能のオン・オフを設定可能
  • 利用には Pinecone への登録が必要

Content outside the scope of this PR

  • DB 作成用の Actions は未完成であり、DB 作成はローカルでのコマンド実行になってしまう

Precautions (What to let members know)

  • 設定項目とコマンドライン引数に追加項目が必要なこと

Usage and procedures after the change

  • コマンドライン引数に追記があるため、alert-menta.yaml のテンプレートに修正が必要
  • 新規の設定項目を追加したため、.alert-menta.user.yaml のテンプレートに修正が必要
  • Pinecone への登録と API 鍵の Secrets への追加

Especially where you want us to review

  • 大規模になってしまったので、動作テストは行ってほしいです。。

notes

@pacificbelt30 pacificbelt30 requested a review from kechigon as a code owner March 26, 2025 12:12
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.

2 participants