A unified interface for multiple LLM providers and local models
Project description
MultiMind SDK: Unified AI Development Toolkit
Build, Fine-Tune, and Deploy Advanced AI Applications with Enterprise-Grade Compliance
๐ง Project Status: In Active Development ๐ง
Join the future of AI development! We're actively building MultiMind SDK and looking for contributors. Check our TODO list to see what's implemented and what's coming next. Connect with our growing community on Discord to discuss ideas, get help, and contribute to the project.
Why MultiMind SDK? โข Key Features โข Compliance โข Quick Start โข Documentation โข Examples โข Contributing
๐ Why MultiMind SDK?
๐ง MultiMind SDK is the only open-source toolkit that unifies Fine-Tuning, RAG, Agent Orchestration, and Enterprise Compliance โ all in one modular, extensible Python framework. Forget silos. While others focus on chaining, agents, or retrieval alone, MultiMind integrates them into one coherent developer-first experience, with:
- ๐ช Declarative YAML + CLI + SDK interfaces
- ๐ RAG with hybrid (vector + knowledge graph) retrieval
- ๐ค Role-based agents with memory, tools, and task flow
- ๐ Self-improving agents with cognitive loop support
- ๐ Enterprise-ready: logging, compliance, GDPR, HIPAA, cost tracking
- ๐ Cloud + Edge deploy (Jetson, RPi, Offline mode)
๐ Check out our Strategic Roadmap to see where we're headed!
Key Benefits
- ๐ Unified Interface: Streamline your AI development with one consistent API
- ๐ก Production-Ready: Enterprise-grade deployment, monitoring, and scaling
- ๐ ๏ธ Framework Agnostic: Seamless integration with LangChain, CrewAI, and more
- ๐ Extensible: Customizable architecture for your specific needs
- ๐ Enterprise Features: Comprehensive logging, monitoring, and cost tracking
- ๐ Compliance Ready: Built-in support for GDPR, HIPAA, and other regulations
โจ Key Features
1. Advanced Fine-Tuning
- Parameter-Efficient Methods: LoRA, Adapters, Prefix Tuning, and more
- Meta-Learning: MAML, Reptile, and prototype-based few-shot learning
- Transfer Learning: Layer transfer and multi-task optimization
- Resource-Aware Training: Automatic device selection and optimization
2. RAG System
- Document Processing: Smart chunking and metadata management
- Vector Storage: Support for FAISS and ChromaDB
- Embedding Models: Integration with OpenAI, HuggingFace, and custom models
- Query Optimization: Efficient similarity search and context management
3. Agent Development
- Tool Integration: Built-in support for common tools and custom extensions
- Memory Management: Short and long-term memory systems
- Task Orchestration: Complex workflow management and prompt chaining
- Model Composition: Protocol for combining multiple models and tools
4. Framework Integrations
- LangChain: Seamless integration with LangChain components
- CrewAI: Support for multi-agent systems
- LiteLLM: Unified model interface
- SuperAGI: Advanced agent capabilities
5. Enterprise Compliance
- Real-time Monitoring: Continuous compliance checks and alerts
- Healthcare Compliance: HIPAA, GDPR, and healthcare-specific regulations
- Privacy Protection: Differential privacy and zero-knowledge proofs
- Audit Trail: Comprehensive logging and documentation
- Alert Management: Configurable alerts and notifications
- Compliance Dashboard: Interactive monitoring and reporting
6. Model Conversion
- Format Support: PyTorch, TensorFlow, ONNX, GGUF, TFLite, Safetensors
- Optimization: Quantization, pruning, graph optimization
- Hardware Acceleration: CUDA, CPU, Neural Engine support
- Conversion Pipeline: Validation, optimization, and verification
- Custom Converters: Extensible converter architecture
- Enterprise Features: Batch processing, streaming, and monitoring
Learn more about model conversion โ
๐ Compliance Features
MultiMind SDK provides comprehensive compliance support for enterprise AI applications:
Core Compliance Features
- Real-time compliance monitoring
- Healthcare-specific compliance checks
- Interactive compliance dashboard
- Alert management system
- Compliance trend analysis
Advanced Compliance Mechanisms
- Federated compliance shards
- Zero-knowledge proofs
- Differential privacy feedback loops
- Self-healing patches
- Model watermarking and fingerprint tracking
- Dynamic regulatory change detection
Learn more about our compliance features โ
๐ Quick Start
Installation
# Basic installation
pip install multimind-sdk
# With compliance support
pip install multimind-sdk[compliance]
# With development dependencies
pip install multimind-sdk[dev]
# With gateway support
pip install multimind-sdk[gateway]
# Full installation with all features
pip install multimind-sdk[all]
Environment Setup
Copy the example environment file and add your API keys and configuration values:
cp examples/multi-model-wrapper/.env.example examples/multi-model-wrapper/.env
Note: Never commit your
.envfile to version control. Only.env.exampleshould be tracked in git.
Build Your First RAG Application
from multimind.client.rag_client import RAGClient, Document
# Initialize the client
client = RAGClient()
# Add documents
docs = [
Document(
text="MultiMind SDK is a powerful AI development toolkit.",
metadata={"type": "introduction"}
)
]
await client.add_documents(docs)
# Query the system
results = await client.query("What is MultiMind SDK?")
print(results)
Fine-Tuning a Model
from multimind.fine_tuning import UniPELTPlusTuner
# Initialize the tuner
tuner = UniPELTPlusTuner(
base_model_name="bert-base-uncased",
output_dir="./output",
available_methods=["lora", "adapter"]
)
# Train the model
tuner.train(
train_dataset=your_dataset,
eval_dataset=your_eval_dataset
)
Agent Development Example
from multimind.agents import Agent
# Initialize an agent
agent = Agent(name="ExampleAgent")
# Add tools and memory
agent.add_tool("search", tool_function=search_tool)
agent.add_memory("short_term", memory_capacity=10)
# Run the agent
response = agent.run("What is the capital of France?")
print(response)
Compliance Monitoring Example
from multimind.compliance import ComplianceMonitor
# Initialize compliance monitor
monitor = ComplianceMonitor(
organization_id="org_123",
enabled_regulations=["HIPAA", "GDPR"]
)
# Run compliance check
results = await monitor.check_compliance(
model_id="model_123",
data_categories=["health_data"]
)
# Get compliance dashboard
dashboard = await monitor.get_dashboard_metrics(
time_range="7d",
use_case="medical_diagnosis"
)
๐ Documentation
- API Reference - Complete API documentation
- Compliance Guide - Enterprise compliance features
- Model Conversion Guide - Model format conversion
- Examples - Production-ready code examples
- Architecture - Detailed system design
- Contributing Guide - Join our development team
- Code of Conduct - Community guidelines
- Issue Tracker - Report bugs or request features
Project Structure
multimind-sdk/
โโโ multimind/ # Core SDK package
โ โโโ gateway/ # Gateway implementation
โ โ โโโ api/ # API endpoints
โ โ โโโ middleware/ # Request/response middleware
โ โ โโโ utils/ # Gateway utilities
โ โโโ client/ # Client libraries
โ โ โโโ rag_client.py # RAG system client
โ โ โโโ agent_client.py # Agent system client
โ โ โโโ compliance_client.py # Compliance client
โ โโโ fine_tuning/ # Fine-tuning modules
โ โ โโโ methods/ # Fine-tuning methods
โ โ โโโ optimizers/ # Optimization strategies
โ โ โโโ trainers/ # Training implementations
โ โโโ model_conversion/ # Model conversion modules
โ โ โโโ converters/ # Format converters
โ โ โ โโโ pytorch/ # PyTorch converters
โ โ โ โโโ tensorflow/ # TensorFlow converters
โ โ โ โโโ onnx/ # ONNX converters
โ โ โ โโโ ollama/ # Ollama converters
โ โ โโโ optimizers/ # Conversion optimizers
โ โ โ โโโ quantization/ # Quantization methods
โ โ โ โโโ pruning/ # Model pruning
โ โ โ โโโ graph/ # Graph optimization
โ โ โโโ validators/ # Format validators
โ โ โโโ utils/ # Conversion utilities
โ โโโ compliance/ # Compliance features
โ โ โโโ monitors/ # Compliance monitoring
โ โ โโโ validators/ # Compliance validation
โ โ โโโ reporting/ # Compliance reporting
โ โโโ utils/ # Utility functions
โโโ examples/ # Example implementations
โ โโโ cli/ # Command-line examples
โ โ โโโ rag_cli.py # RAG CLI tool
โ โ โโโ agent_cli.py # Agent CLI tool
โ โโโ api/ # API and integration examples
โ โ โโโ fastapi/ # FastAPI examples
โ โ โโโ flask/ # Flask examples
โ โโโ model_conversion/ # Model conversion examples
โ โ โโโ converters/ # Converter examples
โ โ โ โโโ pytorch_to_gguf.py
โ โ โ โโโ tensorflow_to_tflite.py
โ โ โ โโโ onnx_to_ort.py
โ โ โ โโโ pytorch_to_safetensors.py
โ โ โ โโโ tensorflow_to_onnx.py
โ โ โโโ docker/ # Docker examples
โ โ โ โโโ Dockerfile
โ โ โ โโโ docker-compose.yml
โ โ โโโ cli/ # CLI examples
โ โ โโโ cli_example.py
โ โโโ streamlit-ui/ # Streamlit-based UI examples
โโโ tests/ # Test suite
โ โโโ unit/ # Unit tests
โ โโโ integration/ # Integration tests
โ โโโ e2e/ # End-to-end tests
โโโ docs/ # Documentation
โ โโโ api_reference/ # API documentation
โ โโโ guides/ # User guides
โ โโโ architecture/ # Architecture docs
โโโ scripts/ # Development scripts
โโโ setup/ # Setup scripts
โโโ deployment/ # Deployment scripts
โโโ maintenance/ # Maintenance scripts
๐ค Contributing
We love your input! We want to make contributing to MultiMind SDK as easy and transparent as possible.
- Contributing Guide - How to contribute
- Code of Conduct - Community guidelines
- Issue Tracker - Report bugs or request features
Development Setup
# Clone the repository
git clone https://github.com/multimind-dev/multimind-sdk.git
cd multimind-sdk
# Install development dependencies
pip install -e ".[dev]"
# Run tests
pytest
# Start documentation
cd multimind-docs
npm install
npm start
Docker Setup
The MultiMind SDK can be run using Docker and Docker Compose. This setup includes:
- The main MultiMind SDK service
- Redis for caching and session management
- Chroma for vector storage
- Ollama for local model support
Prerequisites
- Install Docker and Docker Compose
- Set up your environment variables in a
.envfile:
# API Keys
OPENAI_API_KEY=your_openai_api_key_here
CLAUDE_API_KEY=your_claude_api_key_here
HF_TOKEN=your_huggingface_token_here
# Redis Configuration
REDIS_HOST=redis
REDIS_PORT=6379
# Chroma Configuration
CHROMA_HOST=chroma
CHROMA_PORT=8000
# Application Configuration
APP_HOST=0.0.0.0
APP_PORT=8000
DEBUG=false
LOG_LEVEL=INFO
# Model Configuration
DEFAULT_MODEL=gpt-3.5-turbo
EMBEDDING_MODEL=text-embedding-ada-002
VISION_MODEL=gpt-4-vision-preview
# RAG Configuration
CHUNK_SIZE=1000
CHUNK_OVERLAP=200
TOP_K=3
Running with Docker
- Build and start the services:
docker-compose up --build
- Access the services:
- MultiMind API: http://localhost:8000
- Chroma API: http://localhost:8001
- Redis: localhost:6379
- Stop the services:
docker-compose down
Development with Docker
For development, the project files are mounted as a volume, so changes to the code will be reflected immediately. The setup includes:
- Hot reloading for Python code
- Persistent storage for Redis and Chroma
- Ollama model persistence
- Environment variable management
Services
-
MultiMind Service
- Main API and SDK functionality
- Port: 8000
- Hot reloading enabled
- Mounts local Ollama models
-
Redis
- Caching and session management
- Port: 6379
- Persistent storage
- AOF enabled for data durability
-
Chroma
- Vector storage for RAG
- Port: 8001
- Persistent storage
- Telemetry disabled
Volumes
redis_data: Persistent Redis storagechroma_data: Persistent Chroma storage~/.ollama: Local Ollama models
Building Custom Images
To build a custom image:
docker build -t multimind-sdk:custom .
To use a custom image in docker-compose:
services:
multimind:
image: multimind-sdk:custom
# ... other configuration
๐ Support MultiMind SDK
If you find MultiMind SDK helpful, please consider supporting us to sustain development and grow the community.
Your support will help fund:
- โ๏ธ Feature development and maintenance
- ๐ Better documentation and onboarding
- ๐ Community outreach and support
- ๐งช Infrastructure, testing, and CI/CD
๐ Contribute here
๐ License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
For more information about the Apache License 2.0, visit apache.org/licenses/LICENSE-2.0.
๐ Support
- Discord Community - Join our active developer community
- GitHub Issues - Get help and report issues
- Documentation - Comprehensive guides
๐ฃ About
MultiMind SDK is developed and maintained by the MultimindLAB team, dedicated to simplifying AI development for everyone. Visit multimind.dev to learn more about our mission to democratize AI development.
Made with โค๏ธ by the AI2Innovate & MultimindLAB Team | License
Ready to Build Enterprise-Grade AI Applications?
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file multimind_sdk-0.1.1.tar.gz.
File metadata
- Download URL: multimind_sdk-0.1.1.tar.gz
- Upload date:
- Size: 699.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69ef82ea51014efe55527de64a4d79b496f9a6f67ff3ef92da7e674f9fbad170
|
|
| MD5 |
48bdda0d54440b494da0b2949caeed06
|
|
| BLAKE2b-256 |
34e80a481d785a7d05adca3c859b82ff871afc2ad1882d2f05aaf2ec9adff747
|
File details
Details for the file multimind_sdk-0.1.1-py3-none-any.whl.
File metadata
- Download URL: multimind_sdk-0.1.1-py3-none-any.whl
- Upload date:
- Size: 542.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d3bab3e4bed30719d171aff8ea0f6857e930dd3308564ce385b7386e5079b6a
|
|
| MD5 |
86a032c2d9fcb80c8e25b6d673c55143
|
|
| BLAKE2b-256 |
41395a2d81396d727353db463c11de5004f6154c8289a05dbc2dc514a5630c6a
|