Getting Started¶
Welcome to HTM (Hierarchical Temporal Memory)! This section will help you get up and running quickly.
Overview¶
HTM provides intelligent memory management for LLM-based applications (robots) with a two-tier architecture:
- Long-term Memory: Durable PostgreSQL storage with vector embeddings for semantic search
- Working Memory: Token-limited in-memory context for immediate LLM use
What You'll Learn¶
-
Installation
Set up HTM in your Ruby project with all required dependencies including PostgreSQL, pgvector, and Ollama.
-
Quick Start
Build your first memory-enabled robot in minutes with practical examples and code snippets.
Prerequisites¶
Before installing HTM, ensure you have:
- Ruby 3.1+ - HTM uses modern Ruby features
- PostgreSQL 14+ - With pgvector and pg_trgm extensions
- Ollama (optional) - For local embedding generation
Next Steps¶
- Install HTM - Set up the gem and database
- Quick Start - Create your first memory-enabled robot
- Architecture Overview - Understand how HTM works
- Guides - Deep dive into specific features