Skip to main content

Introduction to Miku

Miku is a minimalist AI-integrated Discord bot, fully focused on performance and user experience. The bot leverages the power of NVIDIA NIM to provide extremely fast and intelligent responses.

MikuMaid

Project Goals

The project is built with a "Minimalist and Efficient" philosophy. We have removed redundant components from previous versions to focus on:

  • Response speed (Low latency).
  • Bot security and safety.
  • High personalization for each user.

Key Features

  • NVIDIA NIM Integration: Utilizes the most modern Large Language Models (LLMs) like gemma-3n-e4b-it via NVIDIA's API.
  • User-Based Memory: Each user has a private memory space, allowing the bot to remember conversation context without mixing up members in the server.
  • KomiFilter 2.0: A multi-layered security system that protects against Prompt Injection attacks and prevents system information leaks.
  • Vision Support: Supports direct image analysis within the conversation.
  • Personalization (Callnames): Users can set how the bot addresses them and how they address the bot.

Tech Stack

  • Language: Python 3.10+
  • Main Libraries: discord.py, openai, aiosqlite.
  • Database: SQLite (with WAL mode for performance optimization).
  • AI Provider: NVIDIA NIM (OpenAI Compatible API).