ice-only/localai-rag-live2d
An open-source project lets you run a Live2D anime character on your desktop that chats using a fully offline AI model and remembers things from your own documents
This project combines a locally-run quantized language model with a document-search feature and a Live2D anime character to build a desktop AI companion that works without sending any data to the cloud. Users can drop text, markdown, or PDF files into a folder and the assistant will automatically search them for answers, while conversations are saved as memory that persists across sessions. It also supports QQ messaging app integration alongside the desktop app.
What it does
- Runs a quantized version of the Qwen3.5-4B language model locally via llama.cpp, using GPU acceleration (Vulkan) or CPU only, so no internet connection or cloud API is required for chatting
- Implements RAG (Retrieval-Augmented Generation): documents placed in a docs folder are automatically indexed using a Chinese-language embedding model (BAAI/bge-small-zh-v1.5) and ChromaDB vector database, so the AI can look up relevant text before answering
- Displays a draggable, transparent, borderless Live2D character on the desktop built with PyQt5 and a web rendering component, giving the chatbot a visual anime-style persona
- Saves conversation history as JSON files, separated per user and per channel, and automatically trims older messages based on a token budget so the context doesn't overflow
- Supports multiple platforms through an adapter pattern, including a desktop mode and a QQ chat app connector via the OneBot v11 protocol
Why it matters
It's a practical template for anyone wanting to build a private, offline AI assistant with a custom visual personality without relying on cloud AI services or exposing personal documents. The modular structure (UI, model, memory, RAG, adapters) also makes it a reusable reference for adding your own chat platform or knowledge base.
Terms in this repo
Repository description (English)
一个本地ai聊天模型localaiAgentWithRAG,让你的本地数据不上传云端,可以自己加入所需要的记忆文件等等,修改角色形象,记忆对话,记忆库允许自己导入或者对话后自动记录
Open on GitHubTrending repos
- vorssaint/vorssaint-utilsOne free menu bar app replaces a dozen paid Mac utilities
- Alishahryar1/free-claude-codeA local proxy that lets coding AI agents run on 49 free or cheap model providers instead of one paid service
- freestylefly/awesome-gpt-image-2A library of 532 reverse-engineered prompts that turn GPT-Image2 into a predictable image-making tool
- block/buzzAn open-source workspace where humans and AI agents chat, code, and review in the same rooms
- NousResearch/hermes-agentNous Research's Hermes is an AI agent that gets smarter the more you use it
- virgiliojr94/book-to-skillA tool that turns technical book PDFs into on-demand reference skills for AI coding agents
- VoltAgent/awesome-agent-skillsA single hub collecting over 1000 'how-to' manuals that make AI coding assistants act like experts
- anthropics/claude-plugins-communityA shared shelf where anyone's Claude add-ons get listed for install