Sign inSign up

rin1809/chat_ai_interface

By rin1809

•Updated over 1 year ago

ᓚᘏᗢ

Image
Machine learning & AI
Web servers
0

56

rin1809/chat_ai_interface repository overview

⁠AI - UI ᓚᘏᗢ

⁠Picture 1

Image

⁠Picture 2

image

⁠Introduction

🇻🇳 Tiếng Việt

⁠Giới thiệu

Chat Bot GUI là một ứng dụng giao diện người dùng (UI) cho phép tương tác với mô hình ngôn ngữ Gemini của Google (Gemini 2.0 Flash) thông qua một giao diện trò chuyện thân thiện. Ứng dụng hỗ trợ tải lên và xử lý nhiều loại file (text, ảnh), tùy chỉnh cài đặt an toàn, quản lý lịch sử trò chuyện, và thay đổi hướng dẫn hệ thống (system instruction).

⁠Tính năng

  • Giao diện trò chuyện: Giao diện trực quan, dễ sử dụng, hỗ trợ hiển thị tin nhắn của người dùng và phản hồi từ bot.
  • Tải lên file: Hỗ trợ tải lên nhiều file (text, ảnh) để cung cấp ngữ cảnh cho bot.
  • Xử lý file:
    • File text: Đọc nội dung file text và gửi cho Gemini cùng với câu hỏi của người dùng.
    • File ảnh: Gửi ảnh cho Gemini để mô tả hoặc phân tích.
  • Tùy chỉnh cài đặt an toàn: Điều chỉnh các ngưỡng chặn cho các loại nội dung nhạy cảm (ngôn từ thù hận, nội dung nguy hiểm, quấy rối, nội dung khiêu dâm).
  • Quản lý lịch sử trò chuyện:
    • Lưu lịch sử trò chuyện vào các file JSON riêng biệt.
    • Tải lại lịch sử trò chuyện.
    • Xóa từng cuộc trò chuyện hoặc tất cả cuộc trò chuyện.
  • Hướng dẫn hệ thống (System Instruction): Thay đổi hướng dẫn hệ thống để tùy chỉnh hành vi của bot.
  • Prompt mẫu: Cung cấp các prompt mẫu để bắt đầu cuộc trò chuyện.
  • Hiển thị code: Hiển thị code với cú pháp được tô sáng (syntax highlighting) và hỗ trợ copy code.
  • Phản hồi đa phương tiện: Hỗ trợ hiển thị văn bản và code từ mô hình.
  • Thanh bên có thể thu gọn: Ẩn/hiện thanh bên chứa lịch sử cuộc trò chuyện.
  • Chỉ báo trạng thái nhập: Hiện thị icon khi Rin đang nhập.

⁠Hướng dẫn sử dụng

  1. Nhập tin nhắn: Nhập câu hỏi hoặc yêu cầu của bạn vào ô nhập tin nhắn và nhấn nút "Send" (biểu tượng hình tròn) hoặc nhấn Enter.
  2. Tải file:
    • Nhấn nút "Upload" (biểu tượng dấu cộng).
    • Chọn một hoặc nhiều file.
    • Nhấn "Open".
    • Tên file sẽ hiển thị trong tin nhắn phản hồi của bot.
  3. Tạo prompt mới: Nhấn nút "New Prompt" để bắt đầu cuộc trò chuyện mới (xóa lịch sử trò chuyện hiện tại trên giao diện).
  4. Cài đặt an toàn:
    • Nhấn nút "Safety Settings" để mở bảng cài đặt.
    • Điều chỉnh các ngưỡng chặn cho từng loại nội dung.
    • Nhấn "Save Settings".
  5. Xóa tất cả cuộc trò chuyện: Nhấn nút "Delete All Chats" trong sidebar.
  6. Xem lịch sử trò chuyện:
    • Các cuộc trò chuyện trước đó được liệt kê trong sidebar.
    • Nhấn vào một cuộc trò chuyện để tải lại lịch sử.
  7. Xóa cuộc trò chuyện: Nhấn nút "Delete" (biểu tượng thùng rác) bên cạnh cuộc trò chuyện trong sidebar.
  8. Thay đổi System Instruction
    • Nhấn vào icon tam giác để mở.
    • Thay đổi System Intruction trong khung.
    • Nhấn nút check (Lưu).
  9. Prompt Mẫu: Chọn prompt có sẵn trong phần gợi ý.
🇬🇧 English

⁠Introduction

The Chat Bot GUI is a user interface (UI) application that allows you to interact with Google's Gemini language model (Gemini 2.0 Flash) through a friendly chat interface. The application supports uploading and processing various file types (text, images), customizing safety settings, managing chat history, and changing the system instruction.

⁠Features

  • Chat Interface: Intuitive and easy-to-use interface, supporting display of user messages and bot responses.
  • File Upload: Supports uploading multiple files (text, images) to provide context to the bot.
  • File Processing:
    • Text Files: Reads the content of text files and sends it to Gemini along with the user's question.
    • Image Files: Sends images to Gemini for description or analysis.
  • Customizable Safety Settings: Adjust blocking thresholds for various types of sensitive content (hate speech, dangerous content, harassment, sexually explicit content).
  • Chat History Management:
    • Saves chat history to separate JSON files.
    • Loads chat history.
    • Deletes individual chats or all chats.
  • System Instruction: Change the system instruction to customize the bot's behavior.
  • Example Prompts:: Provide example prompts to get the chat started.
  • Code Display: Displays code with syntax highlighting and supports code copying.
  • Multimedia Response: Supports displaying text, and code from the model.
  • Collapsible Sidebar: Show/Hide chat history.
  • Typing Indicator: Displays icon while Rin is typing.

⁠Usage Instructions

  1. Enter a message: Type your question or request into the message input box and click the "Send" button (the circular icon) or press Enter.
  2. Upload files:
    • Click the "Upload" button (the plus icon).
    • Select one or more files.
    • Click "Open".
    • The filenames will be displayed in the bot's response message.
  3. Create a new prompt: Click the "New Prompt" button to start a new conversation (clears the current chat history on the interface).
  4. Safety settings:
    • Click the "Safety Settings" button to open the settings panel.
    • Adjust the blocking thresholds for each content type.
    • Click "Save Settings".
  5. Delete all chats: Click the "Delete All Chats" button in the sidebar.
  6. View chat history:
    • Previous chats are listed in the sidebar.
    • Click on a chat to load its history.
  7. Delete a chat: Click the "Delete" button (trash can icon) next to the chat in the sidebar.
  8. Change System Instruction:
    • Click the triangle icon to open.
    • Change System Intruction.
    • Click check button (Save).
  9. Example Prompts: Click on an available example prompt.
🇯🇵 日本語

⁠概要

Chat Bot GUI は、Google の Gemini (Gemini 2.0 Flash) 言語モデルとフレンドリーなチャットインターフェースを通じて対話できるユーザーインターフェース (UI) アプリケーションです。このアプリケーションは、さまざまなファイルタイプ (テキスト、画像) のアップロードと処理、安全設定のカスタマイズ、チャット履歴の管理、システム指示の変更をサポートしています。

⁠機能

  • チャットインターフェース: ユーザーメッセージとボットの応答の表示をサポートする、直感的で使いやすいインターフェース。
  • ファイルアップロード: ボットにコンテキストを提供するために、複数のファイル (テキスト、画像) のアップロードをサポートします。
  • ファイル処理:
    • テキストファイル: テキストファイルの内容を読み取り、ユーザーの質問とともに Gemini に送信します。
    • 画像ファイル: 説明または分析のために画像を Gemini に送信します。
  • カスタマイズ可能な安全設定: さまざまな種類の機密コンテンツ (ヘイトスピーチ、危険なコンテンツ、嫌がらせ、露骨な性的コンテンツ) のブロックしきい値を調整します。
  • チャット履歴管理:
    • チャット履歴を個別の JSON ファイルに保存します。
    • チャット履歴を読み込みます。
    • 個々のチャットまたはすべてのチャットを削除します。
  • システム指示: システム指示を変更して、ボットの動作をカスタマイズします。
  • プロンプト例: チャットを開始するためのプロンプト例を提供します。
  • コード表示: 構文を強調表示してコードを表示し、コードのコピーをサポートします。
  • メッセージへのフィードバック: 再試行。
  • 折りたたみ可能なサイドバー: チャット履歴を表示・非表示。
  • 入力インジケーター: りんが入力中にアイコンを表示。

⁠使用方法

  1. メッセージの入力: メッセージ入力ボックスに質問またはリクエストを入力し、「送信」ボタン (円形のアイコン) をクリックするか、Enter キーを押します。
  2. ファイルのアップロード:
    • 「アップロード」ボタン (プラスアイコン) をクリックします。
    • 1つまたは複数のファイルを選択します。
    • 「開く」をクリックします。
    • ファイル名はボットの応答メッセージに表示されます。
  3. 新しいプロンプトの作成: 「新しいプロンプト」ボタンをクリックして、新しい会話を開始します (インターフェイス上の現在のチャット履歴をクリアします)。
  4. 安全設定:
    • 「安全設定」ボタンをクリックして、設定パネルを開きます。
    • 各コンテンツタイプのブロックしきい値を調整します。
    • 「設定を保存」をクリックします。
  5. すべてのチャットを削除: サイドバーの「すべてのチャットを削除」ボタンをクリックします。
  6. チャット履歴の表示:
    • 以前のチャットはサイドバーに一覧表示されます。
    • チャットをクリックして履歴を読み込みます。
  7. チャットの削除: サイドバーのチャットの横にある「削除」ボタン (ゴミ箱アイコン) をクリックします。
  8. システム指示の変更:
    • 三角形のアイコンをクリックして開きます。
    • システム指示を変更します。
    • チェック ボタン (保存) をクリックします。
  9. プロンプト例: 使用可能なプロンプト例をクリックします。

Tag summary

Content type

Image

Digest

sha256:c245d17a8…

Size

137.3 MB

Last updated

over 1 year ago

docker pull rin1809/chat_ai_interface:v1