Production-ready containerized RAG (Retrieval-Augmented Generation) framework combining LangGraph multi-agent orchestration, Mem0 persistent memory, and GPTme tool execution for autonomous AI workflows.
βββββββββββββββ ββββββββββββββββ βββββββββββββββ β GPTme β β LangGraph β β Mem0 β β :8090 βββββΊβ :8080 βββββΊβ :8000 β β β β β β β β Tool β β Multi-Agent β β Vector β β Execution β β Orchestrator β β Memory β βββββββββββββββ ββββββββββββββββ βββββββββββββββ
- π§ GPTme - Advanced tool execution engine with shell access, file operations, and code execution
- π€ LangGraph - Multi-agent workflow orchestration with state management and decision routing
- π§ Mem0 - Persistent memory layer with vector storage and contextual retrieval
- π³ Docker - Containerized deployment with service mesh networking
Workflow Overview βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ β LangGraph β β Mem0 β β GPTme β β Orchestrator βββββΊβ Memory Layer βββββΊβ Tool Executor β βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ β β β βΌ βΌ βΌ βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ β Workflow β β Context & β β Git Commands β β Planning β β History β β File Analysis β βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ Component Responsibilities LangGraph (Orchestration Layer) Role: Workflow coordination and decision making
Project Analysis: Scan codebase for changes and determine commit scope Quality Gates: Verify changes meet standards before committing Approval Workflows: Human-in-the-loop for sensitive operations Error Recovery: Handle git conflicts and operational failures
Mem0 (Memory Layer) Role: Historical context and pattern recognition
Change Patterns: Remember successful commit strategies and messaging patterns Project Knowledge: Maintain understanding of project structure and goals Decision History: Track what worked and what didn't for continuous improvement Context Preservation: Maintain development narrative across sessions
GPTme (Execution Layer) Role: File system operations and git command execution
File Analysis: Read, analyze, and categorize code changes Git Operations: Execute commits, pushes, branching with safety checks Documentation Generation: Create and update README, changelogs, documentation Safety Verification: Validate operations before execution
- Docker & Docker Compose (v3.8+)
- OpenRouter API Key (Get yours here)
- Git for version control
bash git clone https://github.com/Dutchthenomad/rag-framework.git cd rag-framework
cp .env.template .env
bash
docker-compose up -d
docker-compose ps
bash
curl http://localhost:8000/health # Mem0
curl http://localhost:8080/health # LangGraph
curl http://localhost:8090/health # GPTme
| Service | Port | Health Check | API Documentation |
|---|---|---|---|
| Mem0 | 8000 | /health | API Docs |
| LangGraph | 8080 | /health | API Docs |
| GPTme | 8090 | /health | API Docs |
bash
docker-compose -f docker-compose.dev.yml up
./scripts/testing/run-tests.sh
./scripts/testing/health-check.sh
rag-framework/
βββ services/ # Containerized services
β βββ gptme/ # Tool execution service
β βββ langgraph/ # Multi-agent orchestrator
β βββ mem0/ # Memory persistence layer
β βββ shared/ # Common configurations
βββ tests/ # Comprehensive test suite
βββ docs/ # Architecture & API documentation
βββ scripts/ # Automation utilities
βββ .github/ # CI/CD workflows
bash
pytest tests/unit/
pytest tests/integration/
pytest tests/integration/test_end_to_end.py
pytest --cov=services tests/
- Architecture Overview - System design and component interaction
- Development Setup - Detailed development environment configuration
- API Reference - Complete API documentation for all services
- Deployment Guide - Production deployment strategies
- Troubleshooting - Common issues and solutions
| Variable | Description | Required | Default |
|---|---|---|---|
| OPENROUTER_API_KEY | OpenRouter API key for LLM access | β | - |
| GPTME_WORKSPACE | GPTme workspace directory | β | /workspace |
| TOOL_ALLOWLIST | Allowed GPTme tools (security) | β | save,append,patch,ipython,shell,browser |
| DEBUG | Enable debug logging | β | false |
Each service includes detailed configuration options:
- GPTme Config - Tool restrictions and model settings
- LangGraph Config - Agent definitions and workflows
- Mem0 Config - Vector store and embedding configuration
We welcome contributions! Please see our Contributing Guidelines for details.
- Fork the repository
- Create a feature branch (git checkout -b feature/amazing-feature)
- Commit your changes (git commit -m 'Add amazing feature')
- Push to the branch (git push origin feature/amazing-feature)
- Open a Pull Request
- Health Checks - All services expose /health endpoints
- Logging - Structured logging with configurable levels
- Metrics - Service metrics and performance monitoring
- Tracing - Request tracing across service boundaries
- API Key Management - Environment-based configuration with templates
- Tool Restrictions - Configurable GPTme tool allowlists
- Network Isolation - Services communicate via dedicated Docker network
- Dependency Scanning - Automated vulnerability detection
- Containerized Deployment - Optimized Docker images with multi-stage builds
- Service Mesh - Efficient inter-service communication
- Persistent Storage - Data persistence across container restarts
- Health Monitoring - Automated health checks and restart policies
This project is licensed under the MIT License - see the LICENSE file for details.
- π Documentation - Check our comprehensive docs
- π Issues - Report bugs via GitHub Issues
- π¬ Discussions - Join the conversation in GitHub Discussions