This document provides a detailed description of the features available in the NSR-AI Plugin.
Core Features
-
AI-Powered Chat: Engage in intelligent conversations with an AI directly in your Minecraft server.
-
Knowledge Base: A powerful system to store and retrieve server-specific information, such as rules, event details, and FAQs.
-
Admin Mode: A dedicated mode for server administrators with access to advanced commands and features.
Command Structure
-
/ai <message>: For general AI conversations.
-
/ai data <question>: To query the knowledge base for specific information.
-
/ai admin <your_activation_code>: To activate admin mode.
-
/ai disable: To deactivate admin mode.
Knowledge Base Management (Admin-Only)
-
/ai add <content>: Add new information to the knowledge base. The AI will automatically correct grammar and spelling.
-
/ai remove <question>: Remove entries from the knowledge base.
-
/ai confirm <code> [keyword]: Confirm the addition or removal of knowledge base entries.
Advanced Features
-
AI-Generated Headings: When adding to the knowledge base, the AI generates descriptive headings for better organization.
-
Enhanced Fuzzy Matching: The knowledge base search uses a smart matching algorithm to find relevant information even with varied phrasing.
-
Confirmation System: A secure, 6-digit code confirmation system for all knowledge base modifications.
-
Automatic Reload: The knowledge base is automatically reloaded after any changes, ensuring information is always up-to-date.
-
Robust and Stable: Asynchronous API calls prevent server lag, and a retry mechanism for API calls improves reliability.
-
Clean Chat History: Chat history is saved in a clean, easy-to-read format.
How to Use the Knowledge Base
1.
Activate Admin Mode: /ai admin <your_activation_code>
2.
Add Information: - /ai add <content> (e.g., /ai add The server rules are available on our website at example.com/rules.)
- The AI will provide a corrected version of your text and a 6-digit confirmation code.
3.
Confirm Addition: - /ai confirm <code> <keyword> (e.g., /ai confirm 123456 rules)
- The information is now permanently stored in the knowledge base.
4.
Query the Knowledge Base: - /ai data <question> (e.g., /ai data what are the server rules?)
- The AI will retrieve and display the relevant information.