Discourse チャットボット 🤖

:information_source: 概要 Discourse用のオリジナルAIチャットボット
:hammer_and_wrench: リポジトリリンク GitHub - merefield/discourse-chatbot: An AI bot with RAG capability for Topics, Chat & Customer Support in Discourse, currently powered by OpenAI · GitHub
:open_book: インストールガイド Discourseにプラグインをインストールする方法
:heart: スポンサーシップ このプラグインがふさわしいメンテナンスを受け、将来もあなたのサイトで機能し続けるよう、あなたやあなたの組織の資源とニーズに合ったレベルで、私のオープンソース活動の継続的なスポンサーになってください。

このプラグインをお楽しみいただいている場合は、GitHubで:star: を押してください! :pray:

:information_source: これは独立して貢献されたプラグインであるため、サポート、バグ、UX、機能のリクエストは、このトピック内で行ってください。なお、このプラグインはDiscourse.orgのホスティングでは利用できません。セルフホスティングの場合、またはサードパーティのホスティング(プロバイダーに確認してください)の場合にはインストールできます。

Discourse用のオリジナルAIチャットボット

Chatbotは、設定可能なAI対話をトピック、パーソナルメッセージ、チャットチャンネル、チャットスレッドに持ち込みます。コミュニティに合ったキャラクターをボットに与え、どのグループが使用できるかを決定し、低・中・高信頼度ユーザーに対して異なるモデルやツールを選択できます。

以下のことができます:

  • 現在の会話から通常に回答する;
  • セマンティック検索またはハイブリッド検索で選択されたフォーラムコンテンツを検索する;
  • ウィキペディア、最新のニュース、ウェブを検索する;
  • リモートページをクロールし、日中の市場データを取得する;
  • 信頼性の高い式ベースの計算を実行する;
  • アップロードされた画像を表示し、オプションでPDFを読む;
  • 画像を生成および編集する;
  • プライベートな会話で未記入の編集可能なユーザーフィールドを収集する;
  • プライベートなチャット会話を設定されたスタッフグループにエスカレーションする;
  • 選択されたカテゴリの新規トピックに自動的に応答する;
  • 他のプラグインによって提供される追加のツールを受け入れる。

実践的なサポートワークフローについては、技術サポートチャットボットの構築を参照してください。

ローカルフォーラム検索を有効にすると、ボットはコミュニティのコンテンツに基づいて回答を裏付けることができます:

よりシンプルな会話のために、呼び出し、レイテンシ、コストを削減するために、ツールを少なくまたは無効にします:

プロバイダーサポート

返信、エンベディング、ビジョン、画像生成のために、プロバイダーを独立して選択できます。各機能は、選択されたプロバイダーに属するAPIキーを再利用します。

機能 OpenAI Anthropic Google Gemini xAI
LLMの返信とツール :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
エンベディング :white_check_mark: :white_check_mark: :white_check_mark:
ビジョン :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
画像生成 :white_check_mark: :white_check_mark: :white_check_mark:
画像編集 GPT Imageモデル :white_check_mark:
PDF会話入力 :white_check_mark:

カスタムURLが設定されていない場合、Chatbotは選択されたプロバイダーの組み込みの公式エンドポイントを使用します。カスタムモデル名とURLは、Azure OpenAI、Ollama、プロキシ、およびサポートされているプロバイダーのAPI形状を実装する他のサービスをサポートしています。

プロバイダー固有のモデルドロップダウンは、そのプロバイダーがアクティブな場合のみ表示されます。返信モデルは信頼度レベルによって異なり、エンベディング、ビジョン、画像生成はそれぞれ独自のプロバイダーとモデルセレクターを持っています。

完全なプロバイダーとカスタムエンドポイントガイドを読む

アクセス、クォータ、ツール

Chatbotの低・中・高信頼度グループ設定にグループを割り当てるまで、誰もアクセスできません。ユーザーは、彼らの最も高い一致するChatbot信頼度レベルのクォータ、モデル、ツール許可リストを継承します。クォータはクエリまたはトークンで測定できます。

組み込みツールは、各信頼度レベルに対して独立して選択されます。認証情報とサポート設定は依然としてランタイムでの利用可能性を制御するため、APIキーなしでウェブツールを選択しても、それは公開されません。

アクセスとクォータおよび信頼度レベルツールについて読む。

ローカルフォーラム検索とプライバシー

:biohazard: ローカルフォーラム検索を有効にする前に、エンベディングの範囲を理解してください。

デフォルトの benchmark_user 戦略は、設定された信頼度レベルで適切なユーザーに見えるコンテンツをエンベディングします。 categories 戦略は、明示的に選択されたカテゴリのコンテンツをエンベディングします。セマンティック検索は速度のために最適化されており、ボットに質問するすべての人に対して可視性チェックを繰り返さないため、範囲が制限されたコンテンツを含む場合、一致するコンテンツは元のオーディエンスの外で共有される可能性があります。

パーソナルメッセージは決してエンベディングされません。ベンチマーク信頼度レベルを低く保ち、そのコンテンツがすべてのChatbotユーザーに開示される可能性がある場合を除き、プライベートなカテゴリを避けてください。また、使用すべきではない信頼度レベルから local_forum_search を削除してください。

選択されたプロバイダーは、会話内容、アップロード、エンベディングされた検索一致、ツール結果を受け取る可能性があります。それらの保持とデータ使用の条件を確認し、フォーラムの利用規約とプライバシー通知でこの処理を開示してください。

完全なエンベディング、範囲、プライバシーガイドを読む

クイックスタート

  1. 通常のセルフホスティングプラグイン手順を使用してプラグインをインストールします。
  2. chatbot_llm_provider を選択し、そのプロバイダーのAPIキーを入力し、各信頼度レベルのモデルを選択します。
  3. 低・中・高信頼度アクセス設定にグループを追加し、クォータを設定します。
  4. 各信頼度レベルで利用可能な組み込みツールを選択します。
  5. local_forum_search を有効にする場合、そのエンベディングプロバイダーを設定し、その範囲を慎重にレビューします。
  6. ボットにメンションし、それに応答し、クイックアクセスボタンを使用するか、カテゴリの自動応答プロンプトを設定します。

クイックOpenAI例

  1. OpenAI APIキーを作成し、API請求が有効であることを確認します。
  2. chatbot_llm_provider をOpenAIに設定し、キーを chatbot_open_ai_token に貼り付けます。
  3. カスタムURLを空白にし、使用予定の各信頼度レベルにOpenAIモデルを選択し、テストグループを一致するChatbotアクセス設定に追加します。
  4. 許可されたトピック、パーソナルメッセージ、またはチャットでボットにメンションしてテストします。

リポジトリのREADMEは、前提条件、すべての主要な設定グループ、プロバイダー固有の動作、カスタムエンドポイント、エンベディングのメンテナンス、プロンプトのカスタマイズ、デバッグ、拡張機能の開発、アンインストールの信頼できる情報源です:

:books: 完全なREADMEを開く

選択されたUI機能

カテゴリは新しいトピックを迎え、関連するコミュニティコンテンツを検索するようにボットに依頼できます:

オプションのクイックアクセスボタンは、ボットとの直接のチャットまたはパーソナルメッセージを開くことができます:

ユーザーフィールドツールは、サポートされている空のフィールドをプライベートに収集できます:

User Fields collection

サポートとスポンサーシップ

サポートリクエスト、バグ、UXフィードバック、機能アイデアは、このMetaトピックで報告してください。プロバイダー、モデル名、関連する設定、HTTPステータスとプロバイダー応答ボディを含め、APIキーとプライベートなコンテンツを削除してください。

この作業はコミュニティのサポートに依存しています。プラグインがあなたのサイトで価値がある場合、継続的なメンテナンスのスポンサーになってください。

プロジェクトスポンサー

スポンサー レベル ウェブサイト
Surety Silver Plus suretyhome.com

免責事項

