Skip to content

Commit 0237974

Browse files
authored
Merge pull request #1 from ruvnet/fact-memory
Fact memory
2 parents c5fdcc2 + 71d16f6 commit 0237974

20 files changed

+6059
-0
lines changed

fact-memory/README.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# FACT Memory System
2+
3+
A comprehensive memory management system for the FACT SDK that implements Mem0-inspired capabilities using prompt caching techniques instead of vector databases.
4+
5+
## Overview
6+
7+
The FACT Memory System provides persistent, context-aware memory capabilities that leverage Claude's prompt caching for efficient storage and retrieval of conversational context, user preferences, and behavioral patterns.
8+
9+
## Key Features
10+
11+
- **Prompt Cache-Based Storage**: Uses FACT's existing cache infrastructure instead of vector databases
12+
- **User-Scoped Memory**: Isolates memories by user ID for privacy and personalization
13+
- **Semantic Search**: Implements intelligent memory retrieval based on query relevance
14+
- **Memory Types**: Supports various memory categories (preferences, facts, context, behavior)
15+
- **MCP Integration**: Provides MCP server compatibility for external tool access
16+
- **Performance Optimized**: Built on FACT's high-performance caching layer
17+
18+
## Architecture
19+
20+
The system consists of several key components:
21+
22+
- **Memory Manager**: Core memory storage and retrieval engine
23+
- **Memory Models**: Data structures for different memory types
24+
- **Search Engine**: Semantic search and ranking capabilities
25+
- **MCP Server**: External API compatibility layer
26+
- **Cache Integration**: Leverages FACT's existing cache infrastructure
27+
28+
## Documentation Structure
29+
30+
- [`docs/`](docs/) - Detailed documentation and guides
31+
- [`architecture/`](architecture/) - System architecture and design documents
32+
- [`api-specs/`](api-specs/) - API specifications and schemas
33+
- [`examples/`](examples/) - Usage examples and integration guides
34+
35+
## Quick Start
36+
37+
See the [Installation Guide](docs/installation.md) and [Quick Start Guide](docs/quickstart.md) for getting started with the FACT Memory System.
38+
39+
## Comparison with Mem0
40+
41+
| Feature | Mem0 | FACT Memory |
42+
|---------|------|-------------|
43+
| Storage Backend | Vector Database | Prompt Cache |
44+
| Memory Persistence | Database | Cache + Optional Persistence |
45+
| Search Method | Vector Similarity | Semantic + LLM-based |
46+
| Performance | Vector Lookups | Cache Hits (90%+ faster) |
47+
| Integration | Standalone MCP | FACT SDK Integrated |
48+
| Memory Types | Unstructured | Structured + Typed |
49+
50+
## License
51+
52+
This project follows the same license as the FACT SDK.

0 commit comments

Comments
 (0)