Skip to content

๐Ÿš€ SuperOptiX Examples

Welcome to the SuperOptiX Examples section! These demos showcase specific technologies and capabilities within the SuperOptiX framework. Each demo focuses on a particular technology or feature, providing hands-on experience with different aspects of the framework.

๐ŸŽฏ Demo Overview

The examples are organized into three main categories:

๐Ÿค– Model Backend Demos

Learn how to configure and use different local model backends:

๐Ÿ” RAG Technology Demos

Explore Retrieval-Augmented Generation capabilities:

๐Ÿ› ๏ธ Framework Feature Demos

Discover core framework capabilities:

๐Ÿ”Œ Observability Integrations

Integrate with external observability platforms:

๐ŸŽฏ Technology Focus Matrix

Demo Primary Technology Key Features Use Case
MLX Apple Silicon Models Native performance, 4-bit quantization Apple Silicon development
Ollama Easy Model Management Simple setup, cross-platform Quick local model usage
HuggingFace Advanced NLP Transformer models, custom models NLP research and development
LM Studio GUI Model Management Visual interface, Windows-friendly Desktop model management
RAG ChromaDB Knowledge Retrieval Semantic search, document retrieval Knowledge base queries
RAG LanceDB High-Performance RAG Scalable, production-ready Large-scale deployments
Weaviate Advanced Semantic Search Sophisticated similarity algorithms Academic research, enterprise search
Qdrant Lightning-Fast Search Optimized performance, high throughput Industrial applications, real-time systems
Milvus Enterprise-Scale RAG Cloud-native, distributed architecture Massive-scale deployments, enterprise search
Tools Tool Integration 20+ categories, specialized tools Enhanced agent capabilities
Memory Context Retention Multi-layered, persistent storage Conversational AI
Observability Monitoring & Debugging Tracing, metrics, dashboard Production monitoring
MLFlow Experiment Tracking Model monitoring, metrics, artifacts ML lifecycle management
LangFuse LLM Observability Token tracking, cost monitoring, feedback LLM application monitoring

๐Ÿš€ Getting Started

Prerequisites

  1. Install SuperOptiX

    Bash
    pip install superoptix
    

  2. Choose Your Demo

  3. Start with Ollama for easiest setup
  4. Use MLX if you have Apple Silicon
  5. Try RAG for knowledge retrieval
  6. Explore Tools for enhanced capabilities

Quick Start Pattern

Each demo follows this pattern:

Bash
# 1. Install model
super model install <model_name>

# 2. Start server (if needed)
super model server <backend> <model_name>

# 3. Pull and run demo
super agent pull <demo_name>
super agent compile <demo_name>
super agent run <demo_name> --goal "Your question here"

๐ŸŽฏ Learning Path

Beginner Path

  1. Ollama Demo - Learn basic model setup
  2. Tools Demo - Explore tool integration
  3. Memory Demo - Understand context retention

Intermediate Path

  1. MLX Demo - Apple Silicon optimization
  2. RAG ChromaDB Demo - Knowledge retrieval
  3. Observability Demo - Monitoring and debugging

Advanced Path

  1. HuggingFace Demo - Advanced NLP capabilities
  2. LM Studio Demo - GUI model management
  3. RAG LanceDB Demo - Production-scale RAG
  4. MLFlow Integration - Experiment tracking and monitoring
  5. LangFuse Integration - LLM observability and cost tracking

๐Ÿ”ง Customization Guide

Each demo serves as a template for building custom agents:

Model Backend Customization

  • Change models in language_model.model
  • Adjust performance settings (temperature, max_tokens)
  • Configure different backends (mlx, ollama, huggingface, lmstudio)

RAG Customization

  • Modify retrieval settings (top_k, chunk_size)
  • Change vector databases (chroma, lancedb, weaviate, qdrant, milvus)
  • Adjust embedding models

Framework Feature Customization

  • Enable/disable specific tools
  • Configure memory settings
  • Adjust observability levels
  • Integrate external observability platforms (MLFlow, LangFuse)

๐Ÿšจ Troubleshooting

Common Issues

  1. Model Not Found

    Bash
    # Check available models
    super model list --backend <backend>
    
    # Install required model
    super model install <model_name>
    

  2. Server Not Running

    Bash
    # Check server status
    curl http://localhost:<port>/health
    
    # Start server
    super model server <backend> <model_name>
    

  3. Demo Not Working

    Bash
    # Check agent status
    super agent inspect <demo_name>
    
    # View logs
    super agent logs <demo_name>
    

Getting Help

Bash
# General help
super --help

# Model help
super model --help

# Agent help
super agent --help

๐ŸŽ‰ Next Steps

After exploring the demos:

  1. Build Custom Agents - Use demos as templates for your specific use cases
  2. Combine Technologies - Mix and match different technologies
  3. Scale to Production - Deploy optimized agents for production use
  4. Contribute - Share your custom agents and tools with the community

Ready to explore SuperOptiX capabilities? Choose a demo and start building! ๐Ÿš€