LLMは、説得力のあるが誤った出力を生成する可能性があります。プラグインをコミュニティのニーズに対してテストし、プライバシーとコストの影響を理解し、適切なモデレーションを適用してください。生成出力の条件はプロバイダーと管轄区域によって異なります;有効にするすべてのプロバイダーの条件を確認してください。

「いいね!」 104
Building a technical support chatbot
Answer feature
Webhooks on chat messages?
How to check what prevents rake migrate?
Weekly Summary of AI topics
Advice on a support bot for a technical support forum (Discourse AI vs Discourse Chatbot)
Interact with discourse from Python?
Sidekiq not working
Locations Plugin :earth_africa:
Lessons from Colossal Caves
Issue after Rebuilding Discourse on Digital Ocean Droplet
Locations Plugin :earth_africa:
I have error when upgrade new version of discourse
I have error when upgrade new version of discourse
Site down after upgrade via SSH - how to fix?
2023: The Year in Review
Character count when writing description
Advice on a support bot for a technical support forum (Discourse AI vs Discourse Chatbot)
Is there an option to use Discourse Chat as a customer service type of chat?
Configure AI Chatbot for Trust Level 0 Access
Creating bot on discourse
AI Helper Plugin
Copy custom file in discourse container while build
Voice to text integration
Allow specifiy user different from guardian.user in chat services such as Chat::CreateMessage
How to add a ChatGPT trained AI to discourse?
Cannot get the js in my component to compile SyntaxError: Private field must be used in an enclosing class
Allow ChatBot to read PDFs so it can join in a group discussion
How to create a custom ChatGPT based bot?
Discourse and Coveo
Link for new DM / personal chat message with pre-filled information
UX IPhone issues
How to respond to automatic topics with AI
Comparison between discourse-ai AI Bot and merefield/discourse-chatbot
Allow multiple ‘new topic’ drafts
I have error when upgrade the latest discourse
Two different answers from gpt4o - one right, one wrong.. !?
Is the shortcut to start AI conversation a user setting or not?
Setting Form Templates with a tag
Recommendation: chatbot to support discussion in threads
Photography Mentor Bot
Grouped Site Settings under Headings in Plugins
Update Not Completed and Discourse not opening
Recommendation: chatbot to support discussion in threads
Discourse AI Topic Summary :robot:
Discourse AI Topic Summary :robot:
Hubot Adapter for Discourse
Hubot Adapter for Discourse
Verbose log
Making the case for a hard cap feature on user group AI usage for AI bots and AI Helper
LLMs and the impact on customer support
2024: The Year in Review
How to respond to automatic topics with AI
What User Information is Exposed to LLMs in Discourse AI
Advice on a support bot for a technical support forum (Discourse AI vs Discourse Chatbot)
Configure AI Chatbot for Trust Level 0 Access
Auto responder using AI
Locations Plugin :earth_africa:
Discourse AI Topic Summary :robot:
Discourse Chat Bridge (Telegram)
AI personas integration of the chat plugin: It would be great if site users could chat with AI personas
What's the best way to store data with a plugin?
Locations Plugin :earth_africa:
Locations Plugin :earth_africa:
Is there any built-in chatbot or conversational assistant available in Discourse?
ChatGPT Assistant Integration
Create posts with AI
Multisite vs multiple containers
Training a model on a site's posts?
How are we all feeling about ChatGPT and other LLMs and how they'll impact forums?
GPT-4 with vision available
Use AI to request summary and others things from topic
Upgrading from /admin/upgrade takes *very* long
Embed additional explainer text in Form Template
We need prompt chains: Allow custom AI persona tools to access LangChain.js and/or longer execution time
Advice on a support bot for a technical support forum (Discourse AI vs Discourse Chatbot)
Advice on a support bot for a technical support forum (Discourse AI vs Discourse Chatbot)
Advice on a support bot for a technical support forum (Discourse AI vs Discourse Chatbot)
Configure AI Chatbot for Trust Level 0 Access
Enabling AI Bot in Chat
When I start a conversation with the AI, it gives two answers to my question
Balancing Costs and Functionality in AI-Powered Forums
Advice on a support bot for a technical support forum (Discourse AI vs Discourse Chatbot)