MemoryMesh Overview
Title
MemoryMesh โ A Knowledge Graph Server for AI Models
How to Use
MemoryMesh is a local knowledge graph server designed to help AI models maintain structured and consistent memory. It is particularly useful for text-based RPGs, interactive storytelling, and other applications requiring structured data management.
Key Steps:
- Installation: Follow the installation guide to set up MemoryMesh.
- Schema Setup: Define your data structure using schemas (
.schema.json
files) in the dist/data/schemas
directory.
- Dynamic Tools: MemoryMesh automatically generates tools (add, update, delete) based on your schemas.
- Interact via AI: Use the generated tools to manage nodes (entities) and edges (relationships) in the knowledge graph.
Key Features
- Dynamic Schema-Based Tools: Auto-generates CRUD tools from schema definitions.
- Flexible Schema Design: Supports required fields, enumerated types, and relationship definitions.
- Metadata & Relationships: Helps AI understand context and connections between data points.
- Event System: Tracks modifications for insights into graph changes.
- Pre-Built RPG Schemas: Includes 11 ready-to-use schemas for text-based RPGs.
- SchemaManager Tool: A visual interface for easy schema creation and editing.
Use Cases
- Text-Based RPGs: Maintain consistent NPCs, locations, and item interactions.
- Interactive Storytelling: Track character relationships and plot developments.
- Social Network Simulations: Model connections between users and content.
- Organizational Planning: Structure data for decision-making and strategy.
Example Applications:
- NPC Management: Define races, skills, and affiliations for characters.
- Item Tracking: Track ownership and locations of artifacts.
- Dynamic World-Building: Connect locations, factions, and events seamlessly.
For more details, explore the SchemaManager Guide and MemoryViewer Guide.
MemoryMesh is open-source (MIT License) and built on TypeScript. Check the CHANGELOG for updates.