Self-Hosting Honcho: Free Local Memory for My Hermes Agent
Introduction to Honcho and Self-Hosting
Overview of the Video
- The speaker introduces their experience with Honcho, an external memory provider for the Hermes agent, highlighting its ability to remember personal details.
- They express a need to transition from cloud hosting due to impending credit depletion and plan to self-host Honcho on their machine.
- The video aims to cover what Honcho is, reasons for self-hosting, its functionality, and a live setup demonstration.
Understanding Honcho
What is Honcho?
- Honcho is described as a memory infrastructure for AI agents developed by Plastic Labs, focusing on continual learning and better context management.
- It operates under the concept of "theory of mind," allowing AI agents to retain facts about users and model their working styles.
- Users can access Honcho through managed services or by self-hosting via FastAPI server; the latter will be demonstrated in this video.
How Does Honcho Work?
Mechanism of Operation
- After each conversation, Honcho runs a dialectic process that analyzes chat content to derive structured notes about user preferences and goals without interrupting ongoing chats.
- At query time, it performs semantic searches while incorporating a compact model of the user’s identity into responses. Benchmarks show high performance scores in memory quality metrics like long mem S (90.4%) and LocoMo (89.9%).
Integration with Hermes Agent
Role of External Memory Providers
- The Hermes agent has built-in persistent memory but also supports external providers like Honcho for deeper memory capabilities beyond basic notes stored in two files:
memory.md(agent's notes) anduser markdown(user profile).
- External providers enhance functionalities such as knowledge graphs, semantic search, automatic fact extraction, and cross-session modeling while running alongside built-in memory systems without replacement.
Setting Up Local Environment
Prerequisites for Setup
- Essential prerequisites include having the Hermes agent operational along with Git, Docker, Docker Compose installed on your machine; an LLM for reasoning may also be required depending on whether you choose local or cloud options for processing power.
Live Setup Process
- The speaker demonstrates cloning the Honcho repository and setting up containers using Docker Compose which includes Redis and database services among others necessary for operation.
Configuration Details
Understanding Configuration Files
- A detailed walkthrough of the
docker-compose.ymlfile reveals four main services: API service running on port 8000; driver service dependent on cache; database service; Prometheus monitoring option available if uncommented in configuration files.
Environment Variables Setup
- The
.envfile contains crucial settings including log levels, DB connection URIs for Postgres with PG vector support; authentication settings are advised against enabling unless in production environments due to security concerns.
Troubleshooting Connection Issues
Debugging Connection Problems
- Initial attempts at saving conclusions fail due to misconfigured base URLs when connecting between different devices (Mac vs Raspberry Pi), necessitating IP address adjustments instead of localhost references.
- Further issues arise from workspace mismatches leading to errors when trying to save conclusions until proper embedding settings are enabled.
Finalizing Setup & Testing Functionality
Successful Integration Confirmation
- After resolving embedding dimension requirements by selecting compatible models that support necessary dimensions (1536), successful conclusion saving indicates that local setup functions correctly.
- Speaker plans to share their repository containing configurations used during setup so others can replicate without facing similar challenges encountered throughout this process.
This structured summary captures key insights from the transcript while providing timestamps linked directly back to specific moments in the video for easy reference.