Memory System
Pruning Engine
Intelligent lifecycle management for memory, handling forgetting and garbage collection.
Storage: Deletes from all DBs
Purpose
The Pruning Engine acts as the system's "janitor". Just like human memory, the system must forget irrelevant details to maintain efficiency and relevance. It manages the deletion of low-utility or expired data.
Key Features
- Graph Centrality: Prunes isolated nodes that have no strong connections to the rest of the knowledge graph.
- Relevance Scoring: Before deleting questionable items, it can ask an LLM "Is this still important?" to ensure safety.
Functional Deep Dive
Pruning Logic
It deletes noise by analyzing graph topology (isolated nodes) and metadata (TTL expiration). It combines deterministic rules (Time-to-Live) with semantic checks (LLM Review) to prevent accidental data loss.
Pruning Logic Flow
API Reference
Pruning Engine provides endpoints for memory lifecycle management.
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/memory/v1/pruning/analyze | Analyze pruning candidates |
| POST | /api/memory/v1/pruning/execute | Execute pruning operation |
| POST | /api/memory/v1/pruning/ttl | Set TTL for item |
| GET | /api/memory/v1/pruning/ttl/item_id | Get TTL information |
| GET | /api/memory/v1/pruning/stats | Get pruning statistics |
| GET | /api/memory/v1/pruning/schedule | Get pruning schedule |
SDK Reference
The Functor SDK provides a Python interface for pruning operations.