Integrate self-hosted Supabase with mem0 system
- Configure mem0 to use self-hosted Supabase instead of Qdrant for vector storage - Update docker-compose to connect containers to localai network - Install vecs library for Supabase pgvector integration - Create comprehensive test suite for Supabase + mem0 integration - Update documentation to reflect Supabase configuration - All containers now connected to shared localai network - Successful vector storage and retrieval tests completed 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
76
docs/development.mdx
Normal file
76
docs/development.mdx
Normal file
@@ -0,0 +1,76 @@
|
||||
---
|
||||
title: 'Development Guide'
|
||||
description: 'Complete development environment setup and workflow'
|
||||
---
|
||||
|
||||
## Development Environment
|
||||
|
||||
### Project Structure
|
||||
|
||||
```
|
||||
/home/klas/mem0/
|
||||
├── venv/ # Python virtual environment
|
||||
├── config.py # Configuration management
|
||||
├── test_basic.py # Basic functionality tests
|
||||
├── test_openai.py # OpenAI integration test
|
||||
├── test_all_connections.py # Comprehensive connection tests
|
||||
├── docker-compose.yml # Neo4j & Qdrant containers
|
||||
├── .env # Environment variables
|
||||
└── docs/ # Documentation (Mintlify)
|
||||
```
|
||||
|
||||
### Current Status: Phase 1 Complete ✅
|
||||
|
||||
| Component | Status | Port | Description |
|
||||
|-----------|--------|------|-------------|
|
||||
| Neo4j | ✅ READY | 7474/7687 | Graph memory storage |
|
||||
| Qdrant | ✅ READY | 6333/6334 | Vector memory storage |
|
||||
| Ollama | ✅ READY | 11434 | Local LLM processing |
|
||||
| Mem0 Core | ✅ READY | - | Memory management system v0.1.115 |
|
||||
|
||||
### Development Workflow
|
||||
|
||||
1. **Environment Setup**
|
||||
```bash
|
||||
source venv/bin/activate
|
||||
```
|
||||
|
||||
2. **Start Services**
|
||||
```bash
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
3. **Run Tests**
|
||||
```bash
|
||||
python test_all_connections.py
|
||||
```
|
||||
|
||||
4. **Development**
|
||||
- Edit code and configurations
|
||||
- Test changes with provided test scripts
|
||||
- Document changes in this documentation
|
||||
|
||||
### Next Development Phases
|
||||
|
||||
<CardGroup cols={2}>
|
||||
<Card title="Phase 2: Core Memory System">
|
||||
- Ollama integration
|
||||
- Basic memory operations
|
||||
- Neo4j graph memory
|
||||
</Card>
|
||||
<Card title="Phase 3: API Development">
|
||||
- REST API endpoints
|
||||
- Authentication layer
|
||||
- Performance optimization
|
||||
</Card>
|
||||
<Card title="Phase 4: MCP Server">
|
||||
- HTTP transport protocol
|
||||
- Claude Code integration
|
||||
- Standardized operations
|
||||
</Card>
|
||||
<Card title="Phase 5: Documentation">
|
||||
- Complete API reference
|
||||
- Deployment guides
|
||||
- Integration examples
|
||||
</Card>
|
||||
</CardGroup>
|
||||
Reference in New Issue
Block a user