Skip to content
jadenfixPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

24 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DreamForge - Vision Language AI Platform

A modern web platform for vision-language AI powered by Moondream and Anthropic Claude, featuring a reinforcement learning pipeline for continuous improvement.

Quick Start

  1. Clone and install dependencies:

    git clone <your-repo-url>
    cd DF
    npm install
  2. Set up environment variables:

    cp .env.local.example .env.local
    # Edit .env.local with your API keys
  3. Configure API Keys:

  4. Run the development server:

    npm run dev
  5. Visit the application: Open http://localhost:3000 in your browser.

Features

  • 🎯 Image Analysis - Upload images and ask questions using Moondream VLM
  • 🧠 Advanced Reasoning - Complex queries powered by Anthropic Claude
  • 📈 RLHF Pipeline - Continuous improvement through user feedback
  • 🎨 Modern UI - Beautiful, responsive interface with dark mode
  • 💳 Stripe Integration - Subscription and payment management
  • 🔒 OAuth Authentication - GitHub and Google sign-in

Environment Configuration

Required for full functionality:

# Moondream AI - REQUIRED for image analysis
MOONDREAM_KEY=your_moondream_api_key_here

# Anthropic Claude - REQUIRED for advanced reasoning  
ANTHROPIC_API_KEY=sk-ant-api03-your_anthropic_key_here

# MongoDB - REQUIRED for data storage
MONGODB_URI=mongodb+srv://user:pass@cluster.mongodb.net/dreamforge

Optional (for payments and auth):

# Stripe (for payments)
STRIPE_SECRET_KEY=sk_test_your_stripe_secret_key
STRIPE_PUBLISHABLE_KEY=pk_test_your_stripe_publishable_key

# OAuth (optional)
GITHUB_ID=your_github_oauth_app_id
GITHUB_SECRET=your_github_oauth_app_secret

Testing

Run the comprehensive test suite:

# API and unit tests
npm test

# End-to-end tests
npm run e2e

Deployment

Deploy to Vercel:

# Build the project
npm run build

# Deploy to Vercel
vercel --prod

Documentation

  • API Setup: See API_SETUP.md for detailed API configuration
  • Environment: See docs/ENVIRONMENT.md for all environment variables
  • Architecture: Visit /docs page for system architecture details

Current Status

✅ All tests passing (15/15)
✅ Mock responses working (will use real API when keys configured)
✅ Frontend building successfully
✅ Moondream API integration ready
✅ RLHF pipeline implemented

To enable full functionality: Add your Moondream API key to .env.local

🚀 Advanced Features

DreamForge now includes a complete Vercel-style development experience with the following advanced features:

1. Advanced Playground (/playground-advanced)

  • Multi-tab Interface: Switch between Playground, A/B Testing, Analytics, and Deployments
  • Real-time Model Selection: Choose from multiple Moondream model variants
  • Interactive Reward Function Builder: Visual sliders to customize model behavior
  • Live Training Logs: See RLHF retraining progress in real-time
  • Output Grid: Compare multiple model outputs with feedback scoring

2. A/B Testing Suite

  • Multi-Model Comparison: Run the same prompt across different models simultaneously
  • Side-by-Side Output Display: Grid and slider view modes
  • Performance Metrics: Compare latency, confidence, and reward scores
  • Real-time Feedback Collection: Rate outputs to improve model performance

3. Analytics Dashboard

  • Branch-Specific Metrics: Monitor API usage per deployment branch
  • Real-time Statistics: API calls, latency, cost, and success rates
  • Live API Call Feed: See requests in real-time with detailed metadata
  • Time Range Filtering: Analyze performance over different periods

4. Preview Deployments

  • Automatic Branch Deployments: Every branch gets its own preview URL
  • Build Progress Tracking: Live build status with progress indicators
  • Branch Switching: Easy navigation between different deployment branches
  • Vercel-Style Interface: Familiar deployment management experience

5. Reward Function Engineering

  • Visual Weight Adjustment: Sliders for accuracy, creativity, detail, speed, visual quality, and helpfulness
  • Real-time Score Updates: See how weight changes affect output scoring
  • Persistent Configuration: Save and load custom reward functions
  • One-Click Retraining: Trigger RLHF with custom reward functions

API Enhancements

New Endpoints:

  • /api/generate - Enhanced inference with reward scoring
  • /api/retrain - RLHF retraining with custom rewards
  • /api/analytics - Branch-specific usage metrics
  • /api/admin/reward-config - Reward function management

Enhanced Features:

  • Real Moondream API integration (no more mocks)
  • Comprehensive error handling and logging
  • WebSocket-style live updates (simulated)
  • Branch-aware analytics and deployments

CEO Demo Ready Features

  1. Live Model Switching: Demonstrate different model capabilities
  2. Real-time Retraining: Show RLHF in action with custom rewards
  3. Branch Previews: Deploy and test features instantly
  4. Usage Analytics: Prove scalability with real metrics
  5. A/B Testing: Compare model outputs scientifically

Environment Setup for Advanced Features

# Required for advanced features
MOONDREAM_KEY=your_moondream_api_key
MONGODB_URI=your_mongodb_connection_string
ANTHROPIC_API_KEY=your_anthropic_key
STRIPE_SECRET_KEY=your_stripe_key

# Optional for full functionality
REDIS_URL=redis://localhost:6379
ADMIN_SECRET=your_admin_secret

Deployment Ready

The project includes a comprehensive vercel.json configuration for:

  • Automatic preview deployments
  • Environment variable management
  • API route optimization
  • CORS configuration
  • Function timeout settings

Development Workflow

  1. Local Development: npm run dev
  2. Feature Branches: Automatic preview deployments
  3. Testing: Full test suite with Playwright
  4. Production: Deploy to Vercel with environment variables

This implementation showcases the complete "Vercel of VLMs" experience with enterprise-ready features for model development, testing, and deployment.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages