Unity package for LLM integration, enabling AI characters
Top 32.7% on sourcepulse
This package enables the integration of Large Language Models (LLMs) directly within the Unity game engine, allowing developers to create interactive AI characters with conversational abilities and knowledge retrieval. It targets Unity developers seeking to enhance game immersion through AI-driven characters, offering local, cross-platform LLM execution and a built-in RAG system for dynamic knowledge bases.
How It Works
LLM for Unity leverages the llama.cpp
library for efficient, local LLM inference across CPU and GPU (Nvidia, AMD, Apple Metal). It supports various LLM architectures in .gguf
format and provides a RAG system using usearch
for semantic search and data augmentation. The package facilitates seamless integration via Unity components, enabling character interaction, chat history management, and custom prompt engineering.
Quick Start & Requirements
https://github.com/undreamai/LLMUnity.git
)..gguf
format.LLM
and LLMCharacter
components to GameObjects. Download or load .gguf
models via the LLM component's manager.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
Mobile deployment is limited to smaller LLM parameter counts (1-2 billion) due to hardware constraints. Model download and management are crucial for deployment, especially for mobile builds where models can be downloaded on first launch.
2 weeks ago
1 day