Documents Folder

The documents folder in the SAAI directory is where all server-related information is stored. This folder can contain multiple files in various formats with relevant information about your server.

Supported File Types

ServerAssistantAI supports multiple document formats, including:

  • Text files (.txt)

  • Markdown files (.md)

  • PDF files (.pdf)

  • Microsoft Office formats:

    • Word documents (.docx)

    • PowerPoint presentations (.pptx)

    • Excel spreadsheets (.xlsx)

It is recommended to use the Markdown (.md) format for your documents, as it allows for clickable links in both Minecraft and Discord when the AI assistant includes them in its responses. Additionally, using Markdown helps the Large Language Model (LLM) better understand the structure and formatting of your documents, leading to more accurate and context-aware responses.

Using Multiple Documents and Sub-Folders

Multiple documents can be used simultaneously, combining different file types as needed. This allows for more organized and structured information management. ServerAssistantAI also supports sub-folders within the documents/ directory, enabling categorization and grouping of files for better clarity and easier maintenance. For example, the documents/ directory could have:

  • A main server rules document in Markdown

  • A FAQ in a text file

  • A detailed server guide in PDF format

  • Event schedules in an Excel spreadsheet

  • Sub-folders for different topics, such as:

    • rules/ for server rules and regulations

    • guides/ for various guides and tutorials

    • events/ for event-related documents

Content and Structure

The content of these documents is used by ServerAssistantAI to generate context-aware responses to player questions. The AI assistant searches through all files and sub-folders in the documents/ directory to find information relevant to the player's inquiry, based on the embedding results (chunks) specified in the config.yml file for both Minecraft and Discord, regardless of document size.

There is no specific format you need to follow when creating your documents. You can structure the information in a way that makes sense for your server and is easy for players to understand. However, we have found that the Markdown (.md) format works particularly well for helping the AI better understand the structure and context of the information, leading to more accurate and relevant responses.

The example.txt File

The example.txt file is included in the documents/ directory as a default option. You can use this file alone or in combination with other document types. If you choose to use only the example.txt file, simply replace its content with your server's information.

example.txt
Quickly copying a Server Wiki with correct formatting and hyperlinks using StackEdit.io

Keeping Information Up-to-Date

To ensure the AI provides accurate and helpful responses, it is essential to keep all documents in the documents/ directory up-to-date with the latest server information and format them in a clear and organized manner.

ServerAssistantAI Document Creator

The ServerAssistantAI Document Creator is a web-based tool that simplifies the creation of documents for your server by crawling and converting content from multiple websites. It currently uses FireCrawl's API but will soon not require it.

ServerAssistantAI Document Creator Interface

Features:

  • Crawl multiple websites simultaneously

  • Convert content to .txt and .md files

  • Customize crawling with includes, excludes, and limits

  • Export options: main content only, include HTML, raw HTML, separate pages

To use the document creator:

  1. Obtain your FireCrawl API key at https://www.firecrawl.dev/app/api-keys

  2. Enter your server website URLs and configure options

  3. Select the needed options and click "Create Document"

  4. Wait a few seconds for crawling to complete

  5. Download the generated files and add them to your documents/ directory

StackEdit.io can be used to easily copy formatting and links from your server wiki website to be pasted into your documents as Markdown (.md) format. This online Markdown editor simplifies the process of transferring content from your server's wiki to your information documents while preserving the formatting and structure.

FireCrawl.dev is an advanced web crawling and data conversion tool that can transform your server's website into Markdown (.md) format, and comes with 300 free links/pages to convert, which is plenty for most users. With FireCrawl, you can automatically crawl and convert your server's wiki or documentation site into a format that can be easily added to your documents/ directory.

Was this helpful?