Skip to main content

A unified interface for multiple LLM providers and local models

Project description

MultiMind SDK - Unified AI Development Toolkit Logo

MultiMind SDK: Unified AI Development Toolkit

Build, Fine-Tune, and Deploy Advanced AI Applications with Enterprise-Grade Compliance

MultiMind SDK License MultiMind SDK GitHub Stars CI Status

๐Ÿšง 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

๐Ÿฆ Follow on X

๐Ÿš€ 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 .env file to version control. Only .env.example should 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

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.

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

  1. Install Docker and Docker Compose
  2. Set up your environment variables in a .env file:
# 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

  1. Build and start the services:
docker-compose up --build
  1. Access the services:
  1. 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

  1. MultiMind Service

    • Main API and SDK functionality
    • Port: 8000
    • Hot reloading enabled
    • Mounts local Ollama models
  2. Redis

    • Caching and session management
    • Port: 6379
    • Persistent storage
    • AOF enabled for data durability
  3. Chroma

    • Vector storage for RAG
    • Port: 8001
    • Persistent storage
    • Telemetry disabled

Volumes

  • redis_data: Persistent Redis storage
  • chroma_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

๐Ÿ“ฃ 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

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

multimind_sdk-0.1.1.tar.gz (699.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

multimind_sdk-0.1.1-py3-none-any.whl (542.4 kB view details)

Uploaded Python 3

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

Hashes for multimind_sdk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 69ef82ea51014efe55527de64a4d79b496f9a6f67ff3ef92da7e674f9fbad170
MD5 48bdda0d54440b494da0b2949caeed06
BLAKE2b-256 34e80a481d785a7d05adca3c859b82ff871afc2ad1882d2f05aaf2ec9adff747

See more details on using hashes here.

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

Hashes for multimind_sdk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8d3bab3e4bed30719d171aff8ea0f6857e930dd3308564ce385b7386e5079b6a
MD5 86a032c2d9fcb80c8e25b6d673c55143
BLAKE2b-256 41395a2d81396d727353db463c11de5004f6154c8289a05dbc2dc514a5630c6a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